sc/source/ui/unoobj/docuno.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit db963d695dae5f9d4e3825a896f41bbdf9484bb2 Author: Hubert Figuière <h...@collabora.com> AuthorDate: Tue Feb 13 15:56:57 2024 -0500 Commit: Andras Timar <andras.ti...@collabora.com> CommitDate: Wed Feb 14 09:51:09 2024 +0100 calc: getPartInfo() returns the sheet protected state Change-Id: I67e2a26680895b5c76977109f4c3f9e1638a9f9e Signed-off-by: Hubert Figuière <h...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/163325 Reviewed-by: Michael Meeks <michael.me...@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index cb13801b7b1e..832b2015c2b2 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -613,6 +613,7 @@ OUString ScModelObj::getPartInfo( int nPart ) return OUString(); const bool bIsVisible = pViewData->GetDocument().IsVisible(nPart); + const bool bIsProtected = pViewData->GetDocument().IsTabProtected(nPart); //FIXME: Implement IsSelected(). const bool bIsSelected = false; //pViewData->GetDocument()->IsSelected(nPart); const bool bIsRTLLayout = pViewData->GetDocument().IsLayoutRTL(nPart); @@ -623,6 +624,8 @@ OUString ScModelObj::getPartInfo( int nPart ) OUString::number(static_cast<unsigned int>(bIsSelected)) + "\", \"rtllayout\": \"" + OUString::number(static_cast<unsigned int>(bIsRTLLayout)) + + "\", \"protected\": \"" + + OUString::number(static_cast<unsigned int>(bIsProtected)) + "\" }"; return aPartInfo; }