exports.h
author insilmaril
Tue Jan 24 15:09:48 2006 +0000 (2006-01-24)
changeset 182 2747c4145c71
parent 163 30b22f7bd009
child 183 97e0bd468439
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 private:
    49 	QString buildList (BranchObj*);
    50 	QString walkPages (BranchObj*);
    51 	QDir tmpDir;
    52 	bool useChapters;
    53 	QString templateDir;
    54 	QString content;
    55 	QString contentTemplate;
    56 	QString contentTemplateFile;
    57 	QString contentFile;
    58 	QString outputFile;
    59 	QString pageTemplate;
    60 	QString pageTemplateFile;
    61 	QString chapterTemplate;
    62 	QString chapterTemplateFile;
    63 };
    64 #endif