diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2021-03-30 21:52:13 +0530 |
---|---|---|
committer | Pranam Lashkari <lpranam@collabora.com> | 2021-03-31 14:38:06 +0200 |
commit | 3c49a3be592eb515bba100b4a17617136fabbcba (patch) | |
tree | d67ddab014f76139c34e0f2a6ca4ccb05fd751e2 /sd | |
parent | 910fb8999de2622cbbb63083777cf889bd798889 (diff) |
LOK: getPartInfo now returns master page count
master page count will be used when switching to master view
to know how many slide previews to be shown
Change-Id: I11735797d16538a9f667a85b90a86b1e6cf9b5aa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113358
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unomodel.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 62df5ec84a62..c8812900cb93 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -2274,11 +2274,14 @@ OUString SdXImpressDocument::getPartInfo(int nPart) const bool bIsVisible = pViewSh->IsVisible(nPart); const bool bIsSelected = pViewSh->IsSelected(nPart); + const sal_Int16 nMasterPageCount= pViewSh->GetDoc()->GetMasterSdPageCount(pViewSh->GetPageKind()); OUString aPartInfo = "{ \"visible\": \"" + OUString::number(static_cast<unsigned int>(bIsVisible)) + "\", \"selected\": \"" + OUString::number(static_cast<unsigned int>(bIsSelected)) + + "\", \"masterPageCount\": \"" + + OUString::number(nMasterPageCount) + "\" }"; return aPartInfo; } |