Databaseconnectionclasses  0.5.3
hk_reportsectionpair.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_REPORTSECTIONPAIR
12 #define HK_REPORTSECTIONPAIR
13 #include "hk_class.h"
14 #include "hk_string.h"
15 #include "hk_presentation.h"
16 using namespace std;
17 
18 class hk_reportsection;
19 class hk_report;
27 {
28  friend class hk_reportsection;
29  friend class hk_report;
30  public:
31 virtual ~hk_reportsectionpair(void);
35  hk_reportsection* headersection(void);
39  hk_reportsection* footersection(void);
45  void set_sections(bool header=true,bool footer=true);
49  void init_sections(void);
53  void set_columnname(const hk_string& n);
54  void set_ascending_order(bool asc, bool registerchange=true);
55  bool ascending_order(void) const;
56  hk_string columnname(void) const;
57  void reset(void);
61  void clear_countingfields(void);
62  virtual void savedata(ostream& s,bool userdefined=false);
63  virtual void loaddata(xmlNodePtr definition,bool userdefined=false);
64  virtual bool set_presentationdatasource(long n, bool registerchange=true);
65  long presentationdatasource(void);
66  void neutralize_definition(bool registerchange);
67  void bulk_operation(hk_presentation::enum_bulkoperation bulkoperation);
68 
69  protected:
71 
72  void remove_section(hk_reportsection*);
73 
74  private:
75  hk_report* p_report;
76  hk_reportsection* p_header;
77  hk_reportsection* p_footer;
78  hk_string p_name;
79  long int p_presentationdatasource;
80  bool p_ascending;
81 
82 };
83 #endif
basic class for all other defined classes.
Definition: hk_class.h:52
contains a header and a footer section
Definition: hk_reportsectionpair.h:26
represents a section of the report.
Definition: hk_reportsection.h:92
virtual void savedata(ostream &s)
Definition: hk_report.cpp:1291
basic class to create reports
Definition: hk_report.h:52
virtual void loaddata(xmlNodePtr definition)
Definition: hk_report.cpp:1465