summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaviya Vivekkumar Dineshbhai <vivek.javiya@collabora.com>2024-07-10 14:16:59 +0530
committerMiklos Vajna <vmiklos@collabora.com>2024-09-18 14:34:26 +0200
commit25c758df711d473dcc65161f80802b21ab6e9d1e (patch)
tree8a2cb27d25681efa68e9ebda9d697113cba7f411
parentbbef07065433ecc33e22724e65974e2b7509929a (diff)
slideshow: add transitionDuration and highResDuration properties for impress
Change-Id: I77805d7ee801917c8f8b37e4d85aa7b1ec3f4d21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171423 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r--sd/source/ui/unoidl/unomodel.cxx21
1 files changed, 21 insertions, 0 deletions
diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx
index 24efb1537110..8150d6cb3f9a 100644
--- a/sd/source/ui/unoidl/unomodel.cxx
+++ b/sd/source/ui/unoidl/unomodel.cxx
@@ -3185,6 +3185,27 @@ OString SdXImpressDocument::getPresentationInfo() const
xPropSet->getPropertyValue("TransitionDirection") >>= nTransitionDirection;
aJsonWriter.put("transitionDirection", nTransitionDirection);
}
+
+ double nTransitionDuration(0.0);
+ if( xPropSet->getPropertySetInfo()->hasPropertyByName( "TransitionDuration" ) &&
+ (xPropSet->getPropertyValue( "TransitionDuration" ) >>= nTransitionDuration ) && nTransitionDuration != 0.0 )
+ {
+ // convert transitionDuration time to ms
+ aJsonWriter.put("transitionDuration", nTransitionDuration * 1000);
+ }
+
+ sal_Int32 nChange(0);
+ if( xPropSet->getPropertySetInfo()->hasPropertyByName( "Change" ) &&
+ (xPropSet->getPropertyValue( "Change" ) >>= nChange ) && nChange == 1 )
+ {
+ double fSlideDuration(0);
+ if( xPropSet->getPropertySetInfo()->hasPropertyByName( "HighResDuration" ) &&
+ (xPropSet->getPropertyValue( "HighResDuration" ) >>= fSlideDuration) )
+ {
+ // convert slide duration time to ms
+ aJsonWriter.put("nextSlideDuration", fSlideDuration * 1000);
+ }
+ }
}
}
}