]> git.sven.stormbind.net Git - sven/vym.git/blob - exportoofiledialog.h
Import Upstream version 2.6.11
[sven/vym.git] / exportoofiledialog.h
1 #ifndef EXPORTOOFILEDIALOG
2 #define EXPORTOOFILEDIALOG
3
4 #include <QFileDialog>
5 #include <QStringList>
6
7 #include "settings.h"
8
9 /*! \brief Dialog to select output file and format for Open Office documents
10
11 This is an overloaded QFileDialog, which allows to select templates by setting a type.
12 */
13
14 class ExportOOFileDialog:public QFileDialog
15 {
16     Q_OBJECT
17 public:
18     ExportOOFileDialog();
19
20     ExportOOFileDialog (QWidget * parent , const  QString &caption=QString());
21     bool foundConfig();
22     QString selectedConfig();
23     void show();
24      
25 private slots:
26     void  newConfigPath (const QString&f);
27
28 private:
29     void init();
30     void addFilter(const QString &);
31     void scanExportConfigs(QDir );
32     QStringList configPaths;
33     QStringList filters;
34     QString lastFilter;
35     
36 };
37 #endif