kspread

kspread_dlg_format.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 John Dailey <dailey@vt.edu>
5 (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
6 (C) 2000-2002 Laurent Montel <montel@kde.org>
7 (C) 2000 Werner Trobin <trobin@kde.org>
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_FORMAT
27#define KSPREAD_DLG_FORMAT
28
29#include <kdialogbase.h>
30#include <tqstring.h>
31#include <tqvaluelist.h>
32#include <tqcolor.h>
33#include <tqpen.h>
34#include <tqfont.h>
35
36class TQComboBox;
37class TQLabel;
38class TQDomDocument;
39
40namespace KSpread
41{
42class Format;
43class Sheet;
44class View;
45
49class FormatDialog : public KDialogBase
50{
51 TQ_OBJECT
52
53public:
54 FormatDialog( View* view, const char* name = 0 );
56
57private slots:
58 void slotActivated( int index );
59 void slotOk();
60
61private:
62 bool parseXML( const TQDomDocument& doc );
63
64 TQComboBox* m_combo;
65 TQLabel* m_label;
66 View* m_view;
67
68 struct Entry
69 {
70 TQString xml;
71 TQString image;
72 TQString config;
73 TQString name;
74 };
75 TQValueList<Entry> m_entries;
76
77 Format* m_cells[ 16 ];
78};
79
80} // namespace KSpread
81
82#endif
Dialog for the "AutoFormat..." action.
The View class displays a KSpread document.
@ Format
Format only.
The KSpread namespace.
Definition commands.h:39