exports.h
author insilmaril
Wed, 01 Feb 2006 16:14:55 +0000
changeset 201 eda811e31b2e
parent 199 202572375c98
child 205 30c4a6c7ff10
permissions -rw-r--r--
check for section-templates only if needed
     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 setDir(const QString &);
    20 	void setFile(const QString &);
    21 	void setMapCenter (MapCenterObj*);
    22 	void setIndentPerDepth (QString);
    23 protected:  
    24 	QString getSectionString (BranchObj*);
    25 public:	
    26 	void exportXML();
    27 
    28 protected:
    29 	QDir outdir;
    30 	QString outputDir;
    31 	QString outputFile;
    32 	MapCenterObj *mapCenter;
    33 	QString	indentPerDepth;
    34 };
    35 
    36 ///////////////////////////////////////////////////////////////////////
    37 class ExportLaTeX:public ExportBase
    38 {
    39 public:
    40 	void exportLaTeX();
    41 };	
    42 
    43 ///////////////////////////////////////////////////////////////////////
    44 class ExportOO:public ExportBase
    45 {
    46 public:
    47 	ExportOO();
    48 	~ExportOO();
    49 	void exportPresentation();
    50 	bool setConfigFile (const QString &);
    51 private:
    52 	QString buildList (BranchObj*);
    53 	QDir tmpDir;
    54 	bool useSections;
    55 	QString configFile;
    56 	QString configDir;
    57 	QString templateDir;
    58 	QString content;
    59 	QString contentTemplate;
    60 	QString contentTemplateFile;
    61 	QString contentFile;
    62 	QString pageTemplate;
    63 	QString pageTemplateFile;
    64 	QString sectionTemplate;
    65 	QString sectionTemplateFile;
    66 };
    67 #endif