kspread
kspread_dlg_format.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
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 }
00080
00081 #endif
|