# class hk_interpreter

basic class for script handling. More...

Contains pure virtuals
Definition | `#include <hk_classes/hk_classes/hk_interpreter.h>`
Inherits | hk_class [public ]
Inherited by | hk_no_interpreter, hk_pythoninterpreter
List of all Methods

Annotated List
Files
Globals
Hierarchy
Index

#### Public Types

- enum enum_action { a_before_row_change, a_after_row_change, a_click, a_doubleclick, a_onopen, a_onclose, 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 }

#### Public Methods

- hk_interpreter (hk_presentation* p)
- virtual ~hk_interpreter ()
- virtual void init ()
- virtual bool on_click (hk_visible*)
- virtual bool on_doubleclick (hk_visible*)
- virtual bool before_row_change (hk_dsvisible*)
- virtual bool after_row_change (hk_dsvisible*)
- virtual bool before_update (hk_dsvisible*)
- virtual bool after_update (hk_dsvisible*)
- virtual bool before_delete (hk_dsvisible*)
- virtual bool after_delete (hk_dsvisible*)
- virtual bool before_insert (hk_dsvisible*)
- virtual bool after_insert (hk_dsvisible*)
- virtual bool on_close (hk_visible*)
- virtual bool on_open (hk_visible*)
- virtual bool on_print_data (hk_reportdata*)
- virtual bool on_print_new_page (hk_report*)
- bool scripterror (void)
- hk_string errormessage (void)
- int error_rownumber (void)
- virtual hk_string interpretername (void) const

#### Protected Members

- hk_presentation* p_presentation
- bool p_error_occured
- hk_string p_errormessage
- int p_error_rownumber

## Detailed Description

hk_interpreter is the basic class for script handling

hk_interpreter (hk_presentation* p)

### hk_interpreter

~hk_interpreter ()

### ~hk_interpreter

[virtual]

void init ()

### init

[virtual]

bool on_click (hk_visible*)

### on_click

[pure virtual]

executes the on_click action

bool on_doubleclick (hk_visible*)

### on_doubleclick

[pure virtual]

executes the on_doubleclick action

bool before_row_change (hk_dsvisible*)

### before_row_change

[pure virtual]

executes the before_row_change action

bool after_row_change (hk_dsvisible*)

### after_row_change

[pure virtual]

executes the after_row_change action

bool before_update (hk_dsvisible*)

### before_update

[pure virtual]

executes the before_update action

bool after_update (hk_dsvisible*)

### after_update

[pure virtual]

executes the after_update action

bool before_delete (hk_dsvisible*)

### before_delete

[pure virtual]

executes the before_delete action

bool after_delete (hk_dsvisible*)

### after_delete

[pure virtual]

executes the after_delete action

bool before_insert (hk_dsvisible*)

### before_insert

[pure virtual]

executes the before_insert action

bool after_insert (hk_dsvisible*)

### after_insert

[pure virtual]

executes the after_insert action

bool on_close (hk_visible*)

### on_close

[pure virtual]

executes the on_close action

bool on_open (hk_visible*)

### on_open

[pure virtual]

executes the on_open action

bool on_print_data (hk_reportdata*)

### on_print_data

[pure virtual]

executes the on_print_data action

bool on_print_new_page (hk_report*)

### on_print_new_page

[pure virtual]

executes the on_print_new_page action

bool scripterror (void)

### scripterror

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

hk_string errormessage (void)

### errormessage

Returns: the script language specific errormessage

int error_rownumber (void)

### error_rownumber

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

hk_string interpretername (void)

### interpretername

[const virtual]

Returns: the name of the scripting language

enum enum_action { a_before_row_change, a_after_row_change, a_click, a_doubleclick, a_onopen, a_onclose, 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 }

### enum_action

hk_presentation* p_presentation

### p_presentation

[protected]

bool p_error_occured

### p_error_occured

[protected]

hk_string p_errormessage

### p_errormessage

[protected]

int p_error_rownumber

### p_error_rownumber

[protected]

- Version: $Revision: 1.15 $
- Author: Horst Knorr (hk_classes@knoda.org)
- Generated: horst on horstnotebook on Tue Mar 30 19:06:43 2004, using kdoc 2.0a54.