summaryrefslogtreecommitdiffstats
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-07-04 12:04:55 +0200
commitb6d8dd62dd0892b9a2eeac68fe2e2ee366d59057 (patch)
treed98d715f549cebbaed7763c3a917a28f90b1e865
parentadd row/col limits to the JSON (diff)
downloadcore-b6d8dd62dd0892b9a2eeac68fe2e2ee366d59057.tar.gz
core-b6d8dd62dd0892b9a2eeac68fe2e2ee366d59057.zip
lokit: Introduce new flag "sc_print_twips_msgs"...
for conditioning all changes needed to allow calc messages in print twips coordinates. Change-Id: I407b4d4d4e0a1dfb2c4339cafa10b368b437c82d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96904 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com> Reviewed-by: Dennis Francis <dennis.francis@collabora.com> (cherry picked from commit 8f382dcee04588ac1e95f03f55df2b87883ce259) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96967 Tested-by: Jenkins
-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 bc6a0e18ed92..e20fc2f5e37f 100644
--- a/desktop/source/lib/init.cxx
+++ b/desktop/source/lib/init.cxx
@@ -6052,6 +6052,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);