From 2c79d998587cb2a0a561bbbd128ffb48fd56cf5a Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Fri, 8 Dec 2017 16:44:09 +0100 Subject: lok: calc: LOK_FEATURE_RANGE_HEADERS For allowing the client to enable/disable the new range based header data Change-Id: I95da8ec3e48137fb75b9b22af3bb1296001ba9ca Reviewed-on: https://gerrit.libreoffice.org/46095 Reviewed-by: Jan Holesovsky Tested-by: Jan Holesovsky (cherry picked from commit 069cf9321be51e7203e336e0e87d8ba7dc9b729e) Reviewed-on: https://gerrit.libreoffice.org/46570 Reviewed-by: Marco Cecchetti Tested-by: Marco Cecchetti --- include/LibreOfficeKit/LibreOfficeKitEnums.h | 7 ++++++- include/comphelper/lok.hxx | 4 ++++ 2 files changed, 10 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/LibreOfficeKit/LibreOfficeKitEnums.h b/include/LibreOfficeKit/LibreOfficeKitEnums.h index cf85d7c6b592..f14ce4d36a7a 100644 --- a/include/LibreOfficeKit/LibreOfficeKitEnums.h +++ b/include/LibreOfficeKit/LibreOfficeKitEnums.h @@ -79,7 +79,12 @@ typedef enum /** * Turn off tile rendering for annotations */ - LOK_FEATURE_NO_TILED_ANNOTATIONS = (1ULL << 3) + LOK_FEATURE_NO_TILED_ANNOTATIONS = (1ULL << 3), + + /** + * Enable range based header data + */ + LOK_FEATURE_RANGE_HEADERS = (1ULL << 4) } LibreOfficeKitOptionalFeatures; diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx index 7a293ca70352..c42a740822e0 100644 --- a/include/comphelper/lok.hxx +++ b/include/comphelper/lok.hxx @@ -60,6 +60,10 @@ COMPHELPER_DLLPUBLIC void setDialogPainting(bool bDialogPainting); COMPHELPER_DLLPUBLIC void setTiledAnnotations(bool bTiledAnnotations); /// Check if annotations rendering is turned off COMPHELPER_DLLPUBLIC bool isTiledAnnotations(); +/// Set if we want range based header data +COMPHELPER_DLLPUBLIC void setRangeHeaders(bool bTiledAnnotations); +/// Check if range based header data is enabled +COMPHELPER_DLLPUBLIC bool isRangeHeaders(); // Status indicator handling. Even if in theory there could be several status indicators active at // the same time, in practice there is only one at a time, so we don't handle any identification of -- cgit