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

« back to all changes in this revision

Viewing changes to kpresenter/kpellipseobject.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
42
43
 
43
44
    KPEllipseObject &operator=( const KPEllipseObject & );
44
45
 
45
 
    virtual void setFillType( FillType _fillType );
46
 
    virtual void setGColor1( const QColor &_gColor1 )
47
 
        { KP2DObject::setGColor1(_gColor1); redrawPix = true; }
48
 
    virtual void setGColor2( const QColor &_gColor2 )
49
 
        { KP2DObject::setGColor2(_gColor2); redrawPix = true; }
50
 
    virtual void setGType( BCType _gType )
51
 
        { KP2DObject::setGType(_gType); redrawPix = true; }
52
 
 
53
46
    virtual ObjType getType() const
54
47
        { return OT_ELLIPSE; }
55
48
    virtual QString getTypeString() const
58
51
    virtual KoSize getRealSize() const;
59
52
 
60
53
protected:
 
54
    virtual const char * getOasisElementName() const;
 
55
    virtual bool saveOasisObjectAttributes( KPOasisSaveContext &sc ) const;
 
56
 
61
57
    virtual void paint( QPainter *_painter,KoZoomHandler *_zoomHandler,
62
 
                        bool drawingShadow, bool drawContour = FALSE );
63
 
 
64
 
    QPixmap pix;
65
 
    bool redrawPix;
 
58
                        int /* pageNum */, bool drawingShadow, bool drawContour = FALSE );
66
59
 
67
60
};
68
61