kspread
krs_doc.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef KSPREAD_KROSS_KRS_DOC_H_
00021 #define KSPREAD_KROSS_KRS_DOC_H_
00022
00023 #include <kspread_doc.h>
00024
00025 #include <api/class.h>
00026
00027 #include <qstring.h>
00028 #include <qstringlist.h>
00029 #include <qdom.h>
00030
00031 namespace Kross { namespace KSpreadCore {
00032
00033 class Sheet;
00034
00043 class Doc : public Kross::Api::Class<Doc>
00044 {
00045 public:
00046 explicit Doc(KSpread::Doc* doc);
00047 virtual ~Doc();
00048 virtual const QString getClassName() const;
00049 private:
00050
00061 Sheet* currentSheet();
00062
00072 Sheet* sheetByName(const QString& name);
00073
00084 QStringList sheetNames();
00085
00089 bool addSheet(const QString& sheetname);
00090
00094 bool removeSheet(const QString& sheetname);
00095
00099 bool loadNativeXML(const QString& xml);
00103 QString saveNativeXML();
00104
00105 #if 0
00106 bool loadOpenDocXML(const QString& xml);
00107 QString saveOpenDocXML();
00108 #endif
00109
00110 bool openUrl(const QString& url);
00111 bool saveUrl(const QString& url);
00112 bool import(const QString& url);
00113 bool exp0rt(const QString& url);
00114
00115 private:
00116 KSpread::Doc* m_doc;
00117 };
00118 }
00119 }
00120
00121
00122 #endif
|