kspread
ksprsavinginfo.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KSPRSAVINGINFO_H
00021 #define KSPRSAVINGINFO_H
00022
00023 namespace KSpread
00024 {
00025 class Sheet;
00026
00028 class KSPRSavingInfo
00029 {
00030 public:
00031 KSPRSavingInfo() {styleNumber = 0;}
00032 ~KSPRSavingInfo() {}
00033 struct sheetDef {
00034 QString sheetName;
00035 Sheet *sheetIndex;
00036 };
00037
00038 typedef QMap<QString, sheetDef> StylePageMap;
00039
00040 void appendMasterPage( const QString &styleName, const sheetDef &_def ){ m_masterPageStyle.insert( styleName,_def );}
00041
00042 QString masterPageName( const QString &name) {
00043 sheetDef _def = m_masterPageStyle[name];
00044 return _def.sheetName;}
00045
00046 sheetDef pageDef( const QString &name) { return m_masterPageStyle[name]; }
00047
00048 bool findStyleName(const QString & name) const { return (m_masterPageStyle.find( name ) != m_masterPageStyle.end());}
00049
00050 StylePageMap stylePageMap() const { return m_masterPageStyle;}
00051
00052 int styleNumber;
00053
00054 private:
00055 StylePageMap m_masterPageStyle;
00056 };
00057
00058 }
00059
00060 #endif
00061
|