author | insilmaril |
Mon Jul 23 12:42:02 2007 +0000 (2007-07-23) | |
changeset 562 | 2f452407dcb7 |
parent 497 | ab118b86bc54 |
child 611 | a1ae877b438d |
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@513 | 24 |
virtual QString getFile (); |
insilmaril@228 | 25 |
virtual void setMapCenter (MapCenterObj*); |
insilmaril@228 | 26 |
virtual void setCaption(const QString &); |
insilmaril@228 | 27 |
virtual void addFilter (const QString &); |
insilmaril@228 | 28 |
virtual bool execDialog(); |
insilmaril@513 | 29 |
virtual bool canceled(); |
insilmaril@0 | 30 |
protected: |
insilmaril@228 | 31 |
virtual QString getSectionString (BranchObj*); |
insilmaril@0 | 32 |
|
insilmaril@205 | 33 |
QDir tmpDir; |
insilmaril@424 | 34 |
QDir outDir; |
insilmaril@199 | 35 |
QString outputFile; |
insilmaril@0 | 36 |
MapCenterObj *mapCenter; |
insilmaril@0 | 37 |
QString indentPerDepth; |
insilmaril@228 | 38 |
QString caption; |
insilmaril@228 | 39 |
QString filter; |
insilmaril@513 | 40 |
bool cancelFlag; |
insilmaril@0 | 41 |
}; |
insilmaril@0 | 42 |
|
insilmaril@183 | 43 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 44 |
class ExportASCII:public ExportBase |
insilmaril@228 | 45 |
{ |
insilmaril@228 | 46 |
public: |
insilmaril@513 | 47 |
ExportASCII(); |
insilmaril@228 | 48 |
virtual void doExport(); |
insilmaril@228 | 49 |
}; |
insilmaril@228 | 50 |
|
insilmaril@228 | 51 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@497 | 52 |
class ExportCSV:public ExportBase |
insilmaril@497 | 53 |
{ |
insilmaril@497 | 54 |
public: |
insilmaril@497 | 55 |
virtual void doExport(); |
insilmaril@497 | 56 |
}; |
insilmaril@497 | 57 |
|
insilmaril@497 | 58 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 59 |
class ExportXMLBase:public ExportBase |
insilmaril@228 | 60 |
{ |
insilmaril@228 | 61 |
}; |
insilmaril@228 | 62 |
|
insilmaril@228 | 63 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@239 | 64 |
class ExportKDEBookmarks:public ExportXMLBase |
insilmaril@239 | 65 |
{ |
insilmaril@239 | 66 |
public: |
insilmaril@239 | 67 |
virtual void doExport(); |
insilmaril@239 | 68 |
}; |
insilmaril@239 | 69 |
|
insilmaril@239 | 70 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@311 | 71 |
class ExportFirefoxBookmarks:public ExportXMLBase |
insilmaril@311 | 72 |
{ |
insilmaril@311 | 73 |
public: |
insilmaril@311 | 74 |
virtual void doExport(); |
insilmaril@311 | 75 |
}; |
insilmaril@311 | 76 |
|
insilmaril@311 | 77 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 78 |
class ExportTaskjuggler:public ExportXMLBase |
insilmaril@228 | 79 |
{ |
insilmaril@228 | 80 |
public: |
insilmaril@228 | 81 |
virtual void doExport(); |
insilmaril@228 | 82 |
}; |
insilmaril@228 | 83 |
|
insilmaril@228 | 84 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 85 |
class ExportLaTeX:public ExportBase |
insilmaril@171 | 86 |
{ |
insilmaril@171 | 87 |
public: |
insilmaril@228 | 88 |
virtual void doExport(); |
insilmaril@171 | 89 |
}; |
insilmaril@171 | 90 |
|
insilmaril@183 | 91 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 92 |
class ExportOO:public ExportBase |
insilmaril@171 | 93 |
{ |
insilmaril@171 | 94 |
public: |
insilmaril@171 | 95 |
ExportOO(); |
insilmaril@171 | 96 |
~ExportOO(); |
insilmaril@171 | 97 |
void exportPresentation(); |
insilmaril@194 | 98 |
bool setConfigFile (const QString &); |
insilmaril@171 | 99 |
private: |
insilmaril@171 | 100 |
QString buildList (BranchObj*); |
insilmaril@194 | 101 |
bool useSections; |
insilmaril@183 | 102 |
QString configFile; |
insilmaril@183 | 103 |
QString configDir; |
insilmaril@171 | 104 |
QString templateDir; |
insilmaril@171 | 105 |
QString content; |
insilmaril@171 | 106 |
QString contentTemplate; |
insilmaril@171 | 107 |
QString contentTemplateFile; |
insilmaril@171 | 108 |
QString contentFile; |
insilmaril@171 | 109 |
QString pageTemplate; |
insilmaril@171 | 110 |
QString pageTemplateFile; |
insilmaril@194 | 111 |
QString sectionTemplate; |
insilmaril@194 | 112 |
QString sectionTemplateFile; |
insilmaril@171 | 113 |
}; |
insilmaril@0 | 114 |
#endif |