diff options
author | Marco Cecchetti <marco.cecchetti@collabora.com> | 2017-11-28 23:38:35 +0100 |
---|---|---|
committer | Marco Cecchetti <mrcekets@gmail.com> | 2017-12-01 01:10:43 +0100 |
commit | 29a233e5a9009cbe2ec0f62cc05cf0aceca8e459 (patch) | |
tree | 4a39b5fc9cc9b74aa1f73cb5f492365c44d036cf /bundled | |
parent | 26876e6165315961142e726738e6635c5a010276 (diff) |
calc: set outline state
use a specific message from the client for set the visibility state of
a group instead of hijacking the update row/column header message
Change-Id: I69d66b30db0b4d8a0082cbd2524120491d4f97cb
Reviewed-on: https://gerrit.libreoffice.org/45446
Reviewed-by: Marco Cecchetti <mrcekets@gmail.com>
Tested-by: Marco Cecchetti <mrcekets@gmail.com>
Diffstat (limited to 'bundled')
-rw-r--r-- | bundled/include/LibreOfficeKit/LibreOfficeKit.h | 3 | ||||
-rw-r--r-- | bundled/include/LibreOfficeKit/LibreOfficeKit.hxx | 13 |
2 files changed, 16 insertions, 0 deletions
diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.h b/bundled/include/LibreOfficeKit/LibreOfficeKit.h index 14824821c..02e8e50e0 100644 --- a/bundled/include/LibreOfficeKit/LibreOfficeKit.h +++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.h @@ -227,6 +227,9 @@ struct _LibreOfficeKitDocumentClass /// @see lok::Document::setVisibleArea). void (*setClientVisibleArea) (LibreOfficeKitDocument* pThis, int nX, int nY, int nWidth, int nHeight); + /// @see lok::Document::setOutlineState). + void (*setOutlineState) (LibreOfficeKitDocument* pThis, bool bColumn, int nLevel, int nIndex, bool bHidden); + /// @see lok::Document::createView(). int (*createView) (LibreOfficeKitDocument* pThis); /// @see lok::Document::destroyView(). diff --git a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx index 19e121fe6..1c4fcd034 100644 --- a/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx +++ b/bundled/include/LibreOfficeKit/LibreOfficeKit.hxx @@ -465,6 +465,19 @@ public: } /** + * Show/Hide a single row/column header outline for Calc dosuments. + * + * @param bColumn - if we are dealing with a column or row group + * @param nLevel - the level to which the group belongs + * @param nIndex - the group entry index + * @param bHidden - the new group state (collapsed/expanded) + */ + void setOutlineState(bool bColumn, int nLevel, int nIndex, bool bHidden) + { + mpDoc->pClass->setOutlineState(mpDoc, bColumn, nLevel, nIndex, bHidden); + } + + /** * Create a new view for an existing document. * By default a loaded document has 1 view. * @return the ID of the new view. |