exports.h
author insilmaril
Tue Jan 24 15:09:48 2006 +0000 (2006-01-24)
changeset 190 68c49789ec0b
parent 171 a98a07994eed
child 194 de97201180ea
permissions -rw-r--r--
Introduced basic export to Open Document format
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@171
    11
//using namespace std;
insilmaril@0
    12
insilmaril@183
    13
///////////////////////////////////////////////////////////////////////
insilmaril@171
    14
insilmaril@171
    15
class ExportBase
insilmaril@0
    16
{
insilmaril@0
    17
public:
insilmaril@171
    18
	ExportBase();
insilmaril@0
    19
	void setPath(const QString &);
insilmaril@0
    20
	void setMapCenter (MapCenterObj*);
insilmaril@0
    21
	void setIndentPerDepth (QString);
insilmaril@0
    22
protected:  
insilmaril@0
    23
	QString getSectionString (BranchObj*);
insilmaril@163
    24
public:	
insilmaril@171
    25
	void exportXML();
insilmaril@0
    26
insilmaril@171
    27
protected:
insilmaril@0
    28
	QDir outdir;
insilmaril@0
    29
	QString filepath;
insilmaril@0
    30
	MapCenterObj *mapCenter;
insilmaril@0
    31
	QString	indentPerDepth;
insilmaril@0
    32
};
insilmaril@0
    33
insilmaril@183
    34
///////////////////////////////////////////////////////////////////////
insilmaril@171
    35
class ExportLaTeX:public ExportBase
insilmaril@171
    36
{
insilmaril@171
    37
public:
insilmaril@171
    38
	void exportLaTeX();
insilmaril@171
    39
};	
insilmaril@171
    40
insilmaril@183
    41
///////////////////////////////////////////////////////////////////////
insilmaril@171
    42
class ExportOO:public ExportBase
insilmaril@171
    43
{
insilmaril@171
    44
public:
insilmaril@171
    45
	ExportOO();
insilmaril@171
    46
	~ExportOO();
insilmaril@171
    47
	void exportPresentation();
insilmaril@183
    48
	void setConfigFile (const QString &);
insilmaril@171
    49
private:
insilmaril@171
    50
	QString buildList (BranchObj*);
insilmaril@171
    51
	QDir tmpDir;
insilmaril@171
    52
	bool useChapters;
insilmaril@183
    53
	QString configFile;
insilmaril@183
    54
	QString configDir;
insilmaril@171
    55
	QString templateDir;
insilmaril@171
    56
	QString content;
insilmaril@171
    57
	QString contentTemplate;
insilmaril@171
    58
	QString contentTemplateFile;
insilmaril@171
    59
	QString contentFile;
insilmaril@171
    60
	QString outputFile;
insilmaril@171
    61
	QString pageTemplate;
insilmaril@171
    62
	QString pageTemplateFile;
insilmaril@171
    63
	QString chapterTemplate;
insilmaril@171
    64
	QString chapterTemplateFile;
insilmaril@171
    65
};
insilmaril@0
    66
#endif