exports.h
author insilmaril
Mon Aug 27 11:16:56 2007 +0000 (2007-08-27)
changeset 591 29ebf5baff1d
parent 497 ab118b86bc54
child 611 a1ae877b438d
permissions -rw-r--r--
Updated pdfs in ./doc
     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 QString getFile ();
    25 	virtual void setMapCenter (MapCenterObj*);
    26 	virtual void setCaption(const QString &);
    27 	virtual void addFilter (const QString &);
    28 	virtual bool execDialog();
    29 	virtual bool canceled();
    30 protected:  
    31 	virtual QString getSectionString (BranchObj*);
    32 
    33 	QDir tmpDir;
    34 	QDir outDir;
    35 	QString outputFile;
    36 	MapCenterObj *mapCenter;
    37 	QString	indentPerDepth;
    38 	QString caption;
    39 	QString filter;
    40 	bool cancelFlag;
    41 };
    42 
    43 ///////////////////////////////////////////////////////////////////////
    44 class ExportASCII:public ExportBase
    45 {
    46 public:
    47 	ExportASCII();
    48 	virtual void doExport();
    49 };
    50 
    51 ///////////////////////////////////////////////////////////////////////
    52 class ExportCSV:public ExportBase
    53 {
    54 public:
    55 	virtual void doExport();
    56 };
    57 
    58 ///////////////////////////////////////////////////////////////////////
    59 class ExportXMLBase:public ExportBase
    60 {
    61 };
    62 
    63 ///////////////////////////////////////////////////////////////////////
    64 class ExportKDEBookmarks:public ExportXMLBase
    65 {
    66 public:
    67 	virtual void doExport();
    68 };	
    69 
    70 ///////////////////////////////////////////////////////////////////////
    71 class ExportFirefoxBookmarks:public ExportXMLBase
    72 {
    73 public:
    74 	virtual void doExport();
    75 };	
    76 
    77 ///////////////////////////////////////////////////////////////////////
    78 class ExportTaskjuggler:public ExportXMLBase
    79 {
    80 public:
    81 	virtual void doExport();
    82 };	
    83 
    84 ///////////////////////////////////////////////////////////////////////
    85 class ExportLaTeX:public ExportBase
    86 {
    87 public:
    88 	virtual void doExport();
    89 };	
    90 
    91 ///////////////////////////////////////////////////////////////////////
    92 class ExportOO:public ExportBase
    93 {
    94 public:
    95 	ExportOO();
    96 	~ExportOO();
    97 	void exportPresentation();
    98 	bool setConfigFile (const QString &);
    99 private:
   100 	QString buildList (BranchObj*);
   101 	bool useSections;
   102 	QString configFile;
   103 	QString configDir;
   104 	QString templateDir;
   105 	QString content;
   106 	QString contentTemplate;
   107 	QString contentTemplateFile;
   108 	QString contentFile;
   109 	QString pageTemplate;
   110 	QString pageTemplateFile;
   111 	QString sectionTemplate;
   112 	QString sectionTemplateFile;
   113 };
   114 #endif