exports.h
author insilmaril
Wed May 02 15:31:17 2007 +0000 (2007-05-02)
changeset 482 24c7902a3e14
parent 424 d886c77ac0fe
child 497 ab118b86bc54
permissions -rw-r--r--
Mainly documentation fixes
     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 /*! \brief Base class for all exports
    13 */
    14 
    15 ///////////////////////////////////////////////////////////////////////
    16 
    17 class ExportBase
    18 {
    19 public:
    20 	ExportBase();
    21 	virtual ~ExportBase();
    22 	virtual void setDir(const QDir&);
    23 	virtual void setFile(const QString &);
    24 	virtual void setMapCenter (MapCenterObj*);
    25 	virtual void setCaption(const QString &);
    26 	virtual void addFilter (const QString &);
    27 	virtual bool execDialog();
    28 protected:  
    29 	virtual QString getSectionString (BranchObj*);
    30 
    31 	QDir tmpDir;
    32 	QDir outDir;
    33 	QString outputFile;
    34 	MapCenterObj *mapCenter;
    35 	QString	indentPerDepth;
    36 	QString caption;
    37 	QString filter;
    38 };
    39 
    40 ///////////////////////////////////////////////////////////////////////
    41 class ExportASCII:public ExportBase
    42 {
    43 public:
    44 	virtual void doExport();
    45 };
    46 
    47 ///////////////////////////////////////////////////////////////////////
    48 class ExportXMLBase:public ExportBase
    49 {
    50 };
    51 
    52 ///////////////////////////////////////////////////////////////////////
    53 class ExportKDEBookmarks:public ExportXMLBase
    54 {
    55 public:
    56 	virtual void doExport();
    57 };	
    58 
    59 ///////////////////////////////////////////////////////////////////////
    60 class ExportFirefoxBookmarks:public ExportXMLBase
    61 {
    62 public:
    63 	virtual void doExport();
    64 };	
    65 
    66 ///////////////////////////////////////////////////////////////////////
    67 class ExportTaskjuggler:public ExportXMLBase
    68 {
    69 public:
    70 	virtual void doExport();
    71 };	
    72 
    73 ///////////////////////////////////////////////////////////////////////
    74 class ExportLaTeX:public ExportBase
    75 {
    76 public:
    77 	virtual void doExport();
    78 };	
    79 
    80 ///////////////////////////////////////////////////////////////////////
    81 class ExportOO:public ExportBase
    82 {
    83 public:
    84 	ExportOO();
    85 	~ExportOO();
    86 	void exportPresentation();
    87 	bool setConfigFile (const QString &);
    88 private:
    89 	QString buildList (BranchObj*);
    90 	bool useSections;
    91 	QString configFile;
    92 	QString configDir;
    93 	QString templateDir;
    94 	QString content;
    95 	QString contentTemplate;
    96 	QString contentTemplateFile;
    97 	QString contentFile;
    98 	QString pageTemplate;
    99 	QString pageTemplateFile;
   100 	QString sectionTemplate;
   101 	QString sectionTemplateFile;
   102 };
   103 #endif