/** returns a helper class to manipulate effects inside the main sequence */
std::shared_ptr< sd::MainSequence > const & SdPage::getMainSequence()
{ if (nullptr == mpMainSequence)
mpMainSequence = std::make_shared<sd::MainSequence>( getAnimationNode() );
/** Notify that the object has been renamed and the animation effect has to update. */ void SdPage::notifyObjectRenamed(const SdrObject* pObj)
{ if (pObj && hasAnimationNode())
{
Reference<XShape> xShape(const_cast<SdrObject*>(pObj)->getUnoShape(), UNO_QUERY);
if (xShape.is() && getMainSequence()->hasEffect(xShape))
getMainSequence()->notify_change();
}
}
FadeEffect SdPage::GetFadeEffect() const
{ return EffectMigration::GetFadeEffect( this );
}
/** callback from the sd::View when a new paragraph for one object on this page is created */ void SdPage::onParagraphInserted( const ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj )
{ if( mxAnimationNode.is() )
{
ParagraphTarget aTarget;
aTarget.Shape.set( pObj->getUnoShape(), UNO_QUERY ); /* FIXME: Paragraph should be sal_Int32, though more than 64k
* paragraphs at a shape are unlikely... */
aTarget.Paragraph = static_cast<sal_Int16>(pOutliner->GetAbsPos( pPara ));
/** callback from the sd::View when a paragraph from one object on this page is removed */ void SdPage::onParagraphRemoving( const ::Outliner* pOutliner, Paragraph const * pPara, SdrObject* pObj )
{ if( mxAnimationNode.is() )
{
ParagraphTarget aTarget;
aTarget.Shape.set( pObj->getUnoShape(), UNO_QUERY ); /* FIXME: Paragraph should be sal_Int32, though more than 64k
* paragraphs at a shape are unlikely... */
aTarget.Paragraph = static_cast<sal_Int16>(pOutliner->GetAbsPos( pPara ));
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.