exports.h
author insilmaril
Mon Apr 24 10:05:10 2006 +0000 (2006-04-24)
changeset 303 cb64abb5cc9f
parent 234 5115a9d93e86
child 311 6a7db028088e
permissions -rw-r--r--
Fixed missing Icon for flag-url in XHTML export
     1 #ifndef EXPORTS_H
     2 #define EXPORTS_H
     3 
     4 #include <qdir.h>
     5 #include <qstring.h>
     6 #include <iostream>
     7 
     8 #include "mapcenterobj.h"
     9 #include "settings.h"
    10 
    11 ///////////////////////////////////////////////////////////////////////
    12 
    13 class ExportBase
    14 {
    15 public:
    16 	ExportBase();
    17 	virtual ~ExportBase();
    18 	virtual void setDir(const QString &);
    19 	virtual void setFile(const QString &);
    20 	virtual void setMapCenter (MapCenterObj*);
    21 	virtual void setCaption(const QString &);
    22 	virtual void addFilter (const QString &);
    23 	virtual bool execDialog();
    24 protected:  
    25 	virtual QString getSectionString (BranchObj*);
    26 
    27 	QDir tmpDir;
    28 	QString outputDir;
    29 	QString outputFile;
    30 	MapCenterObj *mapCenter;
    31 	QString	indentPerDepth;
    32 	QString caption;
    33 	QString filter;
    34 };
    35 
    36 ///////////////////////////////////////////////////////////////////////
    37 class ExportASCII:public ExportBase
    38 {
    39 public:
    40 	virtual void doExport();
    41 };
    42 
    43 ///////////////////////////////////////////////////////////////////////
    44 class ExportXMLBase:public ExportBase
    45 {
    46 };
    47 
    48 ///////////////////////////////////////////////////////////////////////
    49 class ExportKDEBookmarks:public ExportXMLBase
    50 {
    51 public:
    52 	virtual void doExport();
    53 };	
    54 
    55 ///////////////////////////////////////////////////////////////////////
    56 class ExportTaskjuggler:public ExportXMLBase
    57 {
    58 public:
    59 	virtual void doExport();
    60 };	
    61 
    62 ///////////////////////////////////////////////////////////////////////
    63 class ExportLaTeX:public ExportBase
    64 {
    65 public:
    66 	virtual void doExport();
    67 };	
    68 
    69 ///////////////////////////////////////////////////////////////////////
    70 class ExportOO:public ExportBase
    71 {
    72 public:
    73 	ExportOO();
    74 	~ExportOO();
    75 	void exportPresentation();
    76 	bool setConfigFile (const QString &);
    77 private:
    78 	QString buildList (BranchObj*);
    79 	bool useSections;
    80 	QString configFile;
    81 	QString configDir;
    82 	QString templateDir;
    83 	QString content;
    84 	QString contentTemplate;
    85 	QString contentTemplateFile;
    86 	QString contentFile;
    87 	QString pageTemplate;
    88 	QString pageTemplateFile;
    89 	QString sectionTemplate;
    90 	QString sectionTemplateFile;
    91 };
    92 #endif