LibreOffice Module sd (master) 1
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
sd::EffectSequenceHelper Class Reference

#include <CustomAnimationEffect.hxx>

Inheritance diagram for sd::EffectSequenceHelper:
[legend]

Public Member Functions

SAL_DLLPRIVATE EffectSequenceHelper ()
 
SAL_DLLPRIVATE EffectSequenceHelper (css::uno::Reference< css::animations::XTimeContainer > xSequenceRoot)
 
virtual SAL_DLLPRIVATE ~EffectSequenceHelper ()
 
virtual SAL_DLLPRIVATE css::uno::Reference< css::animations::XAnimationNode > getRootNode ()
 
SAL_DLLPRIVATE CustomAnimationEffectPtr append (const CustomAnimationPresetPtr &pDescriptor, const css::uno::Any &rTarget, double fDuration)
 
SAL_DLLPRIVATE CustomAnimationEffectPtr append (const SdrPathObj &rPathObj, const css::uno::Any &rTarget, double fDuration, const OUString &rPresetId)
 
void append (const CustomAnimationEffectPtr &pEffect)
 
SAL_DLLPRIVATE void replace (const CustomAnimationEffectPtr &pEffect, const CustomAnimationPresetPtr &pDescriptor, double fDuration)
 
SAL_DLLPRIVATE void replace (const CustomAnimationEffectPtr &pEffect, const CustomAnimationPresetPtr &pDescriptor, const OUString &rPresetSubType, double fDuration)
 
SAL_DLLPRIVATE void remove (const CustomAnimationEffectPtr &pEffect)
 
SAL_DLLPRIVATE void moveToBeforeEffect (const CustomAnimationEffectPtr &pEffect, const CustomAnimationEffectPtr &pInsertBefore)
 
SAL_DLLPRIVATE void create (const css::uno::Reference< css::animations::XAnimationNode > &xNode)
 
SAL_DLLPRIVATE void createEffectsequence (const css::uno::Reference< css::animations::XAnimationNode > &xNode)
 
SAL_DLLPRIVATE void processAfterEffect (const css::uno::Reference< css::animations::XAnimationNode > &xNode)
 
SAL_DLLPRIVATE void createEffects (const css::uno::Reference< css::animations::XAnimationNode > &xNode)
 
SAL_DLLPRIVATE sal_Int32 getCount () const
 
virtual SAL_DLLPRIVATE CustomAnimationEffectPtr findEffect (const css::uno::Reference< css::animations::XAnimationNode > &xNode) const
 
virtual SAL_DLLPRIVATE bool disposeShape (const css::uno::Reference< css::drawing::XShape > &xShape)
 
virtual SAL_DLLPRIVATE void insertTextRange (const css::uno::Any &aTarget)
 
virtual SAL_DLLPRIVATE void disposeTextRange (const css::uno::Any &aTarget)
 
virtual SAL_DLLPRIVATE bool hasEffect (const css::uno::Reference< css::drawing::XShape > &xShape)
 
virtual SAL_DLLPRIVATE void onTextChanged (const css::uno::Reference< css::drawing::XShape > &xShape)
 
virtual SAL_DLLPRIVATE void rebuild ()
 this method rebuilds the animation nodes More...
 
SAL_DLLPRIVATE EffectSequence::iterator getBegin ()
 
SAL_DLLPRIVATE EffectSequence::iterator getEnd ()
 
SAL_DLLPRIVATE EffectSequence::iterator find (const CustomAnimationEffectPtr &pEffect)
 
SAL_DLLPRIVATE EffectSequencegetSequence ()
 
SAL_DLLPRIVATE void addListener (ISequenceListener *pListener)
 
SAL_DLLPRIVATE void removeListener (ISequenceListener *pListener)
 
SAL_DLLPRIVATE CustomAnimationTextGroupPtr findGroup (sal_Int32 nGroupId)
 
