sd/source/ui/unoidl/unomodel.cxx | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+)
New commits: commit daf9e4b718e9d655e7501f0bea5424cdc13607d9 Author: Javiya Vivekkumar Dineshbhai <vivek.jav...@collabora.com> AuthorDate: Wed Jul 10 14:16:59 2024 +0530 Commit: Tomaž Vajngerl <qui...@gmail.com> CommitDate: Tue Jul 16 13:05:01 2024 +0200 slideshow: add transitionDuration and highResDuration properties for impress Signed-off-by: Javiya Vivekkumar Dineshbhai <vivek.jav...@collabora.com> Change-Id: I77805d7ee801917c8f8b37e4d85aa7b1ec3f4d21 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/170272 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Tomaž Vajngerl <qui...@gmail.com> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 08eba371d838..40a852e44165 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -3157,6 +3157,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); + } + } } } }