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

hk_presentation Class Reference

base class for multidatasource based classes like forms and reports More...

#include <hk_presentation.h>

Inheritance diagram for hk_presentation:

hk_form hk_report hk_kdesimpleform hk_kdesimplereport List of all members.

Public Types

enum  enum_presentationtype {
  general, form, report, qbe,
  referentialintegrity
}
enum  enum_bulkoperation { bulkfont, bulkforeground, bulkbackground }
enum  enum_sizetype { relative, absolute }

Public Member Functions

 hk_presentation (void)
virtual ~hk_presentation (void)
void set_database (hk_database *db)
hk_databasedatabase (void) const
enum_presentationtype presentationtype (void) const
void set_name (const hk_string &n)
hk_string name (void) const
virtual bool set_mode (enum_mode s)
list< hk_datasource * > * datasources (void) const
long new_datasource (const hk_string &name, datasourcetype dt=dt_table)
hk_datasourceget_datasource (long nr)
hk_datasourceget_datasource (const hk_string &description)
hk_datasourceget_datasource_by_shortname (const hk_string &description)
hk_string unique_datasourcename (long nr)
hk_string unique_shortdatasourcename (long nr)
virtual void savedata (ostream &s)
virtual void loaddata (const hk_string &definition)
void clear_datasourcelist (void)
void set_designsize (unsigned int width, unsigned int height, bool registerchange=true)
virtual void set_presentationsize (unsigned int, unsigned int)
unsigned int designwidth (void)
unsigned int designheight (void)
unsigned int horizontal2relativ (unsigned int h)
unsigned int vertical2relativ (unsigned int v)
unsigned int relativ2horizontal (unsigned int r)
unsigned int relativ2vertical (unsigned int r)
virtual void register_object (hk_visible *)
void set_automatic_enable_datasources (bool)
bool automatic_enable_datasources (void)
virtual void bulk_operation (enum_bulkoperation bulkoperation)
void set_sizetype (enum_sizetype type, bool registerchange=true)
enum_sizetype sizetype (void)
hk_interpreterinterpreter (void)
virtual void script_error (hk_visible *, hk_interpreter::enum_action)
void set_interpretername (const hk_string &, bool registerchange=true)
hk_string interpretername (void) const
void enable_datasources (bool enable, hk_datasource::enum_accessmode mode=hk_datasource::standard)
virtual bool is_subpresentation (void)
virtual bool while_loading (void)

Static Public Member Functions

static void set_defaultsizetype (enum_sizetype type)
static enum_sizetype defaultsizetype (void)
static void set_snap2gridx (int)
static int snap2gridx (void)
static void set_snap2gridy (int)
static int snap2gridy (void)

Protected Member Functions

void remove_datasource (long nr, bool registerchange=true)
virtual void widget_specific_presentationresize (void)
virtual void widget_specific_fieldresize (hk_visible *)
void database_delete (void)
virtual void database_has_vanished (void)
void before_source_vanishes (void)
bool ask_name (void)
virtual void raise_widget (hk_visible *)
virtual void lower_widget (hk_visible *)
virtual void sizetype_changed (void)

Protected Attributes

enum_presentationtype p_presentationtype
unsigned int p_actualwidth
unsigned int p_actualheight
bool p_while_errorhandling

Friends

class hk_datasource
class hk_database
class hk_dsvisible
class hk_visible

Detailed Description

base class for multidatasource based classes like forms and reports

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


Member Enumeration Documentation

enum hk_presentation::enum_bulkoperation
 

Enumeration values:
bulkfont 
bulkforeground 
bulkbackground 

enum hk_presentation::enum_presentationtype
 

Enumeration values:
general 
form 
report 
qbe 
referentialintegrity 

enum hk_presentation::enum_sizetype
 

Enumeration values:
relative 
absolute 


Constructor & Destructor Documentation

hk_presentation::hk_presentation void   ) 
 

virtual hk_presentation::~hk_presentation void   )  [virtual]
 


Member Function Documentation

bool hk_presentation::ask_name void   )  [protected]
 

bool hk_presentation::automatic_enable_datasources void   ) 
 

void hk_presentation::before_source_vanishes void   )  [protected]
 

Reimplemented in hk_kdesimpleform, and hk_kdesimplereport.

virtual void hk_presentation::bulk_operation enum_bulkoperation  bulkoperation  )  [virtual]
 

Reimplemented in hk_form, and hk_report.

void hk_presentation::clear_datasourcelist void   ) 
 

resets the internal datasourcelist and deletes all datasourceobjects except of "nodelete"

hk_database* hk_presentation::database void   )  const
 

void hk_presentation::database_delete void   )  [protected]
 

Reimplemented in hk_report.

virtual void hk_presentation::database_has_vanished void   )  [protected, virtual]
 

Reimplemented in hk_kdesimpleform, and hk_kdesimplereport.

list<hk_datasource*>* hk_presentation::datasources void   )  const
 

a list of all existing datasources in this presentation

static enum_sizetype hk_presentation::defaultsizetype void   )  [static]
 

unsigned int hk_presentation::designheight void   ) 
 