CustomAnimationTextGroupPtr createTextGroup (const CustomAnimationEffectPtr &pEffect, sal_Int32 nTextGrouping, double fTextGroupingAuto, bool bAnimateForm, bool bTextReverse)
 
SAL_DLLPRIVATE void setTextGrouping (const CustomAnimationTextGroupPtr &pTextGroup, sal_Int32 nTextGrouping)
 
SAL_DLLPRIVATE void setAnimateForm (const CustomAnimationTextGroupPtr &pTextGroup, bool bAnimateForm)
 
SAL_DLLPRIVATE void setTextGroupingAuto (const CustomAnimationTextGroupPtr &pTextGroup, double fTextGroupingAuto)
 
SAL_DLLPRIVATE void setTextReverse (const CustomAnimationTextGroupPtr &pTextGroup, bool bAnimateForm)
 
SAL_DLLPRIVATE sal_Int32 getSequenceType () const
 
SAL_DLLPRIVATE const css::uno::Reference< css::drawing::XShape > & getTriggerShape () const
 
SAL_DLLPRIVATE void setTriggerShape (const css::uno::Reference< css::drawing::XShape > &xTrigger)
 
virtual SAL_DLLPRIVATE sal_Int32 getOffsetFromEffect (const CustomAnimationEffectPtr &xEffect) const
 
virtual SAL_DLLPRIVATE CustomAnimationEffectPtr getEffectFromOffset (sal_Int32 nOffset) const
 

Protected Member Functions

virtual SAL_DLLPRIVATE void implRebuild ()
 
virtual SAL_DLLPRIVATE void reset ()
 
SAL_DLLPRIVATE void createTextGroupParagraphEffects (const CustomAnimationTextGroupPtr &pTextGroup, const CustomAnimationEffectPtr &pEffect, bool bUsed)
 
SAL_DLLPRIVATE void notify_listeners ()
 
SAL_DLLPRIVATE void updateTextGroups ()
 
SAL_DLLPRIVATE bool getParagraphNumberingLevels (const css::uno::Reference< css::drawing::XShape > &xShape, std::vector< sal_Int32 > &rParagraphNumberingLevel)
 

Protected Attributes

css::uno::Reference< css::animations::XTimeContainer > mxSequenceRoot
 
EffectSequence maEffects
 
std::list< ISequenceListener * > maListeners
 
CustomAnimationTextGroupMap maGroupMap
 
sal_Int32 mnSequenceType
 
css::uno::Reference< css::drawing::XShape > mxEventSource
 

Friends

class MainSequence
 

Detailed Description

Definition at line 263 of file CustomAnimationEffect.hxx.

Constructor & Destructor Documentation

◆ EffectSequenceHelper() [1/2]

sd::EffectSequenceHelper::EffectSequenceHelper ( )

Definition at line 1637 of file CustomAnimationEffect.cxx.

References DEFAULT.

◆ EffectSequenceHelper() [2/2]

sd::EffectSequenceHelper::EffectSequenceHelper ( css::uno::Reference< css::animations::XTimeContainer >  xSequenceRoot)

Definition at line 1642 of file CustomAnimationEffect.cxx.

References create(), DEFAULT, and mxSequenceRoot.

◆ ~EffectSequenceHelper()

sd::EffectSequenceHelper::~EffectSequenceHelper ( )
virtual

Definition at line 1649 of file CustomAnimationEffect.cxx.

References reset().

Member Function Documentation

◆ addListener()

void sd::EffectSequenceHelper::addListener ( ISequenceListener pListener)

Definition at line 2857 of file CustomAnimationEffect.cxx.

References maListeners.

◆ append() [1/3]

void sd::EffectSequenceHelper::append ( const CustomAnimationEffectPtr pEffect)

Definition at line 1668 of file CustomAnimationEffect.cxx.

References maEffects, and rebuild().

◆ append() [2/3]

