22#include <com/sun/star/presentation/AnimationEffect.hpp>
23#include <com/sun/star/presentation/AnimationSpeed.hpp>
24#include <com/sun/star/presentation/FadeEffect.hpp>
41 static css::presentation::AnimationSpeed
ConvertDuration(
double fDuration );
44 static bool ConvertPreset( std::u16string_view rPresetId,
const OUString* pPresetSubType, css::presentation::AnimationEffect& rEffect );
45 static bool ConvertAnimationEffect(
const css::presentation::AnimationEffect& rEffect, OUString& rPresetId, OUString& rPresetSubType );
this helper class gives various methods to convert effects from OOo 1.1 and below to and from OOo 2....
static void DocumentLoaded(SdDrawDocument &rDoc)
static void SetAnimationPath(SvxShape *pShape, SdrPathObj const *pPathObj)
static sal_Int32 GetDimColor(SvxShape *pShape)
static css::presentation::AnimationSpeed ConvertDuration(double fDuration)
static double ConvertAnimationSpeed(css::presentation::AnimationSpeed eSpeed)
static void SetTextAnimationEffect(SvxShape *pShape, css::presentation::AnimationEffect eValue)
static bool GetDimPrevious(SvxShape *pShape)
static void CreateAnimatedGroup(SdrObjGroup const &rGroupObj, SdPage &rPage)
static void SetAnimationSpeed(SvxShape *pShape, css::presentation::AnimationSpeed eSpeed)
static OUString GetSoundFile(SvxShape *pShape)
static void SetFadeEffect(SdPage *pPage, css::presentation::FadeEffect eNewEffect)
static css::presentation::FadeEffect GetFadeEffect(const SdPage *pPage)
static bool ConvertPreset(std::u16string_view rPresetId, const OUString *pPresetSubType, css::presentation::AnimationEffect &rEffect)
static void SetAnimationEffect(SvxShape *pShape, css::presentation::AnimationEffect eValue)
static bool GetSoundOn(SvxShape *pShape)
static css::presentation::AnimationSpeed GetAnimationSpeed(SvxShape *pShape)
static void UpdateSoundEffect(SvxShape *pShape, SdAnimationInfo const *pInfo)
static css::presentation::AnimationEffect GetAnimationEffect(SvxShape *pShape)
static bool ConvertAnimationEffect(const css::presentation::AnimationEffect &rEffect, OUString &rPresetId, OUString &rPresetSubType)
static css::presentation::AnimationEffect GetTextAnimationEffect(SvxShape *pShape)
static void SetDimColor(SvxShape *pShape, sal_Int32 nColor)
static void SetDimPrevious(SvxShape *pShape, bool bDimPrevious)
static bool GetDimHide(SvxShape *pShape)
static void SetPresentationOrder(SvxShape *pShape, sal_Int32 nNewPos)
static sal_Int32 GetPresentationOrder(SvxShape *pShape)
Returns the position of the given SdrObject in the Presentation order.
static void SetDimHide(SvxShape *pShape, bool bDimHide)