# hk_classes Globals

Annotated List
Files
Globals
Hierarchy
Index

### hk_classes/hk_classes/hk_class.h

- typedef void messagewindowtype (const hk_string&)
- typedef bool yesno_dialogtype (const hk_string&, bool )
- typedef hk_string translatefunctiontype (const hk_string&)
- typedef void password_dialogtype (hk_connection*,struct_connectionfields*)
- typedef bool newpassword_dialogtype (hk_string&)
- typedef hk_string stringvalue_dialogtype (const hk_string&)
- typedef bool progress_dialogtype (long int,long int,const hk_string&)

### hk_classes/hk_classes/hk_colour.h

- ostream& operator<< (ostream&,hk_colour&)
- ostream& operator<< (ostream&,const hk_colour&)
- const hk_colour hk_aqua (0,255,255)
- const hk_colour hk_beige (0xF5,0xF5,0xDC)
- const hk_colour hk_black (0,0,0)
- const hk_colour hk_blue (0,0,255)
- const hk_colour hk_brown (0xA5,0x2A,0x2A)
- const hk_colour hk_fuchsia (255,0,255)
- const hk_colour hk_darkgrey (0xA9,0xA9,0xA9)
- const hk_colour hk_green (0,128,0)
- const hk_colour hk_grey (128,128,128)
- const hk_colour hk_lightgrey (0xD3,0xD3,0xD3)
- const hk_colour hk_lime (0,255,0)
- const hk_colour hk_maroon (128,0,0)
- const hk_colour hk_navy (0,0,128)
- const hk_colour hk_olive (128,128,0)
- const hk_colour hk_orange (0xFF,0xA5,0)
- const hk_colour hk_pink (0xFF,0xC0,0xCB)
- const hk_colour hk_purple (128,0,128)
- const hk_colour hk_red (255,0,0)
- const hk_colour hk_silver (0,0xc0,0xc0)
- const hk_colour hk_teal (0,128,128)
- const hk_colour hk_white (255,255,255)
- const hk_colour hk_yellow (255,255,0)

### hk_classes/hk_classes/hk_database.h

- typedef hk_form* newform_type (hk_database*,void*)
- typedef hk_report* newreport_type (hk_database*,void*)
- typedef hk_dstable* newtable_type (void*)
- typedef hk_dsquery* newquery_type (void*)

### hk_classes/hk_classes/hk_datetime.h

- hk_string transfer_date (const hk_string& date,const hk_string& originalformat, const hk_string& targetformat)
- hk_string transfer_time (const hk_string& time,const hk_string& originalformat, const hk_string& targetformat)
- hk_string transfer_datetime (const hk_string& datetime,const hk_string& originalformat, const hk_string& targetformat)
- ostream& operator<< (ostream&,const hk_datetime&)
- ostream& operator<< (ostream&, hk_datetime&)

### hk_classes/hk_classes/hk_drivermanager.h

- typedef hk_string requestdialogtype (void)

### hk_classes/hk_classes/hk_importcsv.h

- typedef class colstruct

### hk_classes/hk_classes/hk_interpreter.h

- hk_button* currentbutton (void)
- hk_dslineedit* currentlineedit (void)
- hk_dsmemo* currentmemo (void)
- hk_dsgrid* currentgrid (void)
- hk_dscombobox* currentcombobox (void)
- hk_dsboolean* currentboolean (void)
- hk_form* currentform (void)
- hk_report* currentreport (void)
- hk_reportdata* currentreportdata (void)
- hk_dsvisible* currentdsvisible (void)
- hk_visible* currentvisible (void)
- hk_button * cast_button (hk_visible*)
- hk_dslineedit * cast_dslineedit (hk_visible*)
- hk_dsmemo * cast_dsmemo (hk_visible*)
- hk_dsgrid * cast_dsgrid (hk_visible*)
- hk_dscombobox * cast_dscombobox (hk_visible*)
- hk_dsboolean * cast_dsboolean (hk_visible*)
- hk_dsvisible * cast_dsvisible (hk_visible*)
- hk_form * cast_form (hk_visible*)
- hk_report * cast_report (hk_visible*)
- hk_reportdata * cast_reportdata (hk_visible*)

### hk_classes/hk_classes/hk_reportsection.h

- typedef hk_string section_replacefunctiontype (hk_reportsection*,const hk_string& )
- typedef struct --

### hk_classes/hk_classes/hk_string.h