SAL_DLLPRIVATE CustomAnimationEffectPtr sd::EffectSequenceHelper::append ( const CustomAnimationPresetPtr pDescriptor,
const css::uno::Any &  rTarget,
double  fDuration 
)

◆ append() [3/3]

SAL_DLLPRIVATE CustomAnimationEffectPtr sd::EffectSequenceHelper::append ( const SdrPathObj rPathObj,
const css::uno::Any &  rTarget,
double  fDuration,
const OUString &  rPresetId 
)

References create(), and remove().

◆ create()

void sd::EffectSequenceHelper::create ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode)

◆ createEffects()

void sd::EffectSequenceHelper::createEffects ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode)

◆ createEffectsequence()

void sd::EffectSequenceHelper::createEffectsequence ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode)

Definition at line 2907 of file CustomAnimationEffect.cxx.

References createEffects(), DBG_ASSERT, Exception, and TOOLS_WARN_EXCEPTION.

Referenced by create().

◆ createTextGroup()

CustomAnimationTextGroupPtr sd::EffectSequenceHelper::createTextGroup ( const CustomAnimationEffectPtr pEffect,
sal_Int32  nTextGrouping,
double  fTextGroupingAuto,
bool  bAnimateForm,
bool  bTextReverse 
)

◆ createTextGroupParagraphEffects()

void sd::EffectSequenceHelper::createTextGroupParagraphEffects ( const CustomAnimationTextGroupPtr pTextGroup,
const CustomAnimationEffectPtr pEffect,
bool  bUsed 
)
protected

◆ disposeShape()

bool sd::EffectSequenceHelper::disposeShape ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

Reimplemented in sd::MainSequence.

Definition at line 2140 of file CustomAnimationEffect.cxx.

References maEffects.

Referenced by sd::MainSequence::disposeShape().

◆ disposeTextRange()

void sd::EffectSequenceHelper::disposeTextRange ( const css::uno::Any &  aTarget)
virtual

◆ find()

EffectSequence::iterator sd::EffectSequenceHelper::find ( const CustomAnimationEffectPtr pEffect)

◆ findEffect()

CustomAnimationEffectPtr sd::EffectSequenceHelper::findEffect ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode) const
virtual

Reimplemented in sd::MainSequence.

Definition at line 2106 of file CustomAnimationEffect.cxx.

References maEffects.

Referenced by sd::MainSequence::findEffect().

◆ findGroup()

CustomAnimationTextGroupPtr sd::EffectSequenceHelper::findGroup ( sal_Int32  nGroupId)

◆ getBegin()

SAL_DLLPRIVATE EffectSequence::iterator sd::EffectSequenceHelper::getBegin ( )
inline

◆ getCount()

SAL_DLLPRIVATE sal_Int32 sd::EffectSequenceHelper::getCount ( ) const
inline

◆ getEffectFromOffset()

CustomAnimationEffectPtr sd::EffectSequenceHelper::getEffectFromOffset ( sal_Int32  nOffset) const
virtual

Reimplemented in sd::MainSequence.

Definition at line 2127 of file CustomAnimationEffect.cxx.

References maEffects.

Referenced by sd::MainSequence::getEffectFromOffset().

◆ getEnd()

SAL_DLLPRIVATE EffectSequence::iterator sd::EffectSequenceHelper::getEnd ( )
inline

◆ getOffsetFromEffect()

sal_Int32 sd::EffectSequenceHelper::getOffsetFromEffect ( const CustomAnimationEffectPtr xEffect) const
virtual

Reimplemented in sd::MainSequence.

Definition at line 2118 of file CustomAnimationEffect.cxx.

References maEffects.

Referenced by sd::MainSequence::getOffsetFromEffect().

◆ getParagraphNumberingLevels()

bool sd::EffectSequenceHelper::getParagraphNumberingLevels ( const css::uno::Reference< css::drawing::XShape > &  xShape,
std::vector< sal_Int32 > &  rParagraphNumberingLevel 
)
protected

