[Libreoffice-commits] core.git: Branch 'distro/collabora/co-2021' - sd/source
Pranam Lashkari (via logerrit)
logerrit at kemper.freedesktop.org
Fri Apr 2 17:49:58 UTC 2021
sd/source/ui/unoidl/unomodel.cxx | 3 +++
1 file changed, 3 insertions(+)
New commits:
commit 0e1be4bb636623f4c921b2e7f38b05bb4125c93a
Author: Pranam Lashkari <lpranam at collabora.com>
AuthorDate: Tue Mar 30 21:52:13 2021 +0530
Commit: Pranam Lashkari <lpranam at collabora.com>
CommitDate: Fri Apr 2 19:49:27 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/+/113358
Tested-by: Jenkins
Reviewed-by: Pranam Lashkari <lpranam at collabora.com>
(cherry picked from commit 3c49a3be592eb515bba100b4a17617136fabbcba)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/113537
Tested-by: Pranam Lashkari <lpranam at collabora.com>
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 2ffc5acc0664..5310c120bf51 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -2283,11 +2283,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;
}
More information about the Libreoffice-commits
mailing list