~ubuntu-branches/ubuntu/breezy/koffice/breezy-security

« back to all changes in this revision

Viewing changes to kpresenter/kpgroupobject.h

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2005-10-11 14:49:50 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051011144950-lwpngbifzp8nk0ds
Tags: 1:1.4.1-0ubuntu7
* SECURITY UPDATE: fix heap based buffer overflow in the RTF importer of KWord
* Opening specially crafted RTF files in KWord can cause
  execution of abitrary code.
* Add kubuntu_01_rtfimport_heap_overflow.diff
* References:
  CAN-2005-2971
  CESA-2005-005
  http://www.koffice.org/security/advisory-20051011-1.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
2
2
/* This file is part of the KDE project
3
3
   Copyright (C) 1998, 1999 Reginald Stadlbauer <reggie@kde.org>
 
4
   Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
4
5
 
5
6
   This library is free software; you can redistribute it and/or
6
7
   modify it under the terms of the GNU Library General Public
22
23
#define kpgroupobject_h
23
24
 
24
25
class KPresenterDoc;
 
26
class KoOasisContext;
 
27
class KPrPage;
 
28
class KoXmlWriter;
25
29
 
26
30
#include "kpobject.h"
27
31
 
46
50
    virtual void setShadowColor( const QColor &_color );
47
51
    virtual void setEffect( Effect _effect );
48
52
    virtual void setEffect2( Effect2 _effect2 );
49
 
    virtual void setPresNum( int _presNum );
 
53
    virtual void setAppearStep( int _appearStep );
50
54
    virtual void setDisappear( bool b );
51
 
    virtual void setDisappearNum( int num );
 
55
    virtual void setDisappearStep( int _disappearStep );
52
56
    virtual void setEffect3( Effect3 _effect3);
53
57
    virtual void setAppearTimer( int _appearTimer );
54
58
    virtual void setDisappearTimer( int _disappearTimer );
66
70
 
67
71
    virtual QDomDocumentFragment save( QDomDocument& doc, double offset );
68
72
    virtual double load(const QDomElement &element, KPresenterDoc *doc);
 
73
    virtual void loadOasisGroupObject( KPresenterDoc *doc, KPrPage * newpage, QDomNode &element, KoOasisContext & context, KPRLoadingInfo *info);
69
74
 
70
75
    virtual void draw( QPainter *_painter, KoZoomHandler *_zoomhandler,
71
 
                       SelectionMode selectionMode, bool drawContour = FALSE );
 
76
                       int pageNum, SelectionMode selectionMode, bool drawContour = FALSE );
 
77
 
 
78
    void addObjects( KPObject * obj );
72
79
 
73
80
    void setUpdateObjects( bool b )
74
81
        { updateObjs = b; }
88
95
    virtual void getAllObjectSelectedList(QPtrList<KPObject> &lst,bool force=false );
89
96
 
90
97
    virtual void flip( bool horizontal );
91
 
    
 
98
    virtual void removeFromObjList();
 
99
    virtual void addToObjList();
 
100
    virtual void incCmdRef();
 
101
    virtual void decCmdRef();
 
102
 
92
103
protected:
 
104
    virtual const char * getOasisElementName() const;
 
105
    virtual bool saveOasisObjectAttributes( KPOasisSaveContext &sc ) const;
 
106
 
93
107
    void updateSizes( double fx, double fy );
94
108
    void updateCoords( double dx, double dy );
95
109