diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-11-27 17:50:26 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2017-11-28 22:00:44 +0100 |
commit | 6964953c5a86ef02fa9320e1db4d6bd81cee5001 (patch) | |
tree | 0ddebfd0de2c37e04329237329da8e8f498b1c82 /desktop | |
parent | f4c6426d28aea11743881906d8179c220fa73b9f (diff) |
lok - calc: outline and group handling
Change-Id: Ibb287468653bc381acf034dcb8531c5faf61aef3
Reviewed-on: https://gerrit.libreoffice.org/45416
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Tested-by: Jan Holesovsky <kendy@collabora.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 307418fcd55c..fe046459751f 100644 --- a/desktop/source/lib/init.cxx +++ b/desktop/source/lib/init.cxx @@ -3009,6 +3009,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 @@ -3034,9 +3038,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 = Rectangle(nX, nY, nX + nWidth, nY + nHeight); + + if (nGroupIndex != -2) + { + pDoc->setOutlineState(bColumn, nLevel, nGroupIndex, bHidden); + } } OUString aHeaders = pDoc->getRowColumnHeaders(aRectangle); |