- typedef std::basic_string <char> hk_string
- hk_string smallstringconversion (const hk_string & what, const hk_string& from, const hk_string& to)
- hk_string l2u (const hk_string& what,const hk_string& locale="")
- hk_string u2l (const hk_string& what,const hk_string& locale="")
- hk_string string2upper (const hk_string& what)
- hk_string string2lower (const hk_string& what)
- hk_string format_number (double value,bool separator=true,int digits=2,const hk_string& locale="")
- hk_string format_number (const hk_string& value,bool is_locale, bool separator,int digits,const hk_string& locale)
- hk_string format_standard_number (double value,bool separator=false,int digits=8,const hk_string& standardlocale="C")
- hk_string format_standard_number (const hk_string& value,bool separator=false,int digits=8,const hk_string& standardlocale="C")
- double localestring2double (const hk_string& localenumberstring)
- long int localestring2int (const hk_string& localenumberstring)
- long unsigned int localestring2uint (const hk_string& localenumberstring)
- double standardstring2double (const hk_string& standardnumberstring,const hk_string& standardlocale="C")
- hk_string longint2string (long int value)
- hk_string ulongint2string (unsigned long int value)
- hk_string replace_all (const hk_string& what,const hk_string& where,const hk_string& with)
- hk_string trimleft (const hk_string&)
- hk_string trimright (const hk_string&)
- hk_string trim (const hk_string&)
- hk_string int2hex (int n)

### hk_kdeclasses/hk_kdeclasses/hk_kdemessages.h

- void hk_kdewarning (const hk_string& w)
- bool hk_kdeyesno_dialog (const hk_string& w,bool default_return)
- void hk_kdepassworddlg (hk_connection*,struct_connectionfields* c)
- hk_string hk_kdetranslate (const hk_string& t)
- hk_string hk_kdedriverselectdialog (void)
- hk_string hk_kdestringvaluedialog (const hk_string&)
- void set_kdestandarddialogs (void)

## Global member Documentation

typedef void messagewindowtype (const hk_string&)

### messagewindowtype

`#include <hk_classes/hk_classes/hk_class.h>`

typedef bool yesno_dialogtype (const hk_string&, bool )

### yesno_dialogtype

`#include <hk_classes/hk_classes/hk_class.h>`

typedef hk_string translatefunctiontype (const hk_string&)

### translatefunctiontype

`#include <hk_classes/hk_classes/hk_class.h>`

typedef void password_dialogtype (hk_connection*,struct_connectionfields*)

### password_dialogtype

`#include <hk_classes/hk_classes/hk_class.h>`

typedef bool newpassword_dialogtype (hk_string&)

### newpassword_dialogtype

`#include <hk_classes/hk_classes/hk_class.h>`

typedef hk_string stringvalue_dialogtype (const hk_string&)

### stringvalue_dialogtype

`#include <hk_classes/hk_classes/hk_class.h>`

typedef bool progress_dialogtype (long int,long int,const hk_string&)

### progress_dialogtype

`#include <hk_classes/hk_classes/hk_class.h>`

ostream& operator<< (ostream&,hk_colour&)

### operator<<

`#include <hk_classes/hk_classes/hk_colour.h>`

ostream& operator<< (ostream&,const hk_colour&)

### operator<<

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_aqua (0,255,255)

### hk_aqua

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_beige (0xF5,0xF5,0xDC)

### hk_beige

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_black (0,0,0)

### hk_black

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_blue (0,0,255)

### hk_blue

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_brown (0xA5,0x2A,0x2A)

### hk_brown

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_fuchsia (255,0,255)

### hk_fuchsia

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_darkgrey (0xA9,0xA9,0xA9)

### hk_darkgrey

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_green (0,128,0)

### hk_green

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_grey (128,128,128)

### hk_grey

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_lightgrey (0xD3,0xD3,0xD3)

### hk_lightgrey

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_lime (0,255,0)

### hk_lime

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_maroon (128,0,0)

### hk_maroon

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_navy (0,0,128)

### hk_navy

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_olive (128,128,0)

### hk_olive

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_orange (0xFF,0xA5,0)

### hk_orange

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_pink (0xFF,0xC0,0xCB)

### hk_pink

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_purple (128,0,128)

### hk_purple

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_red (255,0,0)

### hk_red

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_silver (0,0xc0,0xc0)

### hk_silver

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_teal (0,128,128)

### hk_teal

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_white (255,255,255)

### hk_white

`#include <hk_classes/hk_classes/hk_colour.h>`

const hk_colour hk_yellow (255,255,0)

