hk_subform.h

00001 // ****************************************************************************
00002 // copyright (c) 2000-2005 Horst Knorr <hk_classes@knoda.org>
00003 // This file is part of the hk_classes library.
00004 // This file may be distributed and/or modified under the terms of the
00005 // GNU Library Public License version 2 as published by the Free Software
00006 // Foundation and appearing in the file COPYING included in the
00007 // packaging of this file.
00008 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
00009 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
00010 // ****************************************************************************
00011 #ifndef HK_SUBFORM
00012 #define HK_SUBFORM
00013 #include "hk_dsvisible.h"
00014 #include "hk_definitions.h"
00015 #include <list>
00016 class hk_form;
00017 class hk_subformprivate;
00018 
00019 
00020 
00021 class hk_subform: public hk_dsvisible
00022 {
00023 friend class hk_form;
00024 public:
00025 hk_subform(hk_presentation* parent);
00026 virtual ~hk_subform();
00027 void set_name(const hk_string&, bool registerchange=true);
00028 hk_string name(void) const;
00029 hk_form* subform();
00030 void        add_depending_fields( const hk_string& subfield,const hk_string& masterfield,bool registerchange=true);
00031 void        clear_depending_fields(bool registerchange=true);
00032 list<dependingclass>* depending_on_fields(void);
00033 virtual void savedata(ostream& s, bool savedatasource,bool saveall);
00034 virtual void savedata(ostream& s  );
00035 virtual void loaddata(const hk_string& definition);
00036 
00037 protected:
00038 void set_subform(hk_form*);
00039 virtual void    before_datasource_enables(void);
00040 virtual bool    presentationmode_changed(void);
00041 void internal_set_datasourcevalues(void);
00042 private:
00043 
00044 hk_subformprivate* p_private;
00045 };
00046 
00047 #endif

Generated on Tue May 2 09:15:35 2006 for Databaseconnectionclasses by  doxygen 1.4.6