sd/source/ui/unoidl/unomodel.cxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
New commits: commit 25c758df711d473dcc65161f80802b21ab6e9d1e Author: Javiya Vivekkumar Dineshbhai <[email protected]> AuthorDate: Wed Jul 10 14:16:59 2024 +0530 Commit: Miklos Vajna <[email protected]> CommitDate: Wed Sep 18 14:34:26 2024 +0200 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 <[email protected]> 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); + } + } } } }
