exports.h
changeset 182 2747c4145c71
parent 163 30b22f7bd009
child 183 97e0bd468439
     1.1 --- a/exports.h	Mon Sep 12 19:52:51 2005 +0000
     1.2 +++ b/exports.h	Tue Jan 24 15:09:48 2006 +0000
     1.3 @@ -6,29 +6,59 @@
     1.4  #include <iostream>
     1.5  
     1.6  #include "mapcenterobj.h"
     1.7 +#include "settings.h"
     1.8  
     1.9 -using namespace std;
    1.10 +//using namespace std;
    1.11  
    1.12  /////////////////////////////////////////////////////////////////////////////
    1.13 -class Export
    1.14 +
    1.15 +class ExportBase
    1.16  {
    1.17  public:
    1.18 -	Export();
    1.19 +	ExportBase();
    1.20  	void setPath(const QString &);
    1.21  	void setMapCenter (MapCenterObj*);
    1.22  	void setIndentPerDepth (QString);
    1.23  protected:  
    1.24  	QString getSectionString (BranchObj*);
    1.25  public:	
    1.26 -	void exportMap();
    1.27 -	void exportLaTeX();
    1.28 -	void exportOOPresentation();
    1.29 +	void exportXML();
    1.30  
    1.31 -private:
    1.32 +protected:
    1.33  	QDir outdir;
    1.34  	QString filepath;
    1.35  	MapCenterObj *mapCenter;
    1.36  	QString	indentPerDepth;
    1.37  };
    1.38  
    1.39 +/////////////////////////////////////////////////////////////////////////////
    1.40 +class ExportLaTeX:public ExportBase
    1.41 +{
    1.42 +public:
    1.43 +	void exportLaTeX();
    1.44 +};	
    1.45 +
    1.46 +/////////////////////////////////////////////////////////////////////////////
    1.47 +class ExportOO:public ExportBase
    1.48 +{
    1.49 +public:
    1.50 +	ExportOO();
    1.51 +	~ExportOO();
    1.52 +	void exportPresentation();
    1.53 +private:
    1.54 +	QString buildList (BranchObj*);
    1.55 +	QString walkPages (BranchObj*);
    1.56 +	QDir tmpDir;
    1.57 +	bool useChapters;
    1.58 +	QString templateDir;
    1.59 +	QString content;
    1.60 +	QString contentTemplate;
    1.61 +	QString contentTemplateFile;
    1.62 +	QString contentFile;
    1.63 +	QString outputFile;
    1.64 +	QString pageTemplate;
    1.65 +	QString pageTemplateFile;
    1.66 +	QString chapterTemplate;
    1.67 +	QString chapterTemplateFile;
    1.68 +};
    1.69  #endif