kspread

kspread_dlg_format.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002-2003 Norbert Andres <nandres@web.de>
00003              (C) 2002 Ariya Hidayat <ariya@kde.org>
00004              (C) 2002 John Dailey <dailey@vt.edu>
00005              (C) 2001-2002 Philipp Mueller <philipp.mueller@gmx.de>
00006              (C) 2000-2002 Laurent Montel <montel@kde.org>
00007              (C) 2000 Werner Trobin <trobin@kde.org>
00008              (C) 1998-2000 Torben Weis <weis@kde.org>
00009              
00010    This library is free software; you can redistribute it and/or
00011    modify it under the terms of the GNU Library General Public
00012    License as published by the Free Software Foundation; either
00013    version 2 of the License, or (at your option) any later version.
00014 
00015    This library is distributed in the hope that it will be useful,
00016    but WITHOUT ANY WARRANTY; without even the implied warranty of
00017    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018    Library General Public License for more details.
00019 
00020    You should have received a copy of the GNU Library General Public License
00021    along with this library; see the file COPYING.LIB.  If not, write to
00022    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00023  * Boston, MA 02110-1301, USA.
00024 */
00025 
00026 #ifndef KSPREAD_DLG_FORMAT
00027 #define KSPREAD_DLG_FORMAT
00028 
00029 #include <kdialogbase.h>
00030 #include <qstring.h>
00031 #include <qvaluelist.h>
00032 #include <qcolor.h>
00033 #include <qpen.h>
00034 #include <qfont.h>
00035 
00036 class QComboBox;
00037 class QLabel;
00038 class QDomDocument;
00039 
00040 namespace KSpread
00041 {
00042 class Format;
00043 class Sheet;
00044 class View;
00045 
00049 class FormatDialog : public KDialogBase
00050 {
00051     Q_OBJECT
00052 public:
00053   FormatDialog( View* view, const char* name = 0 );
00054   ~FormatDialog();
00055 
00056 private slots:
00057     void slotActivated( int index );
00058     void slotOk();
00059 
00060 private:
00061     bool parseXML( const QDomDocument& doc );
00062 
00063     QComboBox* m_combo;
00064     QLabel* m_label;
00065     View* m_view;
00066 
00067     struct Entry
00068     {
00069     QString xml;
00070     QString image;
00071     QString config;
00072     QString name;
00073     };
00074     QValueList<Entry> m_entries;
00075 
00076     Format* m_cells[ 16 ];
00077 };
00078 
00079 } // namespace KSpread
00080 
00081 #endif
KDE Home | KDE Accessibility Home | Description of Access Keys