author | insilmaril |
Mon May 15 07:32:11 2006 +0000 (2006-05-15) | |
changeset 329 | 8f04006214dc |
parent 239 | bdeb503d2b7f |
child 424 | d886c77ac0fe |
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@183 | 11 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 12 |
|
insilmaril@171 | 13 |
class ExportBase |
insilmaril@0 | 14 |
{ |
insilmaril@0 | 15 |
public: |
insilmaril@171 | 16 |
ExportBase(); |
insilmaril@228 | 17 |
virtual ~ExportBase(); |
insilmaril@228 | 18 |
virtual void setDir(const QString &); |
insilmaril@228 | 19 |
virtual void setFile(const QString &); |
insilmaril@228 | 20 |
virtual void setMapCenter (MapCenterObj*); |
insilmaril@228 | 21 |
virtual void setCaption(const QString &); |
insilmaril@228 | 22 |
virtual void addFilter (const QString &); |
insilmaril@228 | 23 |
virtual bool execDialog(); |
insilmaril@0 | 24 |
protected: |
insilmaril@228 | 25 |
virtual QString getSectionString (BranchObj*); |
insilmaril@0 | 26 |
|
insilmaril@205 | 27 |
QDir tmpDir; |
insilmaril@199 | 28 |
QString outputDir; |
insilmaril@199 | 29 |
QString outputFile; |
insilmaril@0 | 30 |
MapCenterObj *mapCenter; |
insilmaril@0 | 31 |
QString indentPerDepth; |
insilmaril@228 | 32 |
QString caption; |
insilmaril@228 | 33 |
QString filter; |
insilmaril@0 | 34 |
}; |
insilmaril@0 | 35 |
|
insilmaril@183 | 36 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 37 |
class ExportASCII:public ExportBase |
insilmaril@228 | 38 |
{ |
insilmaril@228 | 39 |
public: |
insilmaril@228 | 40 |
virtual void doExport(); |
insilmaril@228 | 41 |
}; |
insilmaril@228 | 42 |
|
insilmaril@228 | 43 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 44 |
class ExportXMLBase:public ExportBase |
insilmaril@228 | 45 |
{ |
insilmaril@228 | 46 |
}; |
insilmaril@228 | 47 |
|
insilmaril@228 | 48 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@239 | 49 |
class ExportKDEBookmarks:public ExportXMLBase |
insilmaril@239 | 50 |
{ |
insilmaril@239 | 51 |
public: |
insilmaril@239 | 52 |
virtual void doExport(); |
insilmaril@239 | 53 |
}; |
insilmaril@239 | 54 |
|
insilmaril@239 | 55 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@311 | 56 |
class ExportFirefoxBookmarks:public ExportXMLBase |
insilmaril@311 | 57 |
{ |
insilmaril@311 | 58 |
public: |
insilmaril@311 | 59 |
virtual void doExport(); |
insilmaril@311 | 60 |
}; |
insilmaril@311 | 61 |
|
insilmaril@311 | 62 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 63 |
class ExportTaskjuggler:public ExportXMLBase |
insilmaril@228 | 64 |
{ |
insilmaril@228 | 65 |
public: |
insilmaril@228 | 66 |
virtual void doExport(); |
insilmaril@228 | 67 |
}; |
insilmaril@228 | 68 |
|
insilmaril@228 | 69 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 70 |
class ExportLaTeX:public ExportBase |
insilmaril@171 | 71 |
{ |
insilmaril@171 | 72 |
public: |
insilmaril@228 | 73 |
virtual void doExport(); |
insilmaril@171 | 74 |
}; |
insilmaril@171 | 75 |
|
insilmaril@183 | 76 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 77 |
class ExportOO:public ExportBase |
insilmaril@171 | 78 |
{ |
insilmaril@171 | 79 |
public: |
insilmaril@171 | 80 |
ExportOO(); |
insilmaril@171 | 81 |
~ExportOO(); |
insilmaril@171 | 82 |
void exportPresentation(); |
insilmaril@194 | 83 |
bool setConfigFile (const QString &); |
insilmaril@171 | 84 |
private: |
insilmaril@171 | 85 |
QString buildList (BranchObj*); |
insilmaril@194 | 86 |
bool useSections; |
insilmaril@183 | 87 |
QString configFile; |
insilmaril@183 | 88 |
QString configDir; |
insilmaril@171 | 89 |
QString templateDir; |
insilmaril@171 | 90 |
QString content; |
insilmaril@171 | 91 |
QString contentTemplate; |
insilmaril@171 | 92 |
QString contentTemplateFile; |
insilmaril@171 | 93 |
QString contentFile; |
insilmaril@171 | 94 |
QString pageTemplate; |
insilmaril@171 | 95 |
QString pageTemplateFile; |
insilmaril@194 | 96 |
QString sectionTemplate; |
insilmaril@194 | 97 |
QString sectionTemplateFile; |
insilmaril@171 | 98 |
}; |
insilmaril@0 | 99 |
#endif |