### hk_yellow

`#include <hk_classes/hk_classes/hk_colour.h>`

typedef hk_form* newform_type (hk_database*,void*)

### newform_type

`#include <hk_classes/hk_classes/hk_database.h>`

typedef hk_report* newreport_type (hk_database*,void*)

### newreport_type

`#include <hk_classes/hk_classes/hk_database.h>`

typedef hk_dstable* newtable_type (void*)

### newtable_type

`#include <hk_classes/hk_classes/hk_database.h>`

typedef hk_dsquery* newquery_type (void*)

### newquery_type

`#include <hk_classes/hk_classes/hk_database.h>`

hk_string transfer_date (const hk_string& date,const hk_string& originalformat, const hk_string& targetformat)

### transfer_date

`#include <hk_classes/hk_classes/hk_datetime.h>`

convinience function that returns the date formated as defined in targetformat, where date originally was formatted as defined in originalformat

hk_string transfer_time (const hk_string& time,const hk_string& originalformat, const hk_string& targetformat)

### transfer_time

`#include <hk_classes/hk_classes/hk_datetime.h>`

convinience function that returns the time formated as defined in targetformat, where time originally was formatted as defined in originalformat

hk_string transfer_datetime (const hk_string& datetime,const hk_string& originalformat, const hk_string& targetformat)

### transfer_datetime

`#include <hk_classes/hk_classes/hk_datetime.h>`

convinience function that returns the datetime formated as defined in targetformat, where datetime originally was formatted as defined in originalformat

ostream& operator<< (ostream&,const hk_datetime&)

### operator<<

`#include <hk_classes/hk_classes/hk_datetime.h>`

ostream& operator<< (ostream&, hk_datetime&)

### operator<<

`#include <hk_classes/hk_classes/hk_datetime.h>`

typedef hk_string requestdialogtype (void)

### requestdialogtype

`#include <hk_classes/hk_classes/hk_drivermanager.h>`

typedef class colstruct

### colstruct

`#include <hk_classes/hk_classes/hk_importcsv.h>`

hk_button* currentbutton (void)

### currentbutton

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dslineedit* currentlineedit (void)

### currentlineedit

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dsmemo* currentmemo (void)

### currentmemo

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dsgrid* currentgrid (void)

### currentgrid

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dscombobox* currentcombobox (void)

### currentcombobox

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dsboolean* currentboolean (void)

### currentboolean

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_form* currentform (void)

### currentform

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_report* currentreport (void)

### currentreport

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_reportdata* currentreportdata (void)

### currentreportdata

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dsvisible* currentdsvisible (void)

### currentdsvisible

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_visible* currentvisible (void)

### currentvisible

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_button * cast_button (hk_visible*)

### cast_button

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dslineedit * cast_dslineedit (hk_visible*)

### cast_dslineedit

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dsmemo * cast_dsmemo (hk_visible*)

### cast_dsmemo

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dsgrid * cast_dsgrid (hk_visible*)

### cast_dsgrid

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dscombobox * cast_dscombobox (hk_visible*)

### cast_dscombobox

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dsboolean * cast_dsboolean (hk_visible*)

### cast_dsboolean

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_dsvisible * cast_dsvisible (hk_visible*)

### cast_dsvisible

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_form * cast_form (hk_visible*)

### cast_form

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_report * cast_report (hk_visible*)

### cast_report

`#include <hk_classes/hk_classes/hk_interpreter.h>`

hk_reportdata * cast_reportdata (hk_visible*)

### cast_reportdata

`#include <hk_classes/hk_classes/hk_interpreter.h>`

typedef hk_string section_replacefunctiontype (hk_reportsection*,const hk_string& )

### section_replacefunctiontype

`#include <hk_classes/hk_classes/hk_reportsection.h>`

You can define your own functions for sections. See hk_reportsection::set_replacefunction for details. the function will be called after replacing the built-in variables and will give the "this"-Pointer and the text that would be printed as parameters. Your function has to return a hk_string that will be printed instead.

typedef struct --

### --

`#include <hk_classes/hk_classes/hk_reportsection.h>`

typedef std::basic_string <char> hk_string

### hk_string

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string smallstringconversion (const hk_string & what, const hk_string& from, const hk_string& to)

### smallstringconversion

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string l2u (const hk_string& what,const hk_string& locale="")

### l2u

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string u2l (const hk_string& what,const hk_string& locale="")

### u2l

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string string2upper (const hk_string& what)

