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 = 1Enables handling of password-protected documents.
Corresponds to
LOK_FEATURE_DOCUMENT_PASSWORD. When enabled, LibreOfficeKit can emit a DocumentPassword callback.DocumentPasswordToModify = 2Enables 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 = 8Disables rendering of annotations in tiles.
Corresponds to
LOK_FEATURE_NO_TILED_ANNOTATIONS. Useful for conversion or headless rendering scenarios.None = 0No optional features enabled.
PartInInvalidationCallback = 4Adds 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 = 16Enables range-based spreadsheet row and column header retrieval.
Corresponds to
LOK_FEATURE_RANGE_HEADERS. Useful for large spreadsheets and virtualized viewers.ViewIdInVisibleCursorInvalidationCallback = 32Adds 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 .