summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDennis Francis <dennis.francis@collabora.com>2020-05-19 13:37:04 +0530
committerDennis Francis <dennis.francis@collabora.com>2020-05-25 00:39:54 +0530
commitbe7c109de9ae2b1849951e7eb3a4cc2d9a719605 (patch)
tree6926270cd4bc5bcdd9d329182e95f782374eb715
parent8173d6894e46c8522c29ac233fa6a7a3c856de2f (diff)
lokit: Introduce new flag "sc_print_twips_msgs"...
for conditioning all changes needed to allow calc messages in print twips coordinates. Change-Id: I407b4d4d4e0a1dfb2c4339cafa10b368b437c82d
-rw-r--r--desktop/source/lib/init.cxx3
-rw-r--r--include/comphelper/lok.hxx1
2 files changed, 4 insertions, 0 deletions
diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx
index 44f28454c8f8..4c6f16e2ccd0 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -5887,6 +5887,9 @@ static int lo_initialize(LibreOfficeKit* pThis, const char* pAppPath, const char
else if (it == "sc_no_grid_bg")
comphelper::LibreOfficeKit::setCompatFlag(
comphelper::LibreOfficeKit::Compat::scNoGridBackground);
+ else if (it == "sc_print_twips_msgs")
+ comphelper::LibreOfficeKit::setCompatFlag(
+ comphelper::LibreOfficeKit::Compat::scPrintTwipsMsgs);
}
}
diff --git a/include/comphelper/lok.hxx b/include/comphelper/lok.hxx
index 88901a24d991..dfbc1a2ce6c0 100644
--- a/include/comphelper/lok.hxx
+++ b/include/comphelper/lok.hxx
@@ -86,6 +86,7 @@ enum Compat : sal_uInt32
{
none = 0,
scNoGridBackground = 1,
+ scPrintTwipsMsgs = 2,
};
/// Set compatibility flags
COMPHELPER_DLLPUBLIC void setCompatFlag(Compat flag);