diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-11-27 17:50:26 +0100 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2017-11-29 12:44:35 +0100 |
commit | a2b70380c38dca4d075a0a866200096c6d9b4104 (patch) | |
tree | 9f3b22a28c51ceff17bfe4a15f70d84e331d15f4 /desktop | |
parent | e231ada19e14a4bae4b919c63a4e0227989f80d6 (diff) |
lok - calc: outline and group handling
Change-Id: Ibb287468653bc381acf034dcb8531c5faf61aef3
Reviewed-on: https://gerrit.libreoffice.org/45356
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/lib/init.cxx | 18 |
1 files changed, 18 insertions, 0 deletions
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); |