// This enumerates the types of callbacks emitted to a LibreOfficeKit // object's callback function or to a LibreOfficeKitDocument object's // callback function. No callback type will be emitted to both. It is a // bit unfortunate that the same enum contains both kinds of // callbacks.
// TODO: We should really add some indication at the documentation for // each enum value telling which type of callback it is.
/** *Selectionrectanglesofthesearchresultwhenfindallisperformed. * *Payloadformatexample,incaseoftwomatches: * *{ *"searchString":"...", *"highlightAll":true|false,// this is a result of 'search all' *"searchResultSelection":[ *{ *"part":"...", *"rectangles":"..." *}, *{ *"part":"...", *"rectangles":"..." *} *] *} * *-searchStringisthesearchquery *-searchResultSelectionisanarrayofpart-numberandrectanglelist *pairs,inLOK_CALLBACK_SET_PART/LOK_CALLBACK_TEXT_SELECTIONformat.
*/
LOK_CALLBACK_SEARCH_RESULT_SELECTION = 15,
/** *ResultoftheUNOcommandexecutionwhenbNotifyWhenFinishedwasset *to'true'duringthepostUnoCommand()call. * *Theresultreturnsasuccess/failurestate,andpotentially *additionaldata: * *{ *"commandName":"...",// the command for which this is the result *"success":true/false,// when the result is "don't know", this is missing *// TODO "result": "..." // UNO Any converted to JSON (not implemented yet) *}
*/
LOK_CALLBACK_UNO_COMMAND_RESULT = 16,
typedefenum
{ /// A key on the keyboard is pressed.
LOK_KEYEVENT_KEYINPUT, /// A key on the keyboard is released.
LOK_KEYEVENT_KEYUP
}
LibreOfficeKitKeyEventType;
/// Returns the string representation of a LibreOfficeKitCallbackType enumeration element. staticinlineconstchar* lokCallbackTypeToString(int nType)
{ switch (static_cast<LibreOfficeKitCallbackType>(nType))
{ case LOK_CALLBACK_INVALIDATE_TILES: return"LOK_CALLBACK_INVALIDATE_TILES"; case LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR: return"LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR"; case LOK_CALLBACK_TEXT_SELECTION: return"LOK_CALLBACK_TEXT_SELECTION"; case LOK_CALLBACK_TEXT_SELECTION_START: return"LOK_CALLBACK_TEXT_SELECTION_START"; case LOK_CALLBACK_TEXT_SELECTION_END: return"LOK_CALLBACK_TEXT_SELECTION_END"; case LOK_CALLBACK_CURSOR_VISIBLE: return"LOK_CALLBACK_CURSOR_VISIBLE"; case LOK_CALLBACK_VIEW_CURSOR_VISIBLE: return"LOK_CALLBACK_VIEW_CURSOR_VISIBLE"; case LOK_CALLBACK_GRAPHIC_SELECTION: return"LOK_CALLBACK_GRAPHIC_SELECTION"; case LOK_CALLBACK_GRAPHIC_VIEW_SELECTION: return"LOK_CALLBACK_GRAPHIC_VIEW_SELECTION"; case LOK_CALLBACK_CELL_CURSOR: return"LOK_CALLBACK_CELL_CURSOR"; case LOK_CALLBACK_HYPERLINK_CLICKED: return"LOK_CALLBACK_HYPERLINK_CLICKED"; case LOK_CALLBACK_MOUSE_POINTER: return"LOK_CALLBACK_MOUSE_POINTER"; case LOK_CALLBACK_STATE_CHANGED: return"LOK_CALLBACK_STATE_CHANGED"; case LOK_CALLBACK_STATUS_INDICATOR_START: return"LOK_CALLBACK_STATUS_INDICATOR_START"; case LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE: return"LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE"; case LOK_CALLBACK_STATUS_INDICATOR_FINISH: return"LOK_CALLBACK_STATUS_INDICATOR_FINISH"; case LOK_CALLBACK_SEARCH_NOT_FOUND: return"LOK_CALLBACK_SEARCH_NOT_FOUND"; case LOK_CALLBACK_DOCUMENT_SIZE_CHANGED: return"LOK_CALLBACK_DOCUMENT_SIZE_CHANGED"; case LOK_CALLBACK_SET_PART: return"LOK_CALLBACK_SET_PART"; case LOK_CALLBACK_SEARCH_RESULT_SELECTION: return"LOK_CALLBACK_SEARCH_RESULT_SELECTION"; case LOK_CALLBACK_DOCUMENT_PASSWORD: return"LOK_CALLBACK_DOCUMENT_PASSWORD"; case LOK_CALLBACK_DOCUMENT_PASSWORD_TO_MODIFY: return"LOK_CALLBACK_DOCUMENT_PASSWORD_TO_MODIFY"; case LOK_CALLBACK_CONTEXT_MENU: return"LOK_CALLBACK_CONTEXT_MENU"; case LOK_CALLBACK_INVALIDATE_VIEW_CURSOR: return"LOK_CALLBACK_INVALIDATE_VIEW_CURSOR"; case LOK_CALLBACK_TEXT_VIEW_SELECTION: return"LOK_CALLBACK_TEXT_VIEW_SELECTION"; case LOK_CALLBACK_CELL_VIEW_CURSOR: return"LOK_CALLBACK_CELL_VIEW_CURSOR"; case LOK_CALLBACK_CELL_ADDRESS: return"LOK_CALLBACK_CELL_ADDRESS"; case LOK_CALLBACK_CELL_FORMULA: return"LOK_CALLBACK_CELL_FORMULA"; case LOK_CALLBACK_UNO_COMMAND_RESULT: return"LOK_CALLBACK_UNO_COMMAND_RESULT"; case LOK_CALLBACK_ERROR: return"LOK_CALLBACK_ERROR"; case LOK_CALLBACK_VIEW_LOCK: return"LOK_CALLBACK_VIEW_LOCK"; case LOK_CALLBACK_REDLINE_TABLE_SIZE_CHANGED: return"LOK_CALLBACK_REDLINE_TABLE_SIZE_CHANGED"; case LOK_CALLBACK_REDLINE_TABLE_ENTRY_MODIFIED: return"LOK_CALLBACK_REDLINE_TABLE_ENTRY_MODIFIED"; case LOK_CALLBACK_INVALIDATE_HEADER: return"LOK_CALLBACK_INVALIDATE_HEADER"; case LOK_CALLBACK_COMMENT: return"LOK_CALLBACK_COMMENT"; case LOK_CALLBACK_RULER_UPDATE: return"LOK_CALLBACK_RULER_UPDATE"; case LOK_CALLBACK_VERTICAL_RULER_UPDATE: return"LOK_CALLBACK_VERTICAL_RULER_UPDATE"; case LOK_CALLBACK_WINDOW: return"LOK_CALLBACK_WINDOW"; case LOK_CALLBACK_VALIDITY_LIST_BUTTON: return"LOK_CALLBACK_VALIDITY_LIST_BUTTON"; case LOK_CALLBACK_VALIDITY_INPUT_HELP: return"LOK_CALLBACK_VALIDITY_INPUT_HELP"; case LOK_CALLBACK_CLIPBOARD_CHANGED: return"LOK_CALLBACK_CLIPBOARD_CHANGED"; case LOK_CALLBACK_CONTEXT_CHANGED: return"LOK_CALLBACK_CONTEXT_CHANGED"; case LOK_CALLBACK_SIGNATURE_STATUS: return"LOK_CALLBACK_SIGNATURE_STATUS"; case LOK_CALLBACK_PROFILE_FRAME: return"LOK_CALLBACK_PROFILE_FRAME"; case LOK_CALLBACK_CELL_SELECTION_AREA: return"LOK_CALLBACK_CELL_SELECTION_AREA"; case LOK_CALLBACK_CELL_AUTO_FILL_AREA: return"LOK_CALLBACK_CELL_AUTO_FILL_AREA"; case LOK_CALLBACK_TABLE_SELECTED: return"LOK_CALLBACK_TABLE_SELECTED"; case LOK_CALLBACK_REFERENCE_MARKS: return"LOK_CALLBACK_REFERENCE_MARKS"; case LOK_CALLBACK_JSDIALOG: return"LOK_CALLBACK_JSDIALOG"; case LOK_CALLBACK_CALC_FUNCTION_LIST: return"LOK_CALLBACK_CALC_FUNCTION_LIST"; case LOK_CALLBACK_TAB_STOP_LIST: return"LOK_CALLBACK_TAB_STOP_LIST"; case LOK_CALLBACK_FORM_FIELD_BUTTON: return"LOK_CALLBACK_FORM_FIELD_BUTTON"; case LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY: return"LOK_CALLBACK_INVALIDATE_SHEET_GEOMETRY"; case LOK_CALLBACK_DOCUMENT_BACKGROUND_COLOR: return"LOK_CALLBACK_DOCUMENT_BACKGROUND_COLOR"; case LOK_COMMAND_BLOCKED: return"LOK_COMMAND_BLOCKED"; case LOK_CALLBACK_SC_FOLLOW_JUMP: return"LOK_CALLBACK_SC_FOLLOW_JUMP"; case LOK_CALLBACK_CONTENT_CONTROL: return"LOK_CALLBACK_CONTENT_CONTROL"; case LOK_CALLBACK_PRINT_RANGES: return"LOK_CALLBACK_PRINT_RANGES"; case LOK_CALLBACK_FONTS_MISSING: return"LOK_CALLBACK_FONTS_MISSING"; case LOK_CALLBACK_MEDIA_SHAPE: return"LOK_CALLBACK_MEDIA_SHAPE"; case LOK_CALLBACK_EXPORT_FILE: return"LOK_CALLBACK_EXPORT_FILE"; case LOK_CALLBACK_VIEW_RENDER_STATE: return"LOK_CALLBACK_VIEW_RENDER_STATE"; case LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR: return"LOK_CALLBACK_APPLICATION_BACKGROUND_COLOR"; case LOK_CALLBACK_A11Y_FOCUS_CHANGED: return"LOK_CALLBACK_A11Y_FOCUS_CHANGED"; case LOK_CALLBACK_A11Y_CARET_CHANGED: return"LOK_CALLBACK_A11Y_CARET_CHANGED"; case LOK_CALLBACK_A11Y_TEXT_SELECTION_CHANGED: return"LOK_CALLBACK_A11Y_TEXT_SELECTION_CHANGED"; case LOK_CALLBACK_COLOR_PALETTES: return"LOK_CALLBACK_COLOR_PALETTES";
case LOK_CALLBACK_DOCUMENT_PASSWORD_RESET:
return "LOK_CALLBACK_DOCUMENT_PASSWORD_RESET";
case LOK_CALLBACK_A11Y_FOCUSED_CELL_CHANGED:
return "LOK_CALLBACK_A11Y_FOCUSED_CELL_CHANGED";
case LOK_CALLBACK_A11Y_EDITING_IN_SELECTION_STATE:
return "LOK_CALLBACK_A11Y_EDITING_IN_SELECTION_STATE";
case LOK_CALLBACK_A11Y_SELECTION_CHANGED:
return "LOK_CALLBACK_A11Y_SELECTION_CHANGED";
case LOK_CALLBACK_CORE_LOG:
return "LOK_CALLBACK_CORE_LOG";
case LOK_CALLBACK_TOOLTIP:
return "LOK_CALLBACK_TOOLTIP";
case LOK_CALLBACK_SHAPE_INNER_TEXT:
return "LOK_CALLBACK_SHAPE_INNER_TEXT";
}
typedef enum
{
/// A mouse button has been pressed down.
LOK_MOUSEEVENT_MOUSEBUTTONDOWN,
/// A mouse button has been let go.
LOK_MOUSEEVENT_MOUSEBUTTONUP,
/// The mouse has moved while a button is pressed.
LOK_MOUSEEVENT_MOUSEMOVE
}
LibreOfficeKitMouseEventType;
typedef enum
{
/// The start of selection is to be adjusted.
LOK_SETTEXTSELECTION_START,
/// The end of selection is to be adjusted.
LOK_SETTEXTSELECTION_END,
/// Both the start and the end of selection is to be adjusted.
LOK_SETTEXTSELECTION_RESET
}
LibreOfficeKitSetTextSelectionType;
typedef enum
{
/**
* A move or a resize action starts. It is assumed that there is a valid
* graphic selection (see LOK_CALLBACK_GRAPHIC_SELECTION) and the supplied
* coordinates are the ones the user tapped on.
*
* The type of the action is move by default, unless the coordinates are
* the position of a handle (see below), in which case it's a resize.
*
* There are 8 handles for a graphic selection:
* - top-left, top-center, top-right
* - middle-left, middle-right
* - bottom-left, bottom-center, bottom-right
*/
LOK_SETGRAPHICSELECTION_START,
/**
* A move or resize action stops. It is assumed that this is always used
* only after a LOK_SETTEXTSELECTION_START. The supplied coordinates are
* the ones where the user released the screen.
*/
LOK_SETGRAPHICSELECTION_END
}
LibreOfficeKitSetGraphicSelectionType;
#endif // defined LOK_USE_UNSTABLE_API || defined LIBO_INTERNAL_ONLY
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.