Databasehandlingdialogclasses  0.5.3
hk_kdexmlexportdialog.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_kdeclasses library.
4 // This file may be distributed and/or modified under the terms of the
5 // GNU Library Public License version 2 as published by the Free Software
6 // Foundation and appearing in the file LGPL included in the
7 // packaging of this file.
8 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
9 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
10 // ****************************************************************************
11 
12 #ifndef HK_KDEXMLEXPORTDIALOG_H
13 #define HK_KDEXMLEXPORTDIALOG_H
14 #include "hk_kdexmlexportdialogbase.h"
15 #include <hk_reportutils.h>
16 class QProgressDialog;
17 
18 class hk_kdexmlexportdialog : public hk_kdexmlexportdialogbase ,public hk_reportxml
19 {
20  Q_OBJECT
21 
22  public:
23  hk_kdexmlexportdialog(const QString& table, QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
25  void set_usetablelist(void);
26  void set_usequerylist(void);
27  void set_useviewlist(void);
28  void set_database(hk_database* d);
29 
30  public slots:
31  void ok_clicked();
32  virtual void listtype_changed();
33  virtual void help_clicked();
34 
35  protected slots:
36  void buttons_enabled();
37  void filebutton_clicked();
38  void printing_cancelled(void);
39  virtual void excel_clicked();
40 
41  protected:
42  static bool set_progress(long int,long int,const hk_string&);
43 virtual void keyPressEvent ( QKeyEvent * e );
44 
45  private:
46  void set_datasourcelist(void);
47  QString p_file;
48  QString p_tablename;
49  datasourcetype p_datasourcetype;
50 static QProgressDialog* p_progressdialog;
51  static bool p_cancelimport;
52 
53 };
54 #endif // HK_KDEXMLEXPORTDIALOG_H
Definition: hk_kdexmlexportdialog.h:18
Definition: hk_kdexmlexportdialogbase.h:27