author | insilmaril |
Mon Jan 14 16:26:59 2008 +0000 (2008-01-14) | |
changeset 645 | 2abfdb7e85f4 |
parent 613 | 8fb5b3956b3e |
child 742 | 54d44ecd6097 |
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@644 | 10 |
#include "vymmodel.h" |
insilmaril@0 | 11 |
|
insilmaril@465 | 12 |
|
insilmaril@465 | 13 |
/*! \brief Base class for all exports |
insilmaril@465 | 14 |
*/ |
insilmaril@465 | 15 |
|
insilmaril@183 | 16 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 17 |
|
insilmaril@171 | 18 |
class ExportBase |
insilmaril@0 | 19 |
{ |
insilmaril@0 | 20 |
public: |
insilmaril@171 | 21 |
ExportBase(); |
insilmaril@228 | 22 |
virtual ~ExportBase(); |
insilmaril@424 | 23 |
virtual void setDir(const QDir&); |
insilmaril@228 | 24 |
virtual void setFile(const QString &); |
insilmaril@513 | 25 |
virtual QString getFile (); |
insilmaril@644 | 26 |
virtual void setModel (VymModel *m); |
insilmaril@228 | 27 |
virtual void setCaption(const QString &); |
insilmaril@228 | 28 |
virtual void addFilter (const QString &); |
insilmaril@228 | 29 |
virtual bool execDialog(); |
insilmaril@513 | 30 |
virtual bool canceled(); |
insilmaril@0 | 31 |
protected: |
insilmaril@644 | 32 |
VymModel *model; |
insilmaril@228 | 33 |
virtual QString getSectionString (BranchObj*); |
insilmaril@0 | 34 |
|
insilmaril@205 | 35 |
QDir tmpDir; |
insilmaril@424 | 36 |
QDir outDir; |
insilmaril@199 | 37 |
QString outputFile; |
insilmaril@0 | 38 |
QString indentPerDepth; |
insilmaril@228 | 39 |
QString caption; |
insilmaril@228 | 40 |
QString filter; |
insilmaril@513 | 41 |
bool cancelFlag; |
insilmaril@0 | 42 |
}; |
insilmaril@0 | 43 |
|
insilmaril@183 | 44 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 45 |
class ExportASCII:public ExportBase |
insilmaril@228 | 46 |
{ |
insilmaril@228 | 47 |
public: |
insilmaril@513 | 48 |
ExportASCII(); |
insilmaril@228 | 49 |
virtual void doExport(); |
insilmaril@613 | 50 |
virtual QString underline (const QString &text, const QString &line); |
insilmaril@228 | 51 |
}; |
insilmaril@228 | 52 |
|
insilmaril@228 | 53 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@497 | 54 |
class ExportCSV:public ExportBase |
insilmaril@497 | 55 |
{ |
insilmaril@497 | 56 |
public: |
insilmaril@497 | 57 |
virtual void doExport(); |
insilmaril@497 | 58 |
}; |
insilmaril@497 | 59 |
|
insilmaril@497 | 60 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 61 |
class ExportXMLBase:public ExportBase |
insilmaril@228 | 62 |
{ |
insilmaril@228 | 63 |
}; |
insilmaril@228 | 64 |
|
insilmaril@228 | 65 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@239 | 66 |
class ExportKDEBookmarks:public ExportXMLBase |
insilmaril@239 | 67 |
{ |
insilmaril@239 | 68 |
public: |
insilmaril@239 | 69 |
virtual void doExport(); |
insilmaril@239 | 70 |
}; |
insilmaril@239 | 71 |
|
insilmaril@239 | 72 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@311 | 73 |
class ExportFirefoxBookmarks:public ExportXMLBase |
insilmaril@311 | 74 |
{ |
insilmaril@311 | 75 |
public: |
insilmaril@311 | 76 |
virtual void doExport(); |
insilmaril@311 | 77 |
}; |
insilmaril@311 | 78 |
|
insilmaril@311 | 79 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@228 | 80 |
class ExportTaskjuggler:public ExportXMLBase |
insilmaril@228 | 81 |
{ |
insilmaril@228 | 82 |
public: |
insilmaril@228 | 83 |
virtual void doExport(); |
insilmaril@228 | 84 |
}; |
insilmaril@228 | 85 |
|
insilmaril@228 | 86 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 87 |
class ExportLaTeX:public ExportBase |
insilmaril@171 | 88 |
{ |
insilmaril@171 | 89 |
public: |
insilmaril@228 | 90 |
virtual void doExport(); |
insilmaril@171 | 91 |
}; |
insilmaril@171 | 92 |
|
insilmaril@183 | 93 |
/////////////////////////////////////////////////////////////////////// |
insilmaril@171 | 94 |
class ExportOO:public ExportBase |
insilmaril@171 | 95 |
{ |
insilmaril@171 | 96 |
public: |
insilmaril@171 | 97 |
ExportOO(); |
insilmaril@171 | 98 |
~ExportOO(); |
insilmaril@171 | 99 |
void exportPresentation(); |
insilmaril@194 | 100 |
bool setConfigFile (const QString &); |
insilmaril@171 | 101 |
private: |
insilmaril@171 | 102 |
QString buildList (BranchObj*); |
insilmaril@194 | 103 |
bool useSections; |
insilmaril@183 | 104 |
QString configFile; |
insilmaril@183 | 105 |
QString configDir; |
insilmaril@171 | 106 |
QString templateDir; |
insilmaril@171 | 107 |
QString content; |
insilmaril@171 | 108 |
QString contentTemplate; |
insilmaril@171 | 109 |
QString contentTemplateFile; |
insilmaril@171 | 110 |
QString contentFile; |
insilmaril@171 | 111 |
QString pageTemplate; |
insilmaril@171 | 112 |
QString pageTemplateFile; |
insilmaril@194 | 113 |
QString sectionTemplate; |
insilmaril@194 | 114 |
QString sectionTemplateFile; |
insilmaril@171 | 115 |
}; |
insilmaril@0 | 116 |
#endif |