diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2020-08-21 07:41:37 +0530 |
---|---|---|
committer | Dennis Francis <dennis.francis@collabora.com> | 2020-08-24 16:31:19 +0200 |
commit | 69b0fe3a11990403730a51fda5475f46915c27d3 (patch) | |
tree | 073bd7a934bb78fc78be7c5786e99896cfe6338c /sc/source/ui/view/viewdata.cxx | |
parent | 925639d32d6ff3b99f9c48e6991382d184033856 (diff) |
lok-freezepanes: fixed freeze row and column handling
Added freeze row and column buttons in online UI did not work
because the case for LOK was not handled
Change-Id: I44315c6bc89ae02b7a8ac4c7c493ad7e8eda439e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/101127
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Dennis Francis <dennis.francis@collabora.com>
Diffstat (limited to 'sc/source/ui/view/viewdata.cxx')
-rw-r--r-- | sc/source/ui/view/viewdata.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sc/source/ui/view/viewdata.cxx b/sc/source/ui/view/viewdata.cxx index dca6a35069c2..e98378fa853f 100644 --- a/sc/source/ui/view/viewdata.cxx +++ b/sc/source/ui/view/viewdata.cxx @@ -4133,6 +4133,13 @@ bool ScViewData::SetLOKSheetFreezeIndex(const SCCOLROW nFreezeIndex, bool bIsCol pDoc->SetLOKFreezeRow(static_cast<SCROW>(nFreezeIndex), nForTab); } +bool ScViewData::RemoveLOKFreeze() +{ + bool colUnfreezed = SetLOKSheetFreezeIndex(0, true); + bool rowUnfreezed = SetLOKSheetFreezeIndex(0, false); + return colUnfreezed || rowUnfreezed; +} + void ScViewData::DeriveLOKFreezeAllSheets() { SCTAB nMaxTab = static_cast<SCTAB>(maTabData.size()) - 1; |