34using ::com::sun::star::uno::Reference;
35using ::com::sun::star::uno::Exception;
53 mpImpl->mbNewNodeSet =
false;
74 if( !
mpImpl->mbNewNodeSet )
76 if(
mpImpl->mpPage->mxAnimationNode.is() )
78 mpImpl->mbNewNodeSet =
true;
81 Reference< XAnimationNode > xOldNode;
82 if(
mpImpl->mxOldNode.is() )
85 mpImpl->mpPage->setAnimationNode( xOldNode );
97 Reference< XAnimationNode > xNewNode;
98 if(
mpImpl->mxNewNode.is() )
100 mpImpl->mpPage->setAnimationNode( xNewNode );
110 return SdResId(STR_UNDO_ANIMATION);
124 if( !(
mpPage && xNode.is()) )
169 mpImpl->msRedoPath = pEffect->getPath();
170 pEffect->setPath(
mpImpl->msUndoPath );
179 pEffect->setPath(
mpImpl->msRedoPath );
185 return SdResId(STR_UNDO_ANIMATION);
216 mpImpl->mpPage = pThePage;
218 mpImpl->mnNewTransitionType = -1;
236 if(
mpImpl->mnNewTransitionType == -1 )
238 mpImpl->mnNewTransitionType =
mpImpl->mpPage->mnTransitionType;
239 mpImpl->mnNewTransitionSubtype =
mpImpl->mpPage->mnTransitionSubtype;
240 mpImpl->mbNewTransitionDirection =
mpImpl->mpPage->mbTransitionDirection;
241 mpImpl->mnNewTransitionFadeColor =
mpImpl->mpPage->mnTransitionFadeColor;
242 mpImpl->mfNewTransitionDuration =
mpImpl->mpPage->mfTransitionDuration;
249 mpImpl->mpPage->mnTransitionType =
mpImpl->mnOldTransitionType;
250 mpImpl->mpPage->mnTransitionSubtype =
mpImpl->mnOldTransitionSubtype;
251 mpImpl->mpPage->mbTransitionDirection =
mpImpl->mbOldTransitionDirection;
252 mpImpl->mpPage->mnTransitionFadeColor =
mpImpl->mnOldTransitionFadeColor;
253 mpImpl->mpPage->mfTransitionDuration =
mpImpl->mfOldTransitionDuration;
262 mpImpl->mpPage->mnTransitionType =
mpImpl->mnNewTransitionType;
263 mpImpl->mpPage->mnTransitionSubtype =
mpImpl->mnNewTransitionSubtype;
264 mpImpl->mpPage->mbTransitionDirection =
mpImpl->mbNewTransitionDirection;
265 mpImpl->mpPage->mnTransitionFadeColor =
mpImpl->mnNewTransitionFadeColor;
266 mpImpl->mpPage->mfTransitionDuration =
mpImpl->mfNewTransitionDuration;
275 return SdResId(STR_UNDO_SLIDE_PARAMS);
css::uno::Reference< css::animations::XAnimationNode > const & getAnimationNode()
returns the main animation node
OUString maSoundFile
Path to sound file (MS-DOS notation).
double mfTransitionDuration
std::shared_ptr< sd::MainSequence > const & getMainSequence()
returns a helper class to manipulate effects inside the main sequence
css::uno::Reference< css::animations::XAnimationNode > mxAnimationNode
holds the smil animation sequences for this page
bool mbTransitionDirection
sal_Int32 mnTransitionFadeColor
sal_Int16 mnTransitionSubtype
sal_Int16 mnTransitionType
bool mbSoundOn
with / without sound.
UndoAnimationPath(SdDrawDocument *pDoc, SdPage *pThePage, const css::uno::Reference< css::animations::XAnimationNode > &xNode)
virtual ~UndoAnimationPath() override
virtual OUString GetComment() const override
virtual void Redo() override
virtual void Undo() override
std::unique_ptr< UndoAnimationPathImpl > mpImpl
std::unique_ptr< UndoAnimationImpl > mpImpl
virtual OUString GetComment() const override
virtual void Redo() override
virtual void Undo() override
virtual ~UndoAnimation() override
UndoAnimation(SdDrawDocument *pDoc, SdPage *pThePage)
virtual ~UndoTransition() override
virtual OUString GetComment() const override
UndoTransition(SdDrawDocument *pDoc, SdPage *pThePage)
std::unique_ptr< UndoTransitionImpl > mpImpl
virtual void Undo() override
virtual void Redo() override
#define TOOLS_WARN_EXCEPTION(area, stream)
std::shared_ptr< CustomAnimationEffect > CustomAnimationEffectPtr
Reference< XAnimationNode > Clone(const Reference< XAnimationNode > &xSourceNode, const SdPage *pSource, const SdPage *pTarget)
OUString SdResId(TranslateId aId)
Reference< XAnimationNode > mxNewNode
Reference< XAnimationNode > mxOldNode
CustomAnimationEffectPtr getEffect() const
UndoAnimationPathImpl(const UndoAnimationPathImpl &)=delete
UndoAnimationPathImpl(SdPage *pThePage, const css::uno::Reference< css::animations::XAnimationNode > &xNode)
UndoAnimationPathImpl & operator=(const UndoAnimationPathImpl &)=delete
sal_Int32 mnOldTransitionFadeColor
sal_Int16 mnNewTransitionSubtype
sal_Int32 mnNewTransitionFadeColor
sal_Int16 mnOldTransitionSubtype
sal_Int16 mnNewTransitionType
double mfNewTransitionDuration
bool mbNewTransitionDirection
sal_Int16 mnOldTransitionType
double mfOldTransitionDuration
bool mbOldTransitionDirection