Versions in this module Expand all Collapse all v0 v0.0.1 Aug 12, 2026 Changes in this version + type Callback func(typ CallbackType, payload string) + type CallbackType int + const CALLBACK_CALC_FUNCTION_LIST + const CALLBACK_CELL_ADDRESS + const CALLBACK_CELL_AUTO_FILL_AREA + const CALLBACK_CELL_CURSOR + const CALLBACK_CELL_FORMULA + const CALLBACK_CELL_SELECTION_AREA + const CALLBACK_CELL_VIEW_CURSOR + const CALLBACK_CLIPBOARD_CHANGED + const CALLBACK_COMMENT + const CALLBACK_CONTEXT_CHANGED + const CALLBACK_CONTEXT_MENU + const CALLBACK_CURSOR_VISIBLE + const CALLBACK_DOCUMENT_BACKGROUND_COLOR + const CALLBACK_DOCUMENT_PASSWORD + const CALLBACK_DOCUMENT_PASSWORD_TO_MODIFY + const CALLBACK_DOCUMENT_SIZE_CHANGED + const CALLBACK_ERROR + const CALLBACK_FORM_FIELD_BUTTON + const CALLBACK_GRAPHIC_SELECTION + const CALLBACK_GRAPHIC_VIEW_SELECTION + const CALLBACK_HYPERLINK_CLICKED + const CALLBACK_INVALIDATE_HEADER + const CALLBACK_INVALIDATE_SHEET_GEOMETRY + const CALLBACK_INVALIDATE_TILES + const CALLBACK_INVALIDATE_VIEW_CURSOR + const CALLBACK_INVALIDATE_VISIBLE_CURSOR + const CALLBACK_JSDIALOG + const CALLBACK_MOUSE_POINTER + const CALLBACK_PROFILE_FRAME + const CALLBACK_REDLINE_TABLE_ENTRY_MODIFIED + const CALLBACK_REDLINE_TABLE_SIZE_CHANGED + const CALLBACK_REFERENCE_MARKS + const CALLBACK_RULER_UPDATE + const CALLBACK_SC_FOLLOW_JUMP + const CALLBACK_SEARCH_NOT_FOUND + const CALLBACK_SEARCH_RESULT_SELECTION + const CALLBACK_SET_PART + const CALLBACK_SIGNATURE_STATUS + const CALLBACK_STATE_CHANGED + const CALLBACK_STATUS_INDICATOR_FINISH + const CALLBACK_STATUS_INDICATOR_SET_VALUE + const CALLBACK_STATUS_INDICATOR_START + const CALLBACK_TABLE_SELECTED + const CALLBACK_TAB_STOP_LIST + const CALLBACK_TEXT_SELECTION + const CALLBACK_TEXT_SELECTION_END + const CALLBACK_TEXT_SELECTION_START + const CALLBACK_TEXT_VIEW_SELECTION + const CALLBACK_UNO_COMMAND_RESULT + const CALLBACK_VALIDITY_INPUT_HELP + const CALLBACK_VALIDITY_LIST_BUTTON + const CALLBACK_VIEW_CURSOR_VISIBLE + const CALLBACK_VIEW_LOCK + const CALLBACK_WINDOW + const COMMAND_BLOCKED + func (t CallbackType) String() string + type ClipboardData struct + Data []byte + MimeType string + type Document struct + func (d Document) AddCertificate(cert []byte) bool + func (d Document) CompleteFunction(functionName string) + func (d Document) CreateView() int + func (d Document) CreateViewWithOptions(options string) int + func (d Document) Destroy() + func (d Document) DestroyView(id int) + func (d Document) Doc() *capi.LibreOfficeKitDocument + func (d Document) GetClipboard(requested []string) ([]ClipboardData, bool) + func (d Document) GetCommandValues(command string) string + func (d Document) GetDocumentSize() (w, h int) + func (d Document) GetDocumentType() DocumentType + func (d Document) GetPart() int + func (d Document) GetPartHash(part int) string + func (d Document) GetPartInfo(part int) string + func (d Document) GetPartName(part int) string + func (d Document) GetPartPageRectangles() string + func (d Document) GetParts() int + func (d Document) GetSelectionType() SelectionType + func (d Document) GetSignatureState() SignatureState + func (d Document) GetTextSelection(mimeType string) (text, usedMimeType string, ok bool) + func (d Document) GetTileMode() TileMode + func (d Document) GetView() int + func (d Document) GetViewIds() []int + func (d Document) GetViewsCount() int + func (d Document) InitializeForRendering(arguments string) + func (d Document) InsertCertificate(cert, key []byte) bool + func (d Document) MoveSelectedParts(position int, duplicate bool) + func (d Document) PaintPartTile(buffer []byte, ...) + func (d Document) PaintTile(buffer []byte, ...) + func (d Document) PaintWindow(windowID uint, buffer []byte, x, y, width, height int) + func (d Document) PaintWindowDPI(windowID uint, buffer []byte, x, y, width, height int, dpiScale float64) + func (d Document) PaintWindowForView(windowID uint, buffer []byte, x, y, width, height int, dpiScale float64, ...) + func (d Document) Paste(mimeType string, data []byte) bool + func (d Document) PostKeyEvent(typ KeyEventType, charCode, keyCode int) + func (d Document) PostMouseEvent(typ MouseEventType, x, y, count, buttons, modifier int) + func (d Document) PostUnoCommand(command, arguments string, notify bool) + func (d Document) PostWindow(windowID uint, action WindowAction, data string) + func (d Document) PostWindowExtTextInputEvent(windowID uint, typ ExtTextInputType, text string) + func (d Document) PostWindowGestureEvent(windowID uint, typ string, x, y, offset int) + func (d Document) PostWindowKeyEvent(windowID uint, typ KeyEventType, charCode, keyCode int) + func (d Document) PostWindowMouseEvent(windowID uint, typ MouseEventType, x, y, count, buttons, modifier int) + func (d Document) RegisterCallback(callback Callback) + func (d Document) RemoveTextContext(windowID uint, before, after int) + func (d Document) RenderFont(fontName, ch string) (bitmap []byte, width, height int) + func (d Document) RenderFontOrientation(fontName, ch string, orientation int) (bitmap []byte, width, height int) + func (d Document) RenderSearchResult(searchResult string) (bitmap []byte, width, height int, ok bool) + func (d Document) RenderShapeSelection() (data []byte, ok bool) + func (d Document) ResetSelection() + func (d Document) ResizeWindow(windowID uint, width, height int) + func (d Document) SaveAs(url, format, filterOptions string) bool + func (d Document) SelectPart(part, selectMode int) + func (d Document) SendDialogEvent(windowID uint64, args string) + func (d Document) SendFormFieldEvent(args string) + func (d Document) SetBlockedCommandList(viewID int, blockedCommandList string) + func (d Document) SetClientVisibleArea(x, y, width, height int) + func (d Document) SetClientZoom(tilePixelWidth, tilePixelHeight, tileTwipWidth, tileTwipHeight int) + func (d Document) SetClipboard(data []ClipboardData) bool + func (d Document) SetGraphicSelection(typ SetGraphicSelectionType, x, y int) + func (d Document) SetOutlineState(column bool, level, index int, hidden bool) + func (d Document) SetPart(part int) + func (d Document) SetPartMode(mode PartMode) + func (d Document) SetTextSelection(typ SetTextSelectionType, x, y int) + func (d Document) SetView(id int) + func (d Document) SetViewLanguage(id int, language string) + func (d Document) SetWindowTextSelection(windowID uint, swap bool, x, y int) + type DocumentType int + const DOCTYPE_DRAWING + const DOCTYPE_OTHER + const DOCTYPE_PRESENTATION + const DOCTYPE_SPREADSHEET + const DOCTYPE_TEXT + type ExtTextInputType int + const EXT_TEXTINPUT + const EXT_TEXTINPUT_END + const EXT_TEXTINPUT_POS + type KeyEventType int + const KEYEVENT_KEYINPUT + const KEYEVENT_KEYUP + type MouseEventType int + const MOUSEEVENT_MOUSEBUTTONDOWN + const MOUSEEVENT_MOUSEBUTTONUP + const MOUSEEVENT_MOUSEMOVE + type Office struct + func NewOffice(installPath string) (o Office, err error) + func (o Office) Destroy() + func (o Office) DocumentLoad(url string) (d Document, err error) + func (o Office) DocumentLoadWithOptions(url, options string) (d Document, err error) + func (o Office) GetError() error + func (o Office) GetFilterTypes() string + func (o Office) GetVersionInfo() string + func (o Office) Lok() *capi.LibreOfficeKit + func (o Office) RegisterCallback(callback Callback) + func (o Office) RunLoop(poll PollCallback, wake WakeCallback) + func (o Office) RunMacro(url string) int + func (o Office) SendDialogEvent(windowID uint64, args string) + func (o Office) SetDocumentPassword(url, password string) + func (o Office) SetOption(option, value string) + func (o Office) SetOptionalFeatures(features OptionalFeatures) + func (o Office) SignDocument(url string, cert, key []byte) bool + type OptionalFeatures uint64 + const FEATURE_DOCUMENT_PASSWORD + const FEATURE_DOCUMENT_PASSWORD_TO_MODIFY + const FEATURE_NO_TILED_ANNOTATIONS + const FEATURE_PART_IN_INVALIDATION_CALLBACK + const FEATURE_RANGE_HEADERS + const FEATURE_VIEWID_IN_VISCURSOR_INVALIDATION_CALLBACK + type PartMode int + const PARTMODE_NOTES + const PARTMODE_SLIDES + type PollCallback func(timeoutUs int) int + type SelectionType int + const SELTYPE_COMPLEX + const SELTYPE_LARGE_TEXT + const SELTYPE_NONE + const SELTYPE_TEXT + type SetGraphicSelectionType int + const SETGRAPHICSELECTION_END + const SETGRAPHICSELECTION_START + type SetTextSelectionType int + const SETTEXTSELECTION_END + const SETTEXTSELECTION_RESET + const SETTEXTSELECTION_START + type SignatureState int + const SIGNATURE_INVALID + const SIGNATURE_NONE + const SIGNATURE_OK + const SIGNATURE_PARTIAL + type TileMode int + const TILEMODE_BGRA + const TILEMODE_RGBA + type WakeCallback func() + type WindowAction int + const WINDOW_CLOSE + const WINDOW_PASTE