author | insilmaril |
Thu Nov 08 15:28:03 2007 +0000 (2007-11-08) | |
changeset 620 | 24bfecc949a0 |
parent 611 | a1ae877b438d |
child 644 | 954221e01e4e |
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@613 | 49 |
virtual QString underline (const QString &text, const QString &line); |
insilmaril@228 | 50 |
}; |
insilmaril@228 | 51 |
|
insilmaril@228 | 52 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@497 | 53 |
class ExportCSV:public ExportBase |
insilmaril@497 | 54 |
{ |
insilmaril@497 | 55 |
public: |
insilmaril@497 | 56 |
virtual void doExport(); |
insilmaril@497 | 57 |
}; |
insilmaril@497 | 58 |
|
insilmaril@497 | 59 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 60 |
class ExportXMLBase:public ExportBase |
insilmaril@228 | 61 |
{ |
insilmaril@228 | 62 |
}; |
insilmaril@228 | 63 |
|
insilmaril@228 | 64 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@239 | 65 |
class ExportKDEBookmarks:public ExportXMLBase |
insilmaril@239 | 66 |
{ |
insilmaril@239 | 67 |
public: |
insilmaril@239 | 68 |
virtual void doExport(); |
insilmaril@239 | 69 |
}; |
insilmaril@239 | 70 |
|
insilmaril@239 | 71 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@311 | 72 |
class ExportFirefoxBookmarks:public ExportXMLBase |
insilmaril@311 | 73 |
{ |
insilmaril@311 | 74 |
public: |
insilmaril@311 | 75 |
virtual void doExport(); |
insilmaril@311 | 76 |
}; |
insilmaril@311 | 77 |
|
insilmaril@311 | 78 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 79 |
class ExportTaskjuggler:public ExportXMLBase |
insilmaril@228 | 80 |
{ |
insilmaril@228 | 81 |
public: |
insilmaril@228 | 82 |
virtual void doExport(); |
insilmaril@228 | 83 |
}; |
insilmaril@228 | 84 |
|
insilmaril@228 | 85 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 86 |
class ExportLaTeX:public ExportBase |
insilmaril@171 | 87 |
{ |
insilmaril@171 | 88 |
public: |
insilmaril@228 | 89 |
virtual void doExport(); |
insilmaril@171 | 90 |
}; |
insilmaril@171 | 91 |
|
insilmaril@183 | 92 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 93 |
class ExportOO:public ExportBase |
insilmaril@171 | 94 |
{ |
insilmaril@171 | 95 |
public: |
insilmaril@171 | 96 |
ExportOO(); |
insilmaril@171 | 97 |
~ExportOO(); |
insilmaril@171 | 98 |
void exportPresentation(); |
insilmaril@194 | 99 |
bool setConfigFile (const QString &); |
insilmaril@171 | 100 |
private: |
insilmaril@171 | 101 |
QString buildList (BranchObj*); |
insilmaril@194 | 102 |
bool useSections; |
insilmaril@183 | 103 |
QString configFile; |
insilmaril@183 | 104 |
QString configDir; |
insilmaril@171 | 105 |
QString templateDir; |
insilmaril@171 | 106 |
QString content; |
insilmaril@171 | 107 |
QString contentTemplate; |
insilmaril@171 | 108 |
QString contentTemplateFile; |
insilmaril@171 | 109 |
QString contentFile; |
insilmaril@171 | 110 |
QString pageTemplate; |
insilmaril@171 | 111 |
QString pageTemplateFile; |
insilmaril@194 | 112 |
QString sectionTemplate; |
insilmaril@194 | 113 |
QString sectionTemplateFile; |
insilmaril@171 | 114 |
}; |
insilmaril@0 | 115 |
#endif |