filters
htmlexport.h00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef HTMLEXPORT_TEST_H
00023 #define HTMLEXPORT_TEST_H
00024
00025 #include <KoFilter.h>
00026
00027 class ExportDialog;
00028 class KoDocument;
00029
00030 namespace KSpread
00031 {
00032 class Sheet;
00033 }
00034
00035 class HTMLExport : public KoFilter {
00036 Q_OBJECT
00037 public:
00038 HTMLExport(KoFilter *parent, const char*name, const QStringList&);
00039 virtual ~HTMLExport();
00040
00041 virtual KoFilter::ConversionStatus convert( const QCString& from, const QCString& to );
00042 private:
00044 void openPage( KSpread::Sheet *sheet,KoDocument *document, QString &str);
00045
00047 void closePage( QString &);
00048
00052 void convertSheet( KSpread::Sheet *sheet, QString &str, int, int);
00053
00055 void createSheetSeparator( QString & );
00056
00058 void writeTOC( const QStringList &, const QString &, QString & );
00059
00064 QString fileName( const QString &base, const QString &, bool );
00065
00070 void detectFilledCells( KSpread::Sheet *sheet, int &rows, int &colums );
00071 private:
00072 ExportDialog *m_dialog;
00073
00074 typedef QMap<QString,int> Rows;
00075 Rows m_rowmap;
00076 typedef QMap<QString,int> Columns;
00077 Columns m_columnmap;
00078 };
00079
00080 #endif
00081
|