author | insilmaril |
Tue Jan 24 15:09:48 2006 +0000 (2006-01-24) | |
changeset 180 | 60e2297bab39 |
parent 163 | 30b22f7bd009 |
child 183 | 97e0bd468439 |
permissions | -rw-r--r-- |
insilmaril@0 | 1 |
#ifndef EXPORTS_H |
insilmaril@0 | 2 |
#define EXPORTS_H |
insilmaril@0 | 3 |
|
insilmaril@0 | 4 |
#include <qdir.h> |
insilmaril@0 | 5 |
#include <qstring.h> |
insilmaril@0 | 6 |
#include <iostream> |
insilmaril@0 | 7 |
|
insilmaril@0 | 8 |
#include "mapcenterobj.h" |
insilmaril@171 | 9 |
#include "settings.h" |
insilmaril@0 | 10 |
|
insilmaril@171 | 11 |
//using namespace std; |
insilmaril@0 | 12 |
|
insilmaril@0 | 13 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 14 |
|
insilmaril@171 | 15 |
class ExportBase |
insilmaril@0 | 16 |
{ |
insilmaril@0 | 17 |
public: |
insilmaril@171 | 18 |
ExportBase(); |
insilmaril@0 | 19 |
void setPath(const QString &); |
insilmaril@0 | 20 |
void setMapCenter (MapCenterObj*); |
insilmaril@0 | 21 |
void setIndentPerDepth (QString); |
insilmaril@0 | 22 |
protected: |
insilmaril@0 | 23 |
QString getSectionString (BranchObj*); |
insilmaril@163 | 24 |
public: |
insilmaril@171 | 25 |
void exportXML(); |
insilmaril@0 | 26 |
|
insilmaril@171 | 27 |
protected: |
insilmaril@0 | 28 |
QDir outdir; |
insilmaril@0 | 29 |
QString filepath; |
insilmaril@0 | 30 |
MapCenterObj *mapCenter; |
insilmaril@0 | 31 |
QString indentPerDepth; |
insilmaril@0 | 32 |
}; |
insilmaril@0 | 33 |
|
insilmaril@171 | 34 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 35 |
class ExportLaTeX:public ExportBase |
insilmaril@171 | 36 |
{ |
insilmaril@171 | 37 |
public: |
insilmaril@171 | 38 |
void exportLaTeX(); |
insilmaril@171 | 39 |
}; |
insilmaril@171 | 40 |
|
insilmaril@171 | 41 |
///////////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 42 |
class ExportOO:public ExportBase |
insilmaril@171 | 43 |
{ |
insilmaril@171 | 44 |
public: |
insilmaril@171 | 45 |
ExportOO(); |
insilmaril@171 | 46 |
~ExportOO(); |
insilmaril@171 | 47 |
void exportPresentation(); |
insilmaril@171 | 48 |
private: |
insilmaril@171 | 49 |
QString buildList (BranchObj*); |
insilmaril@171 | 50 |
QString walkPages (BranchObj*); |
insilmaril@171 | 51 |
QDir tmpDir; |
insilmaril@171 | 52 |
bool useChapters; |
insilmaril@171 | 53 |
QString templateDir; |
insilmaril@171 | 54 |
QString content; |
insilmaril@171 | 55 |
QString contentTemplate; |
insilmaril@171 | 56 |
QString contentTemplateFile; |
insilmaril@171 | 57 |
QString contentFile; |
insilmaril@171 | 58 |
QString outputFile; |
insilmaril@171 | 59 |
QString pageTemplate; |
insilmaril@171 | 60 |
QString pageTemplateFile; |
insilmaril@171 | 61 |
QString chapterTemplate; |
insilmaril@171 | 62 |
QString chapterTemplateFile; |
insilmaril@171 | 63 |
}; |
insilmaril@0 | 64 |
#endif |