sc/source/ui/unoobj/docuno.cxx | 3 +++ 1 file changed, 3 insertions(+)
New commits: commit f34025d36dda12ca99bb82f80e711fbd93fe4967 Author: Hubert Figuière <h...@collabora.com> AuthorDate: Tue Feb 13 15:56:57 2024 -0500 Commit: Michael Meeks <michael.me...@collabora.com> CommitDate: Wed Feb 14 10:16:26 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/+/163337 Tested-by: Jenkins Reviewed-by: Michael Meeks <michael.me...@collabora.com> diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index e45ef91d2246..abb046ba1dd2 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -616,6 +616,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); @@ -626,6 +627,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; }