exports.h
author insilmaril
Tue, 03 Jan 2006 09:44:41 +0000
changeset 173 309609406650
parent 171 a98a07994eed
child 183 97e0bd468439
permissions -rw-r--r--
1.7.6 New features for floatimages and fixes
     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