22#include <com/sun/star/animations/TransitionType.hpp>
23#include <com/sun/star/animations/TransitionSubType.hpp>
24#include <com/sun/star/animations/XTransitionFilter.hpp>
31#include <oox/token/namespaces.hxx>
32#include <oox/token/properties.hxx>
33#include <oox/token/tokens.hxx>
45 , mbTransitionDirectionNormal( true )
46 , mnAnimationSpeed( AnimationSpeed_FAST )
47 , mfTransitionDurationInSeconds( -1.0 )
58 , mbTransitionDirectionNormal( true )
59 , mnAnimationSpeed( AnimationSpeed_FAST )
60 , mfTransitionDurationInSeconds( -1.0 )
104 xFilter->setFadeColor( 0 );
105 xFilter->setMode(
mbMode );
144 : ( fDurationInSeconds >= 1.0 ) ? AnimationSpeed_SLOW : AnimationSpeed_MEDIUM;
150 sal_Int16 nOdpDirection;
152 if( nOdpDirection == 0 )
156 return nOdpDirection;
161 sal_Int16 nOdpDirection;
165 nOdpDirection = TransitionSubType::FROMTOP;
168 nOdpDirection = TransitionSubType::FROMLEFT;
171 nOdpDirection = TransitionSubType::FROMRIGHT;
174 nOdpDirection = TransitionSubType::FROMBOTTOM;
180 return nOdpDirection;
185 sal_Int16 nOdpDirection;
190 nOdpDirection = TransitionSubType::TOPTOBOTTOM;
194 nOdpDirection = TransitionSubType::LEFTTORIGHT;
200 return nOdpDirection;
205 bool bOdpDirection =
true;
210 bOdpDirection =
false;
213 return bOdpDirection;
218 sal_Int16 nOdpDirection;
222 nOdpDirection = TransitionSubType::FROMBOTTOMRIGHT;
225 nOdpDirection = TransitionSubType::FROMBOTTOMLEFT;
228 nOdpDirection = TransitionSubType::FROMTOPRIGHT;
231 nOdpDirection = TransitionSubType::FROMTOPLEFT;
237 return nOdpDirection;
246 nOdpDir = TransitionSubType::VERTICAL;
249 nOdpDir = TransitionSubType::HORIZONTAL;
262 case PPT_TOKEN( blinds ):
266 case PPT_TOKEN( checker ):
280 case PPT_TOKEN( comb ):
294 case PPT_TOKEN( cover ):
298 case PPT_TOKEN( pull ):
303 case PPT_TOKEN( cut ):
309 SAL_WARN(
"oox.ppt",
"OOX: cut transition fallback." );
311 case PPT_TOKEN( fade ):
322 case PPT_TOKEN( push ):
326 case PPT_TOKEN( wipe ):
331 case PPT_TOKEN(
split ):
334 if( param2 == XML_in )
340 case PPT_TOKEN( wheel ):
362 "strange number of blades for the wheel-wipe " << param1);
367 else if( param1 > 4 )
371 else if( param1 == 0)
378 case PPT_TOKEN( randomBar ):
382 case PPT_TOKEN( circle ):
386 case PPT_TOKEN( diamond ):
390 case PPT_TOKEN( dissolve ):
394 case PPT_TOKEN( newsflash ):
398 case PPT_TOKEN( plus ):
402 case PPT_TOKEN( random ):
406 case PPT_TOKEN( wedge ):
410 case PPT_TOKEN( zoom ):
414 case P14_TOKEN(prism):
421 case P14_TOKEN(vortex):
425 case P14_TOKEN(ripple):
429 case P14_TOKEN(glitter):
433 case P14_TOKEN(honeycomb):
437 case P14_TOKEN(flash):
442 case PPT_TOKEN(strips):
454 if (sPresetTransition ==
u"fallOver")
A helper that maps property identifiers to property values.
bool setProperty(sal_Int32 nPropId, Type &&rValue)
Sets the specified property to the passed value.
bool mbTransitionDirectionNormal
::sal_Int16 mnTransitionSubType
static sal_Int16 ooxToOdpDirection(::sal_Int32 nOoxType)
void setPresetTransition(std::u16string_view sPresetTransition)
::sal_Int32 mnTransitionFadeColor
void setOoxTransitionSpeed(sal_Int32 nToken)
Set one of standard values for slide transition duration.
void setOoxTransitionType(::sal_Int32 OoxType, ::sal_Int32 param1, ::sal_Int32 param2)
double mfTransitionDurationInSeconds
css::presentation::AnimationSpeed mnAnimationSpeed
static sal_Int16 ooxToOdpBorderDirections(::sal_Int32 nOoxType)
static sal_Int16 ooxToOdpSideDirections(::sal_Int32 nOoxType)
void setTransitionFilterProperties(const css::uno::Reference< css::animations::XTransitionFilter > &xFilter)
void setSlideProperties(PropertyMap &props)
::sal_Int32 mnAdvanceTime
static sal_Int16 ooxToOdpCornerDirections(::sal_Int32 nOoxType)
static sal_Int16 ooxToOdpEightDirections(::sal_Int32 nOoxType)
::sal_Int16 mnTransitionType
bool mbMode
https://api.libreoffice.org/docs/common/ref/com/sun/star/animations/XTransitionFilter....
static bool ooxToOdpSideDirectionsDirectionNormal(::sal_Int32 nOoxType)
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
#define TOOLS_WARN_EXCEPTION(area, stream)
#define SAL_WARN(area, stream)
#define SAL_INFO(area, stream)
std::vector< OUString > split(std::u16string_view rStr, sal_Unicode cSeparator)
sal_Int16 mnTransitionType
RGBColor mnTransitionFadeColor
sal_Int16 mnTransitionSubType
static const transition * find(std::u16string_view rName)
constexpr OUStringLiteral PROP_Change
constexpr OUStringLiteral PROP_Speed
constexpr OUStringLiteral PROP_TransitionDirection
constexpr OUStringLiteral PROP_TransitionType
constexpr OUStringLiteral PROP_TransitionFadeColor
constexpr OUStringLiteral PROP_TransitionSubtype