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

hk_interpreter Class Reference

basic class for script handling More...

#include <hk_interpreter.h>

Inheritance diagram for hk_interpreter:

hk_class hk_no_interpreter hk_pythoninterpreter List of all members.

Public Types

enum  enum_action {
  a_before_row_change, a_after_row_change, a_click, a_doubleclick,
  a_on_open, a_on_close, a_on_getfocus, a_on_loosefocus,
  a_on_key, a_before_update, a_after_update, a_before_delete,
  a_after_delete, a_before_insert, a_after_insert, a_on_print_data,
  a_on_print_new_page, a_on_select, a_on_valuechanged
}

Public Member Functions

 hk_interpreter (hk_presentation *p)
virtual ~hk_interpreter ()
virtual void init ()
virtual bool on_click (hk_visible *)=0
virtual bool on_doubleclick (hk_visible *)=0
virtual bool before_row_change (hk_dsvisible *)=0
virtual bool after_row_change (hk_dsvisible *)=0
virtual bool before_update (hk_dsvisible *)=0
virtual bool after_update (hk_dsvisible *)=0
virtual bool before_delete (hk_dsvisible *)=0
virtual bool after_delete (hk_dsvisible *)=0
virtual bool before_insert (hk_dsvisible *)=0
virtual bool after_insert (hk_dsvisible *)=0
virtual bool on_close (hk_visible *)=0
virtual bool on_open (hk_visible *)=0
virtual bool on_getfocus (hk_visible *)=0
virtual bool on_loosefocus (hk_visible *)=0
virtual bool on_key (hk_visible *)=0
virtual bool on_valuechanged (hk_dsdatavisible *)=0
virtual bool on_print_data (hk_reportdata *)=0
virtual bool on_print_new_page (hk_report *)=0
virtual bool on_select (hk_dscombobox *)=0
virtual bool on_select (hk_dsgridcolumn *)=0
bool scripterror (void)
hk_string errormessage (void)
int error_rownumber (void)
virtual hk_string interpretername (void) const

Protected Attributes

hk_presentationp_presentation
bool p_error_occured
hk_string p_errormessage
int p_error_rownumber

Detailed Description

basic class for script handling

hk_interpreter is the basic class for script handling

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


Member Enumeration Documentation

enum hk_interpreter::enum_action
 

Enumeration values:
a_before_row_change 
a_after_row_change 
a_click 
a_doubleclick 
a_on_open 
a_on_close 
a_on_getfocus 
a_on_loosefocus 
a_on_key 
a_before_update 
a_after_update 
a_before_delete 
a_after_delete 
a_before_insert 
a_after_insert 
a_on_print_data 
a_on_print_new_page 
a_on_select 
a_on_valuechanged 


Constructor & Destructor Documentation

hk_interpreter::hk_interpreter hk_presentation p  ) 
 

virtual hk_interpreter::~hk_interpreter  )  [inline, virtual]
 


Member Function Documentation

virtual bool hk_interpreter::after_delete hk_dsvisible  )  [pure virtual]
 

executes the after_delete action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::after_insert hk_dsvisible  )  [pure virtual]
 

executes the after_insert action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::after_row_change hk_dsvisible  )  [pure virtual]
 

executes the after_row_change action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::after_update hk_dsvisible  )  [pure virtual]
 

executes the after_update action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::before_delete hk_dsvisible  )  [pure virtual]
 

executes the before_delete action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::before_insert hk_dsvisible  )  [pure virtual]
 

executes the before_insert action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::before_row_change hk_dsvisible  )  [pure virtual]
 

executes the before_row_change action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::before_update hk_dsvisible  )  [pure virtual]
 

executes the before_update action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

int hk_interpreter::error_rownumber void   )  [inline]
 

Returns:
the row number of the script in which the error occured

hk_string hk_interpreter::errormessage void   )  [inline]
 

Returns:
the script language specific errormessage

virtual void hk_interpreter::init  )  [inline, virtual]
 

Reimplemented in hk_pythoninterpreter.

virtual hk_string hk_interpreter::interpretername void   )  const [inline, virtual]
 

Returns:
the name of the scripting language

Reimplemented in hk_pythoninterpreter.

virtual bool hk_interpreter::on_click hk_visible  )  [pure virtual]
 

executes the on_click action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_close hk_visible  )  [pure virtual]
 

executes the on_close action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_doubleclick hk_visible  )  [pure virtual]
 

executes the on_doubleclick action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_getfocus hk_visible  )  [pure virtual]
 

executes the on_getfocus action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_key hk_visible  )  [pure virtual]
 

executes the on_key action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_loosefocus hk_visible  )  [pure virtual]
 

executes the on_loosefocus action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_open hk_visible  )  [pure virtual]
 

executes the on_open action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_print_data hk_reportdata  )  [pure virtual]
 

executes the on_print_data action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_print_new_page hk_report  )  [pure virtual]
 

executes the on_print_new_page action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_select hk_dsgridcolumn  )  [pure virtual]
 

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_select hk_dscombobox *   )  [pure virtual]
 

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

virtual bool hk_interpreter::on_valuechanged hk_dsdatavisible  )  [pure virtual]
 

executes the on_valuechanged action

Implemented in hk_no_interpreter, and hk_pythoninterpreter.

bool hk_interpreter::scripterror void   )  [inline]
 

Returns:
true if the last executed script failed due to an error


Member Data Documentation

bool hk_interpreter::p_error_occured [protected]
 

int hk_interpreter::p_error_rownumber [protected]
 

hk_string hk_interpreter::p_errormessage [protected]
 

hk_presentation* hk_interpreter::p_presentation [protected]
 


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