exports.h
author insilmaril
Tue Feb 21 16:18:23 2006 +0000 (2006-02-21)
changeset 217 375be2baa976
parent 199 202572375c98
child 228 654ad4b03c5a
permissions -rw-r--r--
rudimentary mmap import
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@199
    17
	void setDir(const QString &);
insilmaril@199
    18
	void setFile(const QString &);
insilmaril@0
    19
	void setMapCenter (MapCenterObj*);
insilmaril@0
    20
	void setIndentPerDepth (QString);
insilmaril@0
    21
protected:  
insilmaril@0
    22
	QString getSectionString (BranchObj*);
insilmaril@163
    23
public:	
insilmaril@171
    24
	void exportXML();
insilmaril@0
    25
insilmaril@171
    26
protected:
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@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@194
    48
	bool setConfigFile (const QString &);
insilmaril@171
    49
private:
insilmaril@171
    50
	QString buildList (BranchObj*);
insilmaril@194
    51
	bool useSections;
insilmaril@183
    52
	QString configFile;
insilmaril@183
    53
	QString configDir;
insilmaril@171
    54
	QString templateDir;
insilmaril@171
    55
	QString content;
insilmaril@171
    56
	QString contentTemplate;
insilmaril@171
    57
	QString contentTemplateFile;
insilmaril@171
    58
	QString contentFile;
insilmaril@171
    59
	QString pageTemplate;
insilmaril@171
    60
	QString pageTemplateFile;
insilmaril@194
    61
	QString sectionTemplate;
insilmaril@194
    62
	QString sectionTemplateFile;
insilmaril@171
    63
};
insilmaril@0
    64
#endif