Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members | Related Pages

hk_subform Class Reference

represents a subform in a form More...

#include <hk_subform.h>

Inheritance diagram for hk_subform:

hk_dsvisible hk_visible hk_class List of all members.

Public Member Functions

 hk_subform (hk_presentation *parent)
virtual ~hk_subform ()
void set_name (const hk_string &, bool registerchange=true)
hk_string name (void) const
hk_formsubform ()
void add_depending_fields (const hk_string &subfield, const hk_string &masterfield, bool registerchange=true)
void clear_depending_fields (bool registerchange=true)
void activate_subform (void)
list< dependingclass > * depending_on_fields (void)
virtual void savedata (ostream &s, bool savedatasource, bool saveall)
virtual void savedata (ostream &s)
virtual void loaddata (const hk_string &definition)

Protected Member Functions

void set_subform (hk_form *)
virtual void before_datasource_enables (void)
virtual bool presentationmode_changed (void)
void internal_set_datasourcevalues (void)

Friends

class hk_form

Detailed Description

represents a subform in a form

Version:
Revision
1.5
Author:
Horst Knorr (hk_classes@knoda.org)


Constructor & Destructor Documentation

hk_subform::hk_subform hk_presentation parent  ) 
 

virtual hk_subform::~hk_subform  )  [virtual]
 


Member Function Documentation

void hk_subform::activate_subform void   ) 
 

when the subform is set during runtime, the subform will be loaded and displayed when calling this function

void hk_subform::add_depending_fields const hk_string subfield,
const hk_string masterfield,
bool  registerchange = true
 

Parameters:
subfield fieldname of a column of the main subform-datasource which has to be connected to the main datasource of the master form.
masterfield columnname of the main masterform-datasource which value has to be equal with the value of subfield.
registerchange if this class is part of a hk_presentation object (i.e. a form or a report) and registerchange is true, then the changes will be stored when the hk_presentation object is closed.

virtual void hk_subform::before_datasource_enables void   )  [protected, virtual]
 

Reimplemented from hk_dsvisible.

void hk_subform::clear_depending_fields bool  registerchange = true  ) 
 

clears the list of fields set with add_depending_fields

list<dependingclass>* hk_subform::depending_on_fields void   ) 
 

void hk_subform::internal_set_datasourcevalues void   )  [protected]
 

virtual void hk_subform::loaddata const hk_string definition  )  [virtual]
 

loads the object's values out of the definition string. Especially used to load queries, forms and reports

Reimplemented from hk_dsvisible.

hk_string hk_subform::name void   )  const
 

virtual bool hk_subform::presentationmode_changed void   )  [protected, virtual]
 

Reimplemented from hk_dsvisible.

virtual void hk_subform::savedata ostream &  s  )  [virtual]
 

stores the object's values to stream s. Especially used to store queries, forms and reports

Reimplemented from hk_dsvisible.

virtual void hk_subform::savedata ostream &  s,
bool  savedatasource,
bool  saveall
[virtual]
 

Reimplemented from hk_dsvisible.

void hk_subform::set_name const hk_string ,
bool  registerchange = true
 

sets the name of the subform.

void hk_subform::set_subform hk_form  )  [protected]
 

hk_form* hk_subform::subform  ) 
 

returns the form object that will internally be used to display the subform


Friends And Related Function Documentation

friend class hk_form [friend]
 

Reimplemented from hk_visible.


The documentation for this class was generated from the following file:
Generated on Thu Mar 9 18:40:42 2006 for hk_classes by  doxygen 1.4.1