exports.h
author insilmaril
Tue, 24 Jan 2006 15:09:48 +0000
changeset 190 68c49789ec0b
parent 183 97e0bd468439
child 194 de97201180ea
permissions -rw-r--r--
Introduced basic export to Open Document format
     1 #ifndef EXPORTS_H
     2 #define EXPORTS_H
     3 
     4 #include <qdir.h>
     5 #include <qstring.h>
     6 #include <iostream>
     7 
     8 #include "mapcenterobj.h"
     9 #include "settings.h"
    10 
    11 //using namespace std;
    12 
    13 ///////////////////////////////////////////////////////////////////////
    14 
    15 class ExportBase
    16 {
    17 public:
    18 	ExportBase();
    19 	void setPath(const QString &);
    20 	void setMapCenter (MapCenterObj*);
    21 	void setIndentPerDepth (QString);
    22 protected:  
    23 	QString getSectionString (BranchObj*);
    24 public:	
    25 	void exportXML();
    26 
    27 protected:
    28 	QDir outdir;
    29 	QString filepath;
    30 	MapCenterObj *mapCenter;
    31 	QString	indentPerDepth;
    32 };
    33 
    34 ///////////////////////////////////////////////////////////////////////
    35 class ExportLaTeX:public ExportBase
    36 {
    37 public:
    38 	void exportLaTeX();
    39 };	
    40 
    41 ///////////////////////////////////////////////////////////////////////
    42 class ExportOO:public ExportBase
    43 {
    44 public:
    45 	ExportOO();
    46 	~ExportOO();
    47 	void exportPresentation();
    48 	void setConfigFile (const QString &);
    49 private:
    50 	QString buildList (BranchObj*);
    51 	QDir tmpDir;
    52 	bool useChapters;
    53 	QString configFile;
    54 	QString configDir;
    55 	QString templateDir;
    56 	QString content;
    57 	QString contentTemplate;
    58 	QString contentTemplateFile;
    59 	QString contentFile;
    60 	QString outputFile;
    61 	QString pageTemplate;
    62 	QString pageTemplateFile;
    63 	QString chapterTemplate;
    64 	QString chapterTemplateFile;
    65 };
    66 #endif