From a2b70380c38dca4d075a0a866200096c6d9b4104 Mon Sep 17 00:00:00 2001 From: Marco Cecchetti Date: Mon, 27 Nov 2017 17:50:26 +0100 Subject: lok - calc: outline and group handling Change-Id: Ibb287468653bc381acf034dcb8531c5faf61aef3 Reviewed-on: https://gerrit.libreoffice.org/45356 Reviewed-by: Marco Cecchetti Tested-by: Marco Cecchetti --- desktop/source/lib/init.cxx | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'desktop') diff --git a/desktop/source/lib/init.cxx b/desktop/source/lib/init.cxx index 95d4cda6ecd9..243aba70c5b5 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -2989,6 +2989,10 @@ static char* doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo int nY = 0; int nWidth = 0; int nHeight = 0; + bool bColumn = false; + int nLevel = -1; + int nGroupIndex = -2; + bool bHidden = false; OString aArguments = aCommand.copy(aViewRowColumnHeaders.getLength() + 1); sal_Int32 nParamIndex = 0; do @@ -3014,9 +3018,23 @@ static char* doc_getCommandValues(LibreOfficeKitDocument* pThis, const char* pCo nWidth = aValue.toInt32(); else if (aKey == "height") nHeight = aValue.toInt32(); + else if (aKey == "columnOutline") + bColumn = aValue.toBoolean(); + else if (aKey == "groupLevel") + nLevel = aValue.toInt32(); + else if (aKey == "groupIndex") + nGroupIndex = aValue.toInt32(); + else if (aKey == "groupHidden") + bHidden = aValue.toBoolean(); } while (nParamIndex >= 0); + aRectangle = tools::Rectangle(nX, nY, nX + nWidth, nY + nHeight); + + if (nGroupIndex != -2) + { + pDoc->setOutlineState(bColumn, nLevel, nGroupIndex, bHidden); + } } OUString aHeaders = pDoc->getRowColumnHeaders(aRectangle); -- cgit