exports.h
branchvendor
changeset 22 4c57ab32a7fe
child 62 85683324f94a
child 131 16b250a57c17
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/exports.h	Sun Jan 30 12:58:48 2005 +0000
     1.3 @@ -0,0 +1,34 @@
     1.4 +#ifndef EXPORTS_H
     1.5 +#define EXPORTS_H
     1.6 +
     1.7 +#include <qdir.h>
     1.8 +#include <qstring.h>
     1.9 +#include <iostream>
    1.10 +
    1.11 +#include "mapcenterobj.h"
    1.12 +
    1.13 +using namespace std;
    1.14 +
    1.15 +/////////////////////////////////////////////////////////////////////////////
    1.16 +class Export
    1.17 +{
    1.18 +public:
    1.19 +	Export();
    1.20 +	bool setOutputDir (QString);
    1.21 +	void setPath(const QString &);
    1.22 +	void setMapCenter (MapCenterObj*);
    1.23 +	void setIndentPerDepth (QString);
    1.24 +	void exportMap();
    1.25 +	void exportAsHTML();
    1.26 +protected:  
    1.27 +	QString getSectionString (BranchObj*);
    1.28 +	void write (QString);
    1.29 +
    1.30 +private:
    1.31 +	QDir outdir;
    1.32 +	QString filepath;
    1.33 +	MapCenterObj *mapCenter;
    1.34 +	QString	indentPerDepth;
    1.35 +};
    1.36 +
    1.37 +#endif