# Callback functions

These are functions called from editor on certain events. Return value (if any) is ignored. If the callback function does not exist, it is skipped

## onChangeRevision()

This function is called after active revision of document is changed

## onConsoleStart()

This function is called in commandline mode after calling all scripts specified in commanline parameters - unless some of the scripts exit the application prematurely, for example by calling exit().

## onEmptyFile()

This function is called after the editor is opened without specifying any document on commandline (without opening any file) or if the current file is closed.

## onLoad()

This function is called after document is opened

## onLoadUser()

This function is called after document is opened (after onLoad() is called)

## onLoadError()

This function is called after an error occured while trying to load a document

## onPageChange()

This function is called after changing to another page in the preview window.

## onPageDelete()

This function is called after pressing "delete" key while in preview window

## onPageRightClick()

This function is called after clicking with right mouse button in window with page preview.

## onTreeLeftClick()

This function is called after clicking with left mouse button on any item in tree window.

## onTreeRightClick()

This function is called after clicking with right mouse button on any item in tree window.

## onTreeMiddleClick()

This function is called after clicking with middle mouse button on any item in tree window.

## onTreeDoubleClick()

This function is called after doubleclicking with left mouse button on any item in tree window.

## onTreeSelectionChange()

This function is called after selection in tree changes.

## onValueChange(name)

This function is called after some of special tools change its value because of interaction. Parameter is name of the special tool. Color selection tool calls this after user select some color in it, edit tool calls this after user presses enter or leaves the control, number tool calls this after user presses enter or selects some of predefined numbers, select tool calls this after changing the selection.