sd/source/ui/unoidl/unomodel.cxx | 13 +++++++++++++ 1 file changed, 13 insertions(+)
New commits: commit 378967ae8c71b80552913fc3b35cbf4fe13a377b Author: Marco Cecchetti <[email protected]> AuthorDate: Wed Aug 14 11:25:47 2024 +0200 Commit: Marco Cecchetti <[email protected]> CommitDate: Wed Aug 14 15:17:41 2024 +0200 lok: sd: transition information: export fade color Change-Id: I955c18cc5d131cfa5a246bb4506a81b8cf40b7ad Reviewed-on: https://gerrit.libreoffice.org/c/core/+/171858 Reviewed-by: Tomaž Vajngerl <[email protected]> Reviewed-by: vivek javiya <[email protected]> Tested-by: Jenkins CollaboraOffice <[email protected]> diff --git a/sd/source/ui/unoidl/unomodel.cxx b/sd/source/ui/unoidl/unomodel.cxx index 991cf2a037bf..a95490a2904f 100644 --- a/sd/source/ui/unoidl/unomodel.cxx +++ b/sd/source/ui/unoidl/unomodel.cxx @@ -3874,6 +3874,19 @@ OString SdXImpressDocument::getPresentationInfo() const bool nTransitionDirection = false; xPropSet->getPropertyValue("TransitionDirection") >>= nTransitionDirection; aJsonWriter.put("transitionDirection", nTransitionDirection); + + // fade color + if ((nTransitionType == TransitionType::FADE) + && ((nTransitionSubtype == TransitionSubType::FADETOCOLOR) + || (nTransitionSubtype == TransitionSubType::FADEFROMCOLOR) + || (nTransitionSubtype == TransitionSubType::FADEOVERCOLOR))) + { + sal_Int32 nFadeColor = 0; + xPropSet->getPropertyValue("TransitionFadeColor") >>= nFadeColor; + OUStringBuffer sTmpBuf; + ::sax::Converter::convertColor(sTmpBuf, nFadeColor); + aJsonWriter.put("transitionFadeColor", sTmpBuf.makeStringAndClear()); + } } double nTransitionDuration(0.0);
