#include <hk_subform.h>
Inheritance diagram for hk_subform:


Public Member Functions | |
| hk_subform (hk_presentation *parent) | |
| void | set_name (const hk_string &, bool registerchange=true) |
| hk_string | name (void) const |
| hk_form * | subform () |
| 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 (xmlNodePtr 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 |
| void hk_subform::set_name | ( | const hk_string & | , | |
| bool | registerchange = true | |||
| ) |
sets the name of the subform.
| hk_form * hk_subform::subform | ( | ) |
returns the form object that will internally be used to display the subform
| void hk_subform::add_depending_fields | ( | const hk_string & | subfield, | |
| const hk_string & | masterfield, | |||
| bool | registerchange = true | |||
| ) |
| 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. |
| void hk_subform::clear_depending_fields | ( | bool | registerchange = true |
) |
clears the list of fields set with add_depending_fields
| 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::savedata | ( | ostream & | s | ) | [virtual] |
stores the object's values to stream s. Especially used to store queries, forms and reports
Reimplemented from hk_dsvisible.
| void hk_subform::loaddata | ( | xmlNodePtr | definition | ) | [virtual] |
loads the object's values out of the definition string. Especially used to load queries, forms and reports
Reimplemented from hk_dsvisible.
1.5.0