exports.h
author insilmaril
Sat Mar 31 09:28:27 2007 +0000 (2007-03-31)
changeset 441 658ad3bc0c8a
parent 311 6a7db028088e
child 465 8e6b95a0efa0
permissions -rw-r--r--
1.8.70 Fixes in property window
     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 QDir&);
    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 	QDir outDir;
    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 ExportFirefoxBookmarks:public ExportXMLBase
    57 {
    58 public:
    59 	virtual void doExport();
    60 };	
    61 
    62 ///////////////////////////////////////////////////////////////////////
    63 class ExportTaskjuggler:public ExportXMLBase
    64 {
    65 public:
    66 	virtual void doExport();
    67 };	
    68 
    69 ///////////////////////////////////////////////////////////////////////
    70 class ExportLaTeX:public ExportBase
    71 {
    72 public:
    73 	virtual void doExport();
    74 };	
    75 
    76 ///////////////////////////////////////////////////////////////////////
    77 class ExportOO:public ExportBase
    78 {
    79 public:
    80 	ExportOO();
    81 	~ExportOO();
    82 	void exportPresentation();
    83 	bool setConfigFile (const QString &);
    84 private:
    85 	QString buildList (BranchObj*);
    86 	bool useSections;
    87 	QString configFile;
    88 	QString configDir;
    89 	QString templateDir;
    90 	QString content;
    91 	QString contentTemplate;
    92 	QString contentTemplateFile;
    93 	QString contentFile;
    94 	QString pageTemplate;
    95 	QString pageTemplateFile;
    96 	QString sectionTemplate;
    97 	QString sectionTemplateFile;
    98 };
    99 #endif