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