summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/unoobj/docuno.cxx12
1 files changed, 12 insertions, 0 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx
index 7df255a31ebd..f415a7b5cd4c 100644
--- a/sc/source/ui/unoobj/docuno.cxx
+++ b/sc/source/ui/unoobj/docuno.cxx
@@ -531,6 +531,18 @@ int ScModelObj::getPart()
return pViewData->GetViewShell()->getPart();
}
+OUString ScModelObj::getPartInfo( int nPart )
+{
+ OUString aPartInfo;
+ ScViewData* pViewData = ScDocShell::GetViewData();
+ bool bIsVisible = pViewData->GetDocument()->IsVisible(nPart);
+
+ aPartInfo += "{ \"visible\": \"";
+ aPartInfo += OUString::number(bIsVisible);
+ aPartInfo += "\" }";
+ return aPartInfo;
+}
+
OUString ScModelObj::getPartName( int nPart )
{
OUString sTabName;