filters
starwriterimport.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __STARWRITERIMPORT_H
00023 #define __STARWRITERIMPORT_H
00024
00025 #include <KoFilter.h>
00026 #include <qstring.h>
00027 #include <qcstring.h>
00028
00029 class StarWriterImport: public KoFilter
00030 {
00031 Q_OBJECT
00032
00033 public:
00034 StarWriterImport(KoFilter *parent, const char *name, const QStringList&);
00035 virtual ~StarWriterImport();
00036 KoFilter::ConversionStatus convert(const QCString& from, const QCString& to);
00037
00038 private:
00039
00040 QByteArray SwPageStyleSheets;
00041 QByteArray StarWriterDocument;
00042
00043
00044 Q_UINT8 tablesNumber;
00045 QString bodyStuff, tablesStuff, picturesStuff;
00046
00047
00048 bool hasHeader;
00049 bool hasFooter;
00050
00051
00052 bool checkDocumentVersion();
00053
00054
00055 bool addKWordHeader();
00056 bool addPageProperties();
00057 bool addStyles();
00058 bool addHeaders();
00059 bool addFooters();
00060 bool addBody();
00061 QString convertToKWordString(QByteArray s);
00062
00063
00064 bool parseNodes(QByteArray n);
00065 bool parseText(QByteArray n);
00066 bool parseTable(QByteArray n);
00067 bool parseGraphics(QByteArray n);
00068
00069
00070 QString maindoc;
00071 };
00072
00073 #endif
|