summaryrefslogtreecommitdiff
path: root/sc/source/ui/unoobj/docuno.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/ui/unoobj/docuno.cxx')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx3
1 files changed, 3 insertions, 0 deletions
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;
}