exports.h
author insilmaril
Tue Mar 07 11:32:02 2006 +0000 (2006-03-07)
changeset 231 1fe2373efbc3
parent 205 30c4a6c7ff10
child 234 5115a9d93e86
permissions -rw-r--r--
Added xsl for Taskjuggler Export by Matt
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@228
    49
class ExportTaskjuggler:public ExportXMLBase
insilmaril@228
    50
{
insilmaril@228
    51
public:
insilmaril@228
    52
	virtual void doExport();
insilmaril@228
    53
};	
insilmaril@228
    54
insilmaril@228
    55
///////////////////////////////////////////////////////////////////////
insilmaril@171
    56
class ExportLaTeX:public ExportBase
insilmaril@171
    57
{
insilmaril@171
    58
public:
insilmaril@228
    59
	virtual void doExport();
insilmaril@171
    60
};	
insilmaril@171
    61
insilmaril@183
    62
///////////////////////////////////////////////////////////////////////
insilmaril@171
    63
class ExportOO:public ExportBase
insilmaril@171
    64
{
insilmaril@171
    65
public:
insilmaril@171
    66
	ExportOO();
insilmaril@171
    67
	~ExportOO();
insilmaril@171
    68
	void exportPresentation();
insilmaril@194
    69
	bool setConfigFile (const QString &);
insilmaril@171
    70
private:
insilmaril@171
    71
	QString buildList (BranchObj*);
insilmaril@194
    72
	bool useSections;
insilmaril@183
    73
	QString configFile;
insilmaril@183
    74
	QString configDir;
insilmaril@171
    75
	QString templateDir;
insilmaril@171
    76
	QString content;
insilmaril@171
    77
	QString contentTemplate;
insilmaril@171
    78
	QString contentTemplateFile;
insilmaril@171
    79
	QString contentFile;
insilmaril@171
    80
	QString pageTemplate;
insilmaril@171
    81
	QString pageTemplateFile;
insilmaril@194
    82
	QString sectionTemplate;
insilmaril@194
    83
	QString sectionTemplateFile;
insilmaril@171
    84
};
insilmaril@0
    85
#endif