hk_interpreter Class Reference

basic class for script handling More...

#include <hk_interpreter.h>

Inheritance diagram for hk_interpreter:

Inheritance graph
[legend]
Collaboration diagram for hk_interpreter:

Collaboration graph
[legend]
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, a_on_loadmodule
}

Public Member Functions

 hk_interpreter (hk_presentation *p)
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
virtual bool load_module (const hk_string &)=0
void set_block_execution (bool)
bool block_execution (void) const
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.26
Author:
Horst Knorr (hk_classes@knoda.org)


Member Function Documentation

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_doubleclick ( hk_visible  )  [pure virtual]

executes the on_doubleclick 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::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::before_update ( hk_dsvisible  )  [pure virtual]

executes the before_update 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::after_delete ( hk_dsvisible  )  [pure virtual]

executes the after_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::after_insert ( hk_dsvisible  )  [pure virtual]

executes the after_insert 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_open ( hk_visible  )  [pure virtual]

executes the on_open 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_loosefocus ( hk_visible  )  [pure virtual]

executes the on_loosefocus 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_valuechanged ( hk_dsdatavisible  )  [pure virtual]

executes the on_valuechanged 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.

bool hk_interpreter::scripterror ( void   )  [inline]

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

hk_string hk_interpreter::errormessage ( void   )  [inline]

Returns:
the script language specific errormessage

int hk_interpreter::error_rownumber ( void   )  [inline]

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

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

Returns:
the name of the scripting language

Reimplemented in hk_pythoninterpreter.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 02:48:34 2006 for Databaseconnectionclasses by  doxygen 1.5.0