20#include <com/sun/star/animations/ParallelTimeContainer.hpp>
21#include <com/sun/star/presentation/EffectNodeType.hpp>
22#include <com/sun/star/presentation/ParagraphTarget.hpp>
35using ::com::sun::star::drawing::XShape;
51 mxAnimationNode.set( ParallelTimeContainer::create( ::comphelper::getProcessComponentContext() ), UNO_QUERY_THROW );
52 Sequence< css::beans::NamedValue > aUserData
53 { {
"node-type", css::uno::Any(css::presentation::EffectNodeType::TIMING_ROOT) } };
74 Reference< XShape > xShape(
const_cast<SdrObject*
>(pObj)->getUnoShape(), UNO_QUERY );
86 Reference<XShape> xShape(
const_cast<SdrObject*
>(pObj)->getUnoShape(), UNO_QUERY);
100 EffectMigration::SetFadeEffect(
this, eNewEffect );
105 return EffectMigration::GetFadeEffect(
this );
113 ParagraphTarget aTarget;
114 aTarget.Shape.set( pObj->
getUnoShape(), UNO_QUERY );
117 aTarget.Paragraph =
static_cast<sal_Int16
>(pOutliner->GetAbsPos( pPara ));
128 ParagraphTarget aTarget;
129 aTarget.Shape.set( pObj->
getUnoShape(), UNO_QUERY );
132 aTarget.Paragraph =
static_cast<sal_Int16
>(pOutliner->GetAbsPos( pPara ));
143 Reference< XShape > xObj( pObj->
getUnoShape(), UNO_QUERY );
152 Reference< XAnimationNode > xClonedNode(
155 if( xClonedNode.is() )
void cloneAnimations(SdPage &rTargetPage) const
clone the animations from this and set them to rTargetPage TTTT: Order is strange,...
css::uno::Reference< css::animations::XAnimationNode > const & getAnimationNode()
returns the main animation node
void onParagraphRemoving(const ::Outliner *pOutliner, Paragraph const *pPara, SdrObject *pObj)
callback from the sd::View when a paragraph from one object on this page is removed
void SetFadeEffect(css::presentation::FadeEffect eNewEffect)
void notifyObjectRenamed(const SdrObject *pObj)
Notify that the object has been renamed and the animation effects has to update.
std::shared_ptr< sd::MainSequence > const & getMainSequence()
returns a helper class to manipulate effects inside the main sequence
std::shared_ptr< sd::MainSequence > mpMainSequence
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 hasAnimationNode() const
quick check if this slide has an animation node.
void onEndTextEdit(SdrObject *pObj)
callback from the sd::View when an object just left text edit mode
void removeAnimations(const SdrObject *pObj)
removes all custom animations for the given shape
void setAnimationNode(css::uno::Reference< css::animations::XAnimationNode > const &xNode)
sets the main animation node
css::presentation::FadeEffect GetFadeEffect() const
void onParagraphInserted(const ::Outliner *pOutliner, Paragraph const *pPara, SdrObject *pObj)
callback from the sd::View when a new paragraph for one object on this page is created
virtual css::uno::Reference< css::drawing::XShape > getUnoShape()
Reference< XAnimationNode > Clone(const Reference< XAnimationNode > &xSourceNode, const SdPage *pSource, const SdPage *pTarget)