kspread

kspread_dlg_reference.h
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 Harri Porten <porten@kde.org>
5 (C) 2002 John Dailey <dailey@vt.edu>
6 (C) 1999-2002 Laurent Montel <montel@kde.org>
7 (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
8 (C) 1998-2000 Torben Weis <weis@kde.org>
9
10 This library is free software; you can redistribute it and/or
11 modify it under the terms of the GNU Library General Public
12 License as published by the Free Software Foundation; either
13 version 2 of the License, or (at your option) any later version.
14
15 This library is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 Library General Public License for more details.
19
20 You should have received a copy of the GNU Library General Public License
21 along with this library; see the file COPYING.LIB. If not, write to
22 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
23 * Boston, MA 02110-1301, USA.
24*/
25
26#ifndef __kspread_dlg_reference__
27#define __kspread_dlg_reference__
28
29#include <kdialogbase.h>
30
31class TQComboBox;
32class TQLabel;
33class TQLineEdit;
34class TQPushButton;
35class TQListBox;
36class TQListBoxItem;
37
38namespace KSpread
39{
40class View;
41
42class reference: public TQDialog
43{
44 TQ_OBJECT
45
46public:
47 reference( View* parent, const char* name );
48
49
50public slots:
51 void slotOk();
52 void slotCancel();
53 void slotDoubleClicked(TQListBoxItem *);
54 void slotRemove();
55 void slotEdit();
56 void slotHighlighted(TQListBoxItem *);
57protected:
58 View * m_pView;
59
60 TQListBox * m_list;
61 TQPushButton * m_pOk;
62 TQPushButton * m_pCancel;
63 TQPushButton * m_pEdit;
64 TQPushButton * m_pRemove;
65 TQLabel * m_rangeName;
66
67private:
68 void displayAreaValues(TQString const & areaName);
69};
70
71class EditAreaName : public KDialogBase
72{
73 TQ_OBJECT
74
75
76public:
77 EditAreaName( View * parent, const char * name,
78 TQString const & areaname );
79 ~EditAreaName();
80
81public slots:
82 virtual void slotOk();
83
84private:
85 View * m_pView;
86
87 TQLineEdit * m_area;
88 TQComboBox * m_sheets;
89 TQLabel * m_areaName;
90};
91
92} // namespace KSpread
93
94#endif
The View class displays a KSpread document.
The KSpread namespace.
Definition commands.h:39