Databaseconnectionclasses  0.5.3
hk_dsquery.h
1 // ****************************************************************************
2 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
3 // This file is part of the hk_classes 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 COPYING 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 #ifndef HK_QUERY
12 #define HK_QUERY
13 #include "hk_dsmodevisible.h"
14 class hk_qbe;
15 class hk_dsqueryprivate;
16 
18 {
19 public:
20 hk_dsquery(hk_presentation* presentation=NULL);
21 virtual ~hk_dsquery(void);
22 virtual hk_dsgrid *grid(void){return NULL;}
23 virtual hk_qbe* qbe(void) {return NULL;}
24 bool use_qbe(void) const;
25 virtual void set_use_qbe(bool use, bool registerchange=true );
26 
27 
28 bool save_query(const hk_string& s="",bool ask=true);
29 bool load_query(void);
30  virtual void savedata(ostream& s);
31  virtual void loaddata(xmlNodePtr definition);
32 
33 protected:
34  virtual void widget_specific_before_load_query(void);
35  virtual void widget_specific_after_load_query(void);
36  virtual void widget_specific_before_save_query(void);
37  virtual void widget_specific_after_save_query(void);
38 private:
39  hk_dsqueryprivate* p_private;
40 };
41 #endif //HK_QUERY
base class for widgets which show multi column data in a grid.
Definition: hk_dsgrid.h:26
Definition: hk_dsquery.h:17
virtual void loaddata(xmlNodePtr definition)
Definition: hk_dsquery.cpp:188
Definition: hk_dsmodevisible.h:17
virtual void savedata(ostream &s)
Definition: hk_dsquery.cpp:142
Definition: hk_dsquery.cpp:25
base class for multidatasource based classes like forms and reports
Definition: hk_presentation.h:40
Definition: hk_qbe.h:18