From 91a3f58ec3ac7998688cab665322d26d5aa3b015 Mon Sep 17 00:00:00 2001 From: Mike Kaganski Date: Fri, 12 Jul 2019 20:01:57 +1000 Subject: Don't draw gridlines and document background in Online server process ... see https://gerrit.libreoffice.org/72417 They will be drawn client-side. Borders and explicit cell background are still drawn in core. This mode is activated using "sc_no_grid_bg" option in SAL_LOK_OPTIONS environment variable. Change-Id: Ie10e7770b8168ec648d44ae5af0a0a0602d89ee6 Reviewed-on: https://gerrit.libreoffice.org/75484 Tested-by: Jenkins Reviewed-by: Mike Kaganski --- comphelper/source/misc/lok.cxx | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'comphelper') diff --git a/comphelper/source/misc/lok.cxx b/comphelper/source/misc/lok.cxx index 0ea263f20885..0c43c3fc0822 100644 --- a/comphelper/source/misc/lok.cxx +++ b/comphelper/source/misc/lok.cxx @@ -35,6 +35,8 @@ static bool g_bViewIdForVisCursorInvalidation(false); static bool g_bLocalRendering(false); +static Compat g_eCompatFlags(Compat::none); + static LanguageTag g_aLanguageTag("en-US", true); /// Scaling of the cairo or CoreGraphics canvas painting for HiDPI or zooming in Calc. @@ -130,6 +132,10 @@ bool isLocalRendering() return g_bLocalRendering; } +void setCompatFlag(Compat flag) { g_eCompatFlags = static_cast(g_eCompatFlags | flag); } + +bool isCompatFlagSet(Compat flag) { return (g_eCompatFlags & flag) == flag; } + void setLanguageTag(const LanguageTag& languageTag) { if (g_aLanguageTag != languageTag) -- cgit