exports.h
author insilmaril
Tue Feb 21 16:18:23 2006 +0000 (2006-02-21)
changeset 214 519970fe6c84
parent 199 202572375c98
child 228 654ad4b03c5a
permissions -rw-r--r--
rudimentary mmap import
     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 ///////////////////////////////////////////////////////////////////////
    12 
    13 class ExportBase
    14 {
    15 public:
    16 	ExportBase();
    17 	void setDir(const QString &);
    18 	void setFile(const QString &);
    19 	void setMapCenter (MapCenterObj*);
    20 	void setIndentPerDepth (QString);
    21 protected:  
    22 	QString getSectionString (BranchObj*);
    23 public:	
    24 	void exportXML();
    25 
    26 protected:
    27 	QDir tmpDir;
    28 	QString outputDir;
    29 	QString outputFile;
    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 	bool setConfigFile (const QString &);
    49 private:
    50 	QString buildList (BranchObj*);
    51 	bool useSections;
    52 	QString configFile;
    53 	QString configDir;
    54 	QString templateDir;
    55 	QString content;
    56 	QString contentTemplate;
    57 	QString contentTemplateFile;
    58 	QString contentFile;
    59 	QString pageTemplate;
    60 	QString pageTemplateFile;
    61 	QString sectionTemplate;
    62 	QString sectionTemplateFile;
    63 };
    64 #endif