filters
ImportStyle.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef _IMPORT_STYLE_H
00021 #define _IMPORT_STYLE_H
00022
00023 #include <qvaluelist.h>
00024 #include <qstring.h>
00025 #include <qmap.h>
00026
00027 class StyleData
00028 {
00029 public:
00030 StyleData(void);
00031 public:
00032 int m_level;
00033 QString m_props;
00034 };
00035
00036 class StyleDataMap : public QMap<QString,StyleData>
00037 {
00038 public:
00039 StyleDataMap(void);
00040 public:
00041 void defineNewStyle(const QString& strName, const int level, const QString& strProps);
00042 void defineNewStyleFromOld(const QString& strName, const QString& strOld,
00043 const int level, const QString& strProps);
00044 StyleDataMap::Iterator useOrCreateStyle(const QString& strName);
00045 void defineDefaultStyles(void);
00046 private:
00047 QString getDefaultStyle(void);
00048 };
00049
00050 #endif // _IMPORT_STYLE_H
00051
|