Definition at line 2168 of file CustomAnimationEffect.cxx.

References hasEffect().

Referenced by insertTextRange(), and onTextChanged().

◆ getRootNode()

Reference< XAnimationNode > sd::EffectSequenceHelper::getRootNode ( )
virtual

Reimplemented in sd::MainSequence.

Definition at line 1663 of file CustomAnimationEffect.cxx.

References mxSequenceRoot.

Referenced by sd::MainSequence::getRootNode().

◆ getSequence()

SAL_DLLPRIVATE EffectSequence & sd::EffectSequenceHelper::getSequence ( )
inline

Definition at line 304 of file CustomAnimationEffect.hxx.

Referenced by sd::CustomAnimationPane::moveSelection().

◆ getSequenceType()

SAL_DLLPRIVATE sal_Int32 sd::EffectSequenceHelper::getSequenceType ( ) const
inline

◆ getTriggerShape()

SAL_DLLPRIVATE const css::uno::Reference< css::drawing::XShape > & sd::EffectSequenceHelper::getTriggerShape ( ) const
inline

◆ hasEffect()

bool sd::EffectSequenceHelper::hasEffect ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

Reimplemented in sd::MainSequence.

Definition at line 2162 of file CustomAnimationEffect.cxx.

References maEffects.

Referenced by getParagraphNumberingLevels(), and sd::MainSequence::hasEffect().

◆ implRebuild()

void sd::EffectSequenceHelper::implRebuild ( )
protectedvirtual

◆ insertTextRange()

void sd::EffectSequenceHelper::insertTextRange ( const css::uno::Any &  aTarget)
virtual

Reimplemented in sd::MainSequence.

Definition at line 2205 of file CustomAnimationEffect.cxx.

References getParagraphNumberingLevels(), maEffects, and rebuild().

Referenced by sd::MainSequence::insertTextRange().

◆ moveToBeforeEffect()

void sd::EffectSequenceHelper::moveToBeforeEffect ( const CustomAnimationEffectPtr pEffect,
const CustomAnimationEffectPtr pInsertBefore 
)

Definition at line 1820 of file CustomAnimationEffect.cxx.

References find(), maEffects, and rebuild().

◆ notify_listeners()

void sd::EffectSequenceHelper::notify_listeners ( )
protected

◆ onTextChanged()

void sd::EffectSequenceHelper::onTextChanged ( const css::uno::Reference< css::drawing::XShape > &  xShape)
virtual

Reimplemented in sd::MainSequence.

Definition at line 3347 of file CustomAnimationEffect.cxx.

References getParagraphNumberingLevels(), maEffects, and rebuild().

Referenced by sd::MainSequence::onTextChanged().

◆ processAfterEffect()

void sd::EffectSequenceHelper::processAfterEffect ( const css::uno::Reference< css::animations::XAnimationNode > &  xNode)

Definition at line 2978 of file CustomAnimationEffect.cxx.

References Exception, maEffects, and TOOLS_WARN_EXCEPTION.

Referenced by createEffects().

◆ rebuild()

void sd::EffectSequenceHelper::rebuild ( )
virtual

this method rebuilds the animation nodes

Reimplemented in sd::InteractiveSequence, and sd::MainSequence.

Definition at line 1834 of file CustomAnimationEffect.cxx.

References implRebuild().

Referenced by append(), disposeTextRange(), insertTextRange(), moveToBeforeEffect(), onTextChanged(), remove(), and replace().

◆ remove()

void sd::EffectSequenceHelper::remove ( const CustomAnimationEffectPtr pEffect)

Definition at line 1809 of file CustomAnimationEffect.cxx.

References maEffects, and rebuild().

Referenced by sd::IMPL_LINK_NOARG(), setAnimateForm(), and setTextGrouping().

◆ removeListener()

