diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-09-16 17:25:01 -0400 |
---|---|---|
committer | Jan Holesovsky <kendy@collabora.com> | 2019-07-16 09:59:50 +0200 |
commit | f7243a966521b6b9fb87e48088c388678dd17e9e (patch) | |
tree | 1feeb8167da4730261b3bace49e023c8d2bea6cc /sc/source | |
parent | b43a26ac51cf4c3621a5353b2493f5873713ff6d (diff) |
LOK: getPartInfo now returns list of selected parts
For spreadsheets, selected parts are still unimplemented,
so returns false for all.
For presentations, visible parts seem to be always
return false at load time.
Change-Id: I90c79617f88deec98849bb374ca0ba177cd9c9af
Reviewed-on: https://gerrit.libreoffice.org/69611
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Tested-by: Ashod Nakashian <ashnakash@gmail.com>
Reviewed-on: https://gerrit.libreoffice.org/73494
Tested-by: Jenkins
Reviewed-by: Jan Holesovsky <kendy@collabora.com>
Diffstat (limited to 'sc/source')
-rw-r--r-- | sc/source/ui/unoobj/docuno.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sc/source/ui/unoobj/docuno.cxx b/sc/source/ui/unoobj/docuno.cxx index c16b992cd03b..953c977454da 100644 --- a/sc/source/ui/unoobj/docuno.cxx +++ b/sc/source/ui/unoobj/docuno.cxx @@ -546,10 +546,14 @@ OUString ScModelObj::getPartInfo( int nPart ) { OUString aPartInfo; ScViewData* pViewData = ScDocShell::GetViewData(); - bool bIsVisible = pViewData->GetDocument()->IsVisible(nPart); + const bool bIsVisible = pViewData->GetDocument()->IsVisible(nPart); + //FIXME: Implement IsSelected(). + const bool bIsSelected = false; //pViewData->GetDocument()->IsSelected(nPart); aPartInfo += "{ \"visible\": \""; aPartInfo += OUString::number(static_cast<unsigned int>(bIsVisible)); + aPartInfo += "\", \"selected\": \""; + aPartInfo += OUString::number(static_cast<unsigned int>(bIsSelected)); aPartInfo += "\" }"; return aPartInfo; } |