class hk_presentation
|
base class for multidatasource based classes like forms and reports. More... |
|
|
Public Types
Public Methods
Public Static Methods
Protected Methods
Protected Members
hk_presentation is the base class for multidatasource based classes like forms and reports. A presentation can
be designed when mode is 'design' or the data will be presented when mode is 'view'.
In 'design' mode you can create new datasource by calling the function new_datasource. Each datasource get's
a unique number (see hk_datasource::presentationnumber) with which you can identifiy each datasource.
All used datasources will be automatically enabled when the presentation is in 'view'-mode.
hk_presentation (void)
| hk_presentation |
~hk_presentation (void)
| ~hk_presentation |
[virtual]
set the database which is base of this presentation
enum enum_presentationtype {general,form,report}
| enum_presentationtype |
enum_presentationtype presentationtype (void)
| presentationtype |
[const]
name of the presentation under which it will be stored
bool set_mode (enum_mode s)
| set_mode |
[virtual]
a list of all existing datasources in this presentation
long new_datasource (const hk_string& name,bool query=false)
| new_datasource |
loads an existing datasource "name". if query=false this datasource is a table else a query.
Returns: each presentationdatasource gets a unique number as an identifier.
returns the datasource with the unique identification number nr
hk_string unique_datasourcename (long nr)
| unique_datasourcename |
returns a unique name for a datasource
looks like : nameofdatasource (uniquenumber) [dependingondatasource] | filter
void savedata (ostream& s)
| savedata |
[virtual]
void loaddata (const hk_string& definition)
| loaddata |
[virtual]
void clear_datasourcelist (void)
| clear_datasourcelist |
resets the internal datasourcelist and deletes all datasourceobjects except of "nodelete"
bool has_changed (void)
| has_changed |
Returns: true if the presentation has changed (i.e. a datasource has been created or deleted )
void has_changed (bool registerchange)
| has_changed |
void set_designsize (unsigned int width, unsigned int height,bool registerchange=true)
| set_designsize |
sets the logic size of the form.
void set_presentationsize (unsigned int,unsigned int)
| set_presentationsize |
[virtual]
unsigned int designwidth (void)
| designwidth |
unsigned int designheight (void)
| designheight |
unsigned int horizontal2relativ (unsigned int h)
| horizontal2relativ |
unsigned int vertical2relativ (unsigned int v)
| vertical2relativ |
unsigned int relativ2horizontal (unsigned int r)
| relativ2horizontal |
unsigned int relativ2vertical (unsigned int r)
| relativ2vertical |
void register_object (hk_visible*)
| register_object |
[virtual]
void set_automatic_enable_datasources (bool)
| set_automatic_enable_datasources |
if true (default) all datasources will be automatically enabled when mode changes to viewmode
else you have to enable the datasources manually
bool automatic_enable_datasources (void)
| automatic_enable_datasources |
enum enum_bulkoperation {bulkfont,bulkforeground,bulkbackground}
| enum_bulkoperation |
void bulk_operation (enum_bulkoperation bulkoperation)
| bulk_operation |
[virtual]
enum enum_sizetype {relative,absolute}
| enum_sizetype |
void set_sizetype (enum_sizetype type,bool registerchange=true)
| set_sizetype |
enum_sizetype sizetype (void)
| sizetype |
void set_defaultsizetype (enum_sizetype type)
| set_defaultsizetype |
[static]
enum_sizetype defaultsizetype (void)
| defaultsizetype |
[static]
void set_snap2gridx (int)
| set_snap2gridx |
[static]
int snap2gridx (void)
| snap2gridx |
[static]
void set_snap2gridy (int)
| set_snap2gridy |
[static]
int snap2gridy (void)
| snap2gridy |
[static]
[virtual]
void set_interpretername (const hk_string&,bool registerchange=true)
| set_interpretername |
hk_string interpretername (void)
| interpretername |
[const]
void reset_has_changed (void)
| reset_has_changed |
void remove_datasource (long nr)
| remove_datasource |
[protected]
void set_has_changed (void)
| set_has_changed |
[protected]
void widget_specific_presentationresize (void)
| widget_specific_presentationresize |
[protected virtual]
void widget_specific_fieldresize (hk_visible* )
| widget_specific_fieldresize |
[protected virtual]
enum_presentationtype p_presentationtype
| p_presentationtype |
[protected]
void database_delete (void)
| database_delete |
[protected]
void database_has_vanished (void)
| database_has_vanished |
[protected virtual]
void before_source_vanishes (void)
| before_source_vanishes |
[protected]
bool ask_name (void)
| ask_name |
[protected]
[protected virtual]
[protected virtual]
unsigned int p_actualwidth
| p_actualwidth |
[protected]
unsigned int p_actualheight
| p_actualheight |
[protected]
[protected]
void sizetype_changed (void)
| sizetype_changed |
[protected virtual]
- Version: $Revision: 1.41 $
- Author: Horst Knorr (hk_classes@knoda.org)
- Generated: horst on horstnotebook on Tue Mar 30 19:06:43 2004, using kdoc 2.0a54.