### string2upper

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string string2lower (const hk_string& what)

### string2lower

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string format_number (double value,bool separator=true,int digits=2,const hk_string& locale="")

### format_number

`#include <hk_classes/hk_classes/hk_string.h>`

formats a double value into a string. It uses your set locale.

Parameters:

separator | if true your local thousands separator is used i.e the number 12345.6789 will be displayed in Germany as 12.345,6789 and in USA as 12,345.6789
digits | the amount of digits of the number part <0. E.g. if digits is 2 the above number would be 12345.68

hk_string format_number (const hk_string& value,bool is_locale, bool separator,int digits,const hk_string& locale)

### format_number

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string format_standard_number (double value,bool separator=false,int digits=8,const hk_string& standardlocale="C")

### format_standard_number

`#include <hk_classes/hk_classes/hk_string.h>`

formats a double value into a string ignoring your locale.

Parameters:

separator | if true your local thousands separator is used i.e the number 12345.6789 12,345.6789
digits | the amount of digits of the number part <0. E.g. if digits is 2 the above number would be 12345.68

hk_string format_standard_number (const hk_string& value,bool separator=false,int digits=8,const hk_string& standardlocale="C")

### format_standard_number

`#include <hk_classes/hk_classes/hk_string.h>`

double localestring2double (const hk_string& localenumberstring)

### localestring2double

`#include <hk_classes/hk_classes/hk_string.h>`

converts a number in a string (which uses your locale) in a double value

long int localestring2int (const hk_string& localenumberstring)

### localestring2int

`#include <hk_classes/hk_classes/hk_string.h>`

long unsigned int localestring2uint (const hk_string& localenumberstring)

### localestring2uint

`#include <hk_classes/hk_classes/hk_string.h>`

double standardstring2double (const hk_string& standardnumberstring,const hk_string& standardlocale="C")

### standardstring2double

`#include <hk_classes/hk_classes/hk_string.h>`

converts a number in a string (which ignores your locale) in a double value

hk_string longint2string (long int value)

### longint2string

`#include <hk_classes/hk_classes/hk_string.h>`

converts a long int number to a non localized string

hk_string ulongint2string (unsigned long int value)

### ulongint2string

`#include <hk_classes/hk_classes/hk_string.h>`

converts a unsigned long int number to a non localized string

hk_string replace_all (const hk_string& what,const hk_string& where,const hk_string& with)

### replace_all

`#include <hk_classes/hk_classes/hk_string.h>`

replaces all characters 'what' in 'where' with 'with'.

Parameters:

what | the search string to be replaced
where | the string which should be altered
with | the string replacement string

Returns: the new string

hk_string trimleft (const hk_string&)

### trimleft

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string trimright (const hk_string&)

### trimright

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string trim (const hk_string&)

### trim

`#include <hk_classes/hk_classes/hk_string.h>`

hk_string int2hex (int n)

### int2hex

`#include <hk_classes/hk_classes/hk_string.h>`

void hk_kdewarning (const hk_string& w)

### hk_kdewarning

`#include <hk_kdeclasses/hk_kdeclasses/hk_kdemessages.h>`

displays the text w.

bool hk_kdeyesno_dialog (const hk_string& w,bool default_return)

### hk_kdeyesno_dialog

`#include <hk_kdeclasses/hk_kdeclasses/hk_kdemessages.h>`

dialog with a "yes" and a "no" button.

void hk_kdepassworddlg (hk_connection*,struct_connectionfields* c)

### hk_kdepassworddlg

`#include <hk_kdeclasses/hk_kdeclasses/hk_kdemessages.h>`

dialog which asks for host,user,password and sqlserver if necessary

hk_string hk_kdetranslate (const hk_string& t)

### hk_kdetranslate

`#include <hk_kdeclasses/hk_kdeclasses/hk_kdemessages.h>`

hk_string hk_kdedriverselectdialog (void)

### hk_kdedriverselectdialog

`#include <hk_kdeclasses/hk_kdeclasses/hk_kdemessages.h>`

hk_string hk_kdestringvaluedialog (const hk_string&)

### hk_kdestringvaluedialog

`#include <hk_kdeclasses/hk_kdeclasses/hk_kdemessages.h>`

void set_kdestandarddialogs (void)

### set_kdestandarddialogs

`#include <hk_kdeclasses/hk_kdeclasses/hk_kdemessages.h>`

Generated by: horst on horstnotebook on Tue Mar 30 19:06:43 2004, using kdoc 2.0a54.