void sd::EffectSequenceHelper::removeListener ( ISequenceListener pListener)

Definition at line 2863 of file CustomAnimationEffect.cxx.

References maListeners.

◆ replace() [1/2]

void sd::EffectSequenceHelper::replace ( const CustomAnimationEffectPtr pEffect,
const CustomAnimationPresetPtr pDescriptor,
const OUString &  rPresetSubType,
double  fDuration 
)

Definition at line 1781 of file CustomAnimationEffect.cxx.

References Exception, rebuild(), and TOOLS_WARN_EXCEPTION.

◆ replace() [2/2]

void sd::EffectSequenceHelper::replace ( const CustomAnimationEffectPtr pEffect,
const CustomAnimationPresetPtr pDescriptor,
double  fDuration 
)

Definition at line 1804 of file CustomAnimationEffect.cxx.

References replace().

Referenced by sd::IMPL_LINK_NOARG(), and replace().

◆ reset()

void sd::EffectSequenceHelper::reset ( )
protectedvirtual

Reimplemented in sd::MainSequence.

Definition at line 1654 of file CustomAnimationEffect.cxx.

References maEffects.

Referenced by sd::MainSequence::reset(), and ~EffectSequenceHelper().

◆ setAnimateForm()

void sd::EffectSequenceHelper::setAnimateForm ( const CustomAnimationTextGroupPtr pTextGroup,
bool  bAnimateForm 
)

◆ setTextGrouping()

void sd::EffectSequenceHelper::setTextGrouping ( const CustomAnimationTextGroupPtr pTextGroup,
sal_Int32  nTextGrouping 
)

◆ setTextGroupingAuto()

void sd::EffectSequenceHelper::setTextGroupingAuto ( const CustomAnimationTextGroupPtr pTextGroup,
double  fTextGroupingAuto 
)

Definition at line 2747 of file CustomAnimationEffect.cxx.

References notify_listeners().

Referenced by sd::CustomAnimationPane::changeSelection().

◆ setTextReverse()

void sd::EffectSequenceHelper::setTextReverse ( const CustomAnimationTextGroupPtr pTextGroup,
bool  bAnimateForm 
)

◆ setTriggerShape()

SAL_DLLPRIVATE void sd::EffectSequenceHelper::setTriggerShape ( const css::uno::Reference< css::drawing::XShape > &  xTrigger)
inline

Definition at line 323 of file CustomAnimationEffect.hxx.

◆ updateTextGroups()

void sd::EffectSequenceHelper::updateTextGroups ( )
protected

Definition at line 2416 of file CustomAnimationEffect.cxx.

References findGroup(), maEffects, and maGroupMap.

Referenced by sd::MainSequence::createMainSequence(), and implRebuild().

Friends And Related Function Documentation

◆ MainSequence

friend class MainSequence
friend

Definition at line 265 of file CustomAnimationEffect.hxx.

Member Data Documentation

◆ maEffects

EffectSequence sd::EffectSequenceHelper::maEffects
protected

◆ maGroupMap

CustomAnimationTextGroupMap sd::EffectSequenceHelper::maGroupMap
protected

Definition at line 344 of file CustomAnimationEffect.hxx.

Referenced by createTextGroup(), findGroup(), and updateTextGroups().

◆ maListeners

std::list< ISequenceListener* > sd::EffectSequenceHelper::maListeners
protected

Definition at line 343 of file CustomAnimationEffect.hxx.

Referenced by addListener(), notify_listeners(), and removeListener().

◆ mnSequenceType

sal_Int32 sd::EffectSequenceHelper::mnSequenceType
protected

◆ mxEventSource

css::uno::Reference< css::drawing::XShape > sd::EffectSequenceHelper::mxEventSource
protected

◆ mxSequenceRoot

css::uno::Reference< css::animations::XTimeContainer > sd::EffectSequenceHelper::mxSequenceRoot
protected

The documentation for this class was generated from the following files: