[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-6.2' - sd/source
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Thu Apr 1 13:37:56 UTC 2021
sd/source/ui/unoidl/unomodel.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 2c3db408256b3e2d4011af751b123dd086fb8622
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Mar 30 21:52:13 2021 +0530
Commit: Pranam Lashkari <lpranam at collabora.com>
CommitDate: Thu Apr 1 15:37:15 2021 +0200
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/+/113383
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113449
Reviewed-by: Pranam Lashkari <lpranam at collabora.com>
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index a1fda6f82652..c874c52f22ee 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2309,11 +2309,14 @@ OUString SdXImpressDocument::getPartInfo(int nPart)
OUString aPartInfo;
const bool bIsVisible = pViewSh->IsVisible(nPart);
const bool bIsSelected = pViewSh->IsSelected(nPart);
+ const sal_Int16 nMasterPageCount= pViewSh->GetDoc()->GetMasterSdPageCount(pViewSh->GetPageKind());
aPartInfo += "{ \"visible\": \"";
aPartInfo += OUString::number(static_cast<unsigned int>(bIsVisible));
aPartInfo += "\", \"selected\": \"";
aPartInfo += OUString::number(static_cast<unsigned int>(bIsSelected));
+ aPartInfo += "\", \"masterPageCount\": \"";
+ aPartInfo += OUString::number(nMasterPageCount);
aPartInfo += "\" }";
return aPartInfo;
}
More information about the Libreoffice-commits
mailing list