exports.h
author insilmaril
Mon, 27 Mar 2006 20:21:58 +0000
changeset 262 1f2c27608b4f
parent 239 bdeb503d2b7f
child 311 6a7db028088e
permissions -rw-r--r--
More documentation, fixed small bug where links of unselected objects where visible again
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@228
    56
class ExportTaskjuggler:public ExportXMLBase
insilmaril@228
    57
{
insilmaril@228
    58
public:
insilmaril@228
    59
	virtual void doExport();
insilmaril@228
    60
};	
insilmaril@228
    61
insilmaril@228
    62
///////////////////////////////////////////////////////////////////////
insilmaril@171
    63
class ExportLaTeX:public ExportBase
insilmaril@171
    64
{
insilmaril@171
    65
public:
insilmaril@228
    66
	virtual void doExport();
insilmaril@171
    67
};	
insilmaril@171
    68
insilmaril@183
    69
///////////////////////////////////////////////////////////////////////
insilmaril@171
    70
class ExportOO:public ExportBase
insilmaril@171
    71
{
insilmaril@171
    72
public:
insilmaril@171
    73
	ExportOO();
insilmaril@171
    74
	~ExportOO();
insilmaril@171
    75
	void exportPresentation();
insilmaril@194
    76
	bool setConfigFile (const QString &);
insilmaril@171
    77
private:
insilmaril@171
    78
	QString buildList (BranchObj*);
insilmaril@194
    79
	bool useSections;
insilmaril@183
    80
	QString configFile;
insilmaril@183
    81
	QString configDir;
insilmaril@171
    82
	QString templateDir;
insilmaril@171
    83
	QString content;
insilmaril@171
    84
	QString contentTemplate;
insilmaril@171
    85
	QString contentTemplateFile;
insilmaril@171
    86
	QString contentFile;
insilmaril@171
    87
	QString pageTemplate;
insilmaril@171
    88
	QString pageTemplateFile;
insilmaril@194
    89
	QString sectionTemplate;
insilmaril@194
    90
	QString sectionTemplateFile;
insilmaril@171
    91
};
insilmaril@0
    92
#endif