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

« back to all changes in this revision

Viewing changes to kspread/dialogs/kspread_dlg_cons.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
/* This file is part of the KDE project
 
2
   Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
 
3
             (C) 2002 Ariya Hidayat <ariya@kde.org>
 
4
             (C) 2002 Philipp Mueller <philipp.mueller@gmx.de>
 
5
             (C) 2002 John Dailey <dailey@vt.edu>
 
6
             (C) 2000-2001 Werner Trobin <trobin@kde.org>
 
7
             (C) 2000-2001 Laurent Montel <montel@kde.org>
 
8
             (C) 1999-2002 David Faure <faure@kde.org>
 
9
             (C) 1999 Stephan Kulow <coolo@kde.org>
 
10
             (C) 1999 Reginald Stadlbauer <reggie@kde.org>
 
11
             (C) 1998-1999 Torben Weis <weis@kde.org>
 
12
 
 
13
   This library is free software; you can redistribute it and/or
 
14
   modify it under the terms of the GNU Library General Public
 
15
   License as published by the Free Software Foundation; either
 
16
   version 2 of the License, or (at your option) any later version.
 
17
 
 
18
   This library is distributed in the hope that it will be useful,
 
19
   but WITHOUT ANY WARRANTY; without even the implied warranty of
 
20
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 
21
   Library General Public License for more details.
 
22
 
 
23
   You should have received a copy of the GNU Library General Public License
 
24
   along with this library; see the file COPYING.LIB.  If not, write to
 
25
   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
 
26
   Boston, MA 02111-1307, USA.
 
27
*/
 
28
 
 
29
#ifndef __kspread_dlg_cons__
 
30
#define __kspread_dlg_cons__
 
31
 
 
32
#include <qstringlist.h>
 
33
#include <kdialogbase.h>
 
34
 
 
35
class QLineEdit;
 
36
class QPushButton;
 
37
class QComboBox;
 
38
class QCheckBox;
 
39
class QListBox;
 
40
 
 
41
class KSpreadView;
 
42
class KSpreadSheet;
 
43
 
 
44
class KSpreadConsolidate : public KDialogBase
 
45
{
 
46
  Q_OBJECT
 
47
public:
 
48
  KSpreadConsolidate( KSpreadView* parent, const char* name );
 
49
  ~KSpreadConsolidate();
 
50
  QStringList refs();
 
51
 
 
52
public slots:
 
53
  virtual void slotOk();
 
54
  virtual void slotCancel();
 
55
  void slotAdd();
 
56
  void slotRemove();
 
57
 
 
58
  void slotSelectionChanged( KSpreadSheet* _sheet, const QRect& _selection );
 
59
  void slotReturnPressed();
 
60
 
 
61
protected:
 
62
  virtual void closeEvent ( QCloseEvent * );
 
63
 
 
64
  KSpreadView* m_pView;
 
65
  QLineEdit* m_pRef;
 
66
  QListBox* m_pRefs;
 
67
  QComboBox* m_pFunction;
 
68
  QPushButton* m_pAdd;
 
69
  QPushButton* m_pRemove;
 
70
  QCheckBox* m_pRow;
 
71
  QCheckBox* m_pCol;
 
72
  QCheckBox* m_pCopy;
 
73
 
 
74
  QString evaluate( const QString& formula, KSpreadSheet* sheet );
 
75
 
 
76
  enum { Sum = 0, Average, Count, Max, Min, Product, StdDev, Var };
 
77
};
 
78
 
 
79
#endif