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

« back to all changes in this revision

Viewing changes to kpresenter/polygonproperty.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
// -*- Mode: c++; c-basic-offset: 4; indent-tabs-mode: nil; tab-width: 4; -*-
 
2
/* This file is part of the KDE project
 
3
   Copyright (C) 2005 Thorsten Zachmann <zachmann@kde.org>
 
4
 
 
5
   This library is free software; you can redistribute it and/or
 
6
   modify it under the terms of the GNU Library General Public
 
7
   License as published by the Free Software Foundation; either
 
8
   version 2 of the License, or (at your option) any later version.
 
9
 
 
10
   This library is distributed in the hope that it will be useful,
 
11
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
12
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
13
   Library General Public License for more details.
 
14
 
 
15
   You should have received a copy of the GNU Library General Public License
 
16
   along with this library; see the file COPYING.LIB.  If not, write to
 
17
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
18
   Boston, MA 02111-1307, USA.
 
19
*/
 
20
#ifndef POLYGONPROPERTY_H
 
21
#define POLYGONPROPERTY_H
 
22
 
 
23
#include <qwidget.h>
 
24
 
 
25
#include "kprcommand.h"
 
26
 
 
27
class PolygonPropertyUI;
 
28
 
 
29
class PolygonProperty : public QWidget
 
30
{
 
31
    Q_OBJECT
 
32
public:
 
33
    PolygonProperty( QWidget *parent, const char *name, PolygonSettingCmd::PolygonSettings &polygonSettings );
 
34
    ~PolygonProperty();
 
35
 
 
36
    int getPolygonPropertyChange() const;
 
37
    PolygonSettingCmd::PolygonSettings getPolygonSettings() const;
 
38
 
 
39
    void setPolygonSettings( const PolygonSettingCmd::PolygonSettings &polygonSettings );
 
40
    void apply();
 
41
 
 
42
protected:
 
43
    bool isConvexConcave() const;
 
44
 
 
45
    PolygonPropertyUI *m_ui;
 
46
 
 
47
    PolygonSettingCmd::PolygonSettings m_polygonSettings;
 
48
 
 
49
protected slots:
 
50
    void slotReset();
 
51
    void slotTypeChanged( int pos );
 
52
};
 
53
 
 
54
#endif // POLYGONPROPERTY_H
 
55