Databasehandlingdialogclasses  0.5.3
hk_kdereport.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_KDEREPORT_H
13 #define HK_KDEREPORT_H
14 #include "hk_class.h"
15 #include <qwidget.h>
16 #include "hk_presentation.h"
17 #include <kparts/dockmainwindow.h>
18 #include "hk_kdereportpartwidget.h"
19 #include <kparts/dockmainwindow.h>
20 #include <kparts/partmanager.h>
21 
22 class QButtonGroup;
23 class QLabel;
24 class hk_kdesimplereport;
25 class hk_database;
26 class hk_kdetoolbar;
27 class QToolButton;
28 class QVBoxLayout;
29 class QHBoxLayout;
30 class KLibFactory;
31 class KRadioAction;
32 class QWidgetStack;
33 
45 class hk_kdereport:public KParts::DockMainWindow, public hk_class
46 {
47 
48  Q_OBJECT
49 
50  public:
51  hk_kdereport( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
52  virtual ~hk_kdereport();
53  bool set_presentationdatasource(long n,bool r=true);
54  long presentationdatasource(void);
55  void set_database(hk_database*);
56  hk_database* database(void);
57  void set_nodesignmode(bool);
58  void set_mode(hk_presentation::enum_mode s);
59  hk_kdesimplereport* simplereport(void);
60  bool load_report(const hk_string& name="");
61  signals:
62  void signal_closed(QWidget*);
63  void signal_setcaption(const QString&);
64 
65  public slots:
66  void set_designmode(void);
67  void set_viewmode(void);
68  void save_report(void);
69  void saveas_report(void);
70  void close_report(void);
71  void slot_showtoolbar(void);
72  protected:
73  void closeEvent ( QCloseEvent* e);
74 
75  protected slots:
76  void part_removed(void);
77 
78 
79  private:
80 
81  KAction* p_closeaction;
82  KParts::ReadWritePart* p_part;
83  KParts::PartManager* p_partmanager;
84  hk_kdereportpartwidget* p_report;
85  void set_caption(void);
86 
87 };
88 #endif
KDE high level widget to display and design reports.
Definition: hk_kdereportpartwidget.h:45
Definition: hk_kdetoolbar.h:26
KDE Widget to design and execute reports.
Definition: hk_kdesimplereport.h:42
KDE high level widget to display and design reports.
Definition: hk_kdereport.h:45