Reimplemented in hk_report.

unsigned int hk_presentation::designwidth void   ) 
 

Reimplemented in hk_report.

void hk_presentation::enable_datasources bool  enable,
hk_datasource::enum_accessmode  mode = hk_datasource::standard
 

hk_datasource* hk_presentation::get_datasource const hk_string description  ) 
 

hk_datasource* hk_presentation::get_datasource long  nr  ) 
 

returns the datasource with the unique identification number nr

hk_datasource* hk_presentation::get_datasource_by_shortname const hk_string description  ) 
 

unsigned int hk_presentation::horizontal2relativ unsigned int  h  ) 
 

Reimplemented in hk_report.

hk_interpreter* hk_presentation::interpreter void   ) 
 

hk_string hk_presentation::interpretername void   )  const
 

virtual bool hk_presentation::is_subpresentation void   )  [virtual]
 

Reimplemented in hk_form, and hk_report.

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

Reimplemented in hk_form, and hk_report.

virtual void hk_presentation::lower_widget hk_visible  )  [inline, protected, virtual]
 

Reimplemented in hk_form.

hk_string hk_presentation::name void   )  const
 

long hk_presentation::new_datasource const hk_string name,
datasourcetype  dt = dt_table
 

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.

enum_presentationtype hk_presentation::presentationtype void   )  const [inline]
 

virtual void hk_presentation::raise_widget hk_visible  )  [inline, protected, virtual]
 

Reimplemented in hk_form.

virtual void hk_presentation::register_object hk_visible  )  [virtual]
 

unsigned int hk_presentation::relativ2horizontal unsigned int  r  ) 
 

Reimplemented in hk_report.

unsigned int hk_presentation::relativ2vertical unsigned int  r  ) 
 

Reimplemented in hk_report.

void hk_presentation::remove_datasource long  nr,
bool  registerchange = true
[protected]
 

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

Reimplemented in hk_form, and hk_report.

virtual void hk_presentation::script_error hk_visible ,
hk_interpreter::enum_action 
[inline, virtual]
 

Reimplemented in hk_kdesimpleform, and hk_kdesimplereport.

void hk_presentation::set_automatic_enable_datasources bool   ) 
 

if true (default) all datasources will be automatically enabled when mode changes to viewmode else you have to enable the datasources manually

void hk_presentation::set_database hk_database db  ) 
 

set the database which is base of this presentation

static void hk_presentation::set_defaultsizetype enum_sizetype  type  )  [static]
 

void hk_presentation::set_designsize unsigned int  width,
unsigned int  height,
bool  registerchange = true
 

sets the logic size of the form.

Reimplemented in hk_form.

void hk_presentation::set_interpretername const hk_string ,
bool  registerchange = true
 

virtual bool hk_presentation::set_mode enum_mode  s  )  [virtual]
 

Reimplemented in hk_form, hk_report, hk_kdesimpleform, and hk_kdesimplereport.

void hk_presentation::set_name const hk_string n  ) 
 

name of the presentation under which it will be stored

virtual void hk_presentation::set_presentationsize unsigned  int,
unsigned  int
[virtual]
 

void hk_presentation::set_sizetype enum_sizetype  type,
bool  registerchange = true
 

static void hk_presentation::set_snap2gridx int   )  [static]
 

static void hk_presentation::set_snap2gridy int   )  [static]
 

enum_sizetype hk_presentation::sizetype void   ) 
 

virtual void hk_presentation::sizetype_changed void   )  [protected, virtual]
 

Reimplemented in hk_form, and hk_report.

static int hk_presentation::snap2gridx void   )  [static]
 

static int hk_presentation::snap2gridy void   )  [static]
 

hk_string hk_presentation::unique_datasourcename long  nr  ) 
 

returns a unique name for a datasource looks like : nameofdatasource (uniquenumber) [dependingondatasource] | filter

hk_string hk_presentation::unique_shortdatasourcename long  nr  ) 
 

unsigned int hk_presentation::vertical2relativ unsigned int  v  ) 
 

Reimplemented in hk_report.

virtual bool hk_presentation::while_loading void   )  [inline, virtual]
 

Reimplemented in hk_form, and hk_report.

virtual void hk_presentation::widget_specific_fieldresize hk_visible  )  [inline, protected, virtual]
 

Reimplemented in hk_form, hk_kdesimpleform, and hk_kdesimplereport.

virtual void hk_presentation::widget_specific_presentationresize void   )  [inline, protected, virtual]
 

Reimplemented in hk_kdesimpleform, and hk_kdesimplereport.


Friends And Related Function Documentation

friend class hk_database [friend]
 

friend class hk_datasource [friend]
 

friend class hk_dsvisible [friend]
 

Reimplemented in hk_form.

friend class hk_visible [friend]
 

Reimplemented in hk_form.


Member Data Documentation

unsigned int hk_presentation::p_actualheight [protected]
 

unsigned int hk_presentation::p_actualwidth [protected]
 

enum_presentationtype hk_presentation::p_presentationtype [protected]
 

bool hk_presentation::p_while_errorhandling [protected]
 


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