exports.h
author insilmaril
Wed Feb 15 12:54:55 2006 +0000 (2006-02-15)
changeset 203 1ced9d88d82d
parent 194 de97201180ea
child 205 30c4a6c7ff10
permissions -rw-r--r--
1.7.9 Import of KDE bookmarks, some _de translations
     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