Table of Contents

Enum OptionalFeatures

Namespace
LibreOfficeKit.Enums
Assembly
LibreOfficeKit.dll

Optional features that can be enabled in LibreOfficeKit. Use SetOptionalFeatures(OptionalFeatures) to enable one or more flags.

[Flags]
public enum OptionalFeatures : ulong

Fields

DocumentPassword = 1

Enables handling of password-protected documents.

Corresponds to LOK_FEATURE_DOCUMENT_PASSWORD. When enabled, LibreOfficeKit can emit a DocumentPassword callback.

DocumentPasswordToModify = 2

Enables handling of passwords required to modify a write-protected document.

Corresponds to LOK_FEATURE_DOCUMENT_PASSWORD_TO_MODIFY. When enabled, LibreOfficeKit can emit a DocumentPasswordToModify callback.

NoTiledAnnotations = 8

Disables rendering of annotations in tiles.

Corresponds to LOK_FEATURE_NO_TILED_ANNOTATIONS. Useful for conversion or headless rendering scenarios.

None = 0

No optional features enabled.

PartInInvalidationCallback = 4

Adds the part number as the 5th value in the tile invalidation callback payload.

Corresponds to LOK_FEATURE_PART_IN_INVALIDATION_CALLBACK.

Disabled format: "x, y, width, height"

Enabled format: "x, y, width, height, part"

RangeHeaders = 16

Enables range-based spreadsheet row and column header retrieval.

Corresponds to LOK_FEATURE_RANGE_HEADERS. Useful for large spreadsheets and virtualized viewers.

ViewIdInVisibleCursorInvalidationCallback = 32

Adds the active view ID to visible cursor invalidation callback payloads.

Corresponds to LOK_FEATURE_VIEWID_IN_VISCURSOR_INVALIDATION_CALLBACK.

Disabled format: "x, y, width, height"

Enabled format: {"viewId": 123, "rectangle": "x, y, width, height", "misspelledWord": 0}

Remarks

Verified against LibreOffice 26.2: LibreOfficeKitEnums.h and LibreOfficeKit.h .