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

« back to all changes in this revision

Viewing changes to kivio/kiviopart/kiviosdk/kivio_sml_stencil.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
/*
2
2
 * Kivio - Visual Modelling and Flowcharting
3
 
 * Copyright (C) 2000-2001 theKompany.com & Dave Marotti
 
3
 * Copyright (C) 2000-2003 theKompany.com & Dave Marotti,
 
4
 *                         Peter Simonsson
4
5
 *
5
6
 * This program is free software; you can redistribute it and/or
6
7
 * modify it under the terms of the GNU General Public License
40
41
    QPtrList<KivioShape> *m_pShapeList;
41
42
    KivioShape *m_pSubSelection;
42
43
    QPtrList<KivioConnectorTarget> *m_pConnectorTargets;
43
 
//    QPtrList<KivioConnectorTarget> *m_pOriginalConnectorTargets;
44
44
 
45
45
    // Offsets and scale which get reused in between
46
46
    // various drawing routines.  To save time and
76
76
    void drawPolyline( KivioShape *, KivioIntraStencilData * );
77
77
    void drawTextBox( KivioShape *, KivioIntraStencilData * );
78
78
 
79
 
    bool checkCollisionArc( KivioShape *, KivioPoint * );
80
 
    bool checkCollisionBezier( KivioShape *, KivioPoint * );
81
 
    bool checkCollisionOpenPath( KivioShape *, KivioPoint * );
82
 
    bool checkCollisionClosedPath( KivioShape *, KivioPoint * );
83
 
    bool checkCollisionPie( KivioShape *, KivioPoint * );
84
 
    bool checkCollisionEllipse( KivioShape *, KivioPoint * );
85
 
    bool checkCollisionLineArray( KivioShape *, KivioPoint * );
86
 
    bool checkCollisionRectangle( KivioShape *, KivioPoint * );
87
 
    bool checkCollisionRoundRectangle( KivioShape *, KivioPoint * );
88
 
    bool checkCollisionPolygon( KivioShape *, KivioPoint * );
89
 
    bool checkCollisionPolyline( KivioShape *, KivioPoint * );
90
 
    bool checkCollisionTextBox( KivioShape *, KivioPoint * );
 
79
    bool checkCollisionArc( KivioShape *, KoPoint * );
 
80
    bool checkCollisionBezier( KivioShape *, KoPoint * );
 
81
    bool checkCollisionOpenPath( KivioShape *, KoPoint * );
 
82
    bool checkCollisionClosedPath( KivioShape *, KoPoint * );
 
83
    bool checkCollisionPie( KivioShape *, KoPoint * );
 
84
    bool checkCollisionEllipse( KivioShape *, KoPoint * );
 
85
    bool checkCollisionLineArray( KivioShape *, KoPoint * );
 
86
    bool checkCollisionRectangle( KivioShape *, KoPoint * );
 
87
    bool checkCollisionRoundRectangle( KivioShape *, KoPoint * );
 
88
    bool checkCollisionPolygon( KivioShape *, KoPoint * );
 
89
    bool checkCollisionPolyline( KivioShape *, KoPoint * );
 
90
    bool checkCollisionTextBox( KivioShape *, KoPoint * );
91
91
 
92
92
 
93
93
    KivioShape *locateShape( const QString & );
116
116
    virtual void setBGColor(QColor);
117
117
    virtual void setLineWidth(double);
118
118
    virtual double lineWidth();
 
119
    virtual void setLinePattern(int p);
 
120
    virtual int linePattern();
 
121
    virtual void setFillPattern(int p);
 
122
    virtual int fillPattern();
119
123
 
120
124
    virtual void setTextColor( QColor );
121
125
    virtual void setTextFont( const QFont & );
131
135
 
132
136
    virtual QFont textFont();
133
137
 
134
 
    virtual KivioCollisionType checkForCollision( KivioPoint *, double );
 
138
    virtual KivioCollisionType checkForCollision( KoPoint *, double );
135
139
 
136
140
    virtual KivioConnectorTarget *connectToTarget( KivioConnectorPoint *, double );
137
141
    virtual KivioConnectorTarget *connectToTarget( KivioConnectorPoint *, int );
144
148
 
145
149
    virtual int resizeHandlePositions();
146
150
 
 
151
    virtual KivioLineStyle lineStyle();
 
152
    virtual void setLineStyle(KivioLineStyle ls);
 
153
 
 
154
    /**
 
155
      Returns the name of the text box that is at @param p.
 
156
      If there exist no text box at @param p then it returns QString::null.
 
157
    */
 
158
    virtual QString getTextBoxName(const KoPoint& p);
 
159
 
 
160
    virtual void setText(const QString& text, const QString& name);
 
161
    virtual QString text(const QString& name);
 
162
 
 
163
    virtual void addConnectorTarget(const KoPoint&);
 
164
 
 
165
    virtual bool hasTextBox() const;
147
166
};
148
167
 
149
168
#endif