summaryrefslogtreecommitdiff
path: root/sd/source
diff options
context:
space:
mode:
authorMarco Cecchetti <marco.cecchetti@collabora.com>2024-09-02 18:04:51 +0200
committerMiklos Vajna <vmiklos@collabora.com>2024-11-13 09:17:13 +0100
commit6a7ba6684766b8a506d8038f75e16684cb9c0ef1 (patch)
treed7ab6eb5230b91086caba1959defee4c87ee4658 /sd/source
parent55d2fdf4ba40af1369406b7775df643f846836a4 (diff)
lok: slideshow: not export endless and repeat property per each slide
Endless and loopAndRepeatDuration properties has to be exported as presentation property Change-Id: I223ab488c8be0726f84a229a63595be6f9455c76 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176468 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd/source')
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx20
1 files changed, 10 insertions, 10 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 070616a101a0..f083334354bc 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -4255,6 +4255,16 @@ OString SdXImpressDocument::getPresentationInfo() const
aJsonWriter.put("docWidth", aDocSize.getWidth());
aJsonWriter.put("docHeight", aDocSize.getHeight());
+ sd::PresentationSettings const& rSettings = mpDoc->getPresentationSettings();
+
+ const bool bIsEndless = rSettings.mbEndless;
+ aJsonWriter.put("isEndless", bIsEndless);
+
+ if (bIsEndless) {
+ const sal_Int32 nPauseTimeout = rSettings.mnPauseTimeout;
+ aJsonWriter.put("loopAndRepeatDuration", nPauseTimeout);
+ }
+
auto aSlideList = aJsonWriter.startArray("slides");
sal_Int32 nSlideCount = xDrawPages->getCount();
for (sal_Int32 i = 0; i < nSlideCount; ++i)
@@ -4413,16 +4423,6 @@ OString SdXImpressDocument::getPresentationInfo() const
}
}
- sd::PresentationSettings const& rSettings = mpDoc->getPresentationSettings();
-
- const bool bIsEndless = rSettings.mbEndless;
- aJsonWriter.put("isEndless", bIsEndless);
-
- if (bIsEndless) {
- const sal_Int32 nPauseTimeout = rSettings.mnPauseTimeout;
- aJsonWriter.put("loopAndRepeatDuration", nPauseTimeout);
- }
-
AnimationsExporter aAnimationExporter(aJsonWriter, pSlide);
if (aAnimationExporter.hasEffects())
{