LibreOffice Module sd (master) 1
|
#include <CustomAnimationEffect.hxx>
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 EffectSequence & | getSequence () |
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 |
Definition at line 263 of file CustomAnimationEffect.hxx.
sd::EffectSequenceHelper::EffectSequenceHelper | ( | ) |
Definition at line 1637 of file CustomAnimationEffect.cxx.
References DEFAULT.
sd::EffectSequenceHelper::EffectSequenceHelper | ( | css::uno::Reference< css::animations::XTimeContainer > | xSequenceRoot | ) |
Definition at line 1642 of file CustomAnimationEffect.cxx.
References create(), DEFAULT, and mxSequenceRoot.
|
virtual |
Definition at line 1649 of file CustomAnimationEffect.cxx.
References reset().
void sd::EffectSequenceHelper::addListener | ( | ISequenceListener * | pListener | ) |
Definition at line 2857 of file CustomAnimationEffect.cxx.
References maListeners.
void sd::EffectSequenceHelper::append | ( | const CustomAnimationEffectPtr & | pEffect | ) |
Definition at line 1668 of file CustomAnimationEffect.cxx.
SAL_DLLPRIVATE CustomAnimationEffectPtr sd::EffectSequenceHelper::append | ( | const CustomAnimationPresetPtr & | pDescriptor, |
const css::uno::Any & | rTarget, | ||
double | fDuration | ||
) |
SAL_DLLPRIVATE CustomAnimationEffectPtr sd::EffectSequenceHelper::append | ( | const SdrPathObj & | rPathObj, |
const css::uno::Any & | rTarget, | ||
double | fDuration, | ||
const OUString & | rPresetId | ||
) |
void sd::EffectSequenceHelper::create | ( | const css::uno::Reference< css::animations::XAnimationNode > & | xNode | ) |
Definition at line 2884 of file CustomAnimationEffect.cxx.
References createEffectsequence(), DBG_ASSERT, Exception, and TOOLS_WARN_EXCEPTION.
Referenced by sd::MainSequence::createMainSequence(), and EffectSequenceHelper().
void sd::EffectSequenceHelper::createEffects | ( | const css::uno::Reference< css::animations::XAnimationNode > & | xNode | ) |
Definition at line 2931 of file CustomAnimationEffect.cxx.
References DBG_ASSERT, Exception, maEffects, processAfterEffect(), and TOOLS_WARN_EXCEPTION.
Referenced by 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().
CustomAnimationTextGroupPtr sd::EffectSequenceHelper::createTextGroup | ( | const CustomAnimationEffectPtr & | pEffect, |
sal_Int32 | nTextGrouping, | ||
double | fTextGroupingAuto, | ||
bool | bAnimateForm, | ||
bool | bTextReverse | ||
) |
Definition at line 2450 of file CustomAnimationEffect.cxx.
References Any, createTextGroupParagraphEffects(), maGroupMap, notify_listeners(), and xTarget.
Referenced by sd::CustomAnimationPane::changeSelection().
|
protected |
Definition at line 2509 of file CustomAnimationEffect.cxx.
References Any, Exception, find(), i, maEffects, notify_listeners(), TOOLS_WARN_EXCEPTION, and xTarget.
Referenced by createTextGroup(), and setTextGrouping().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 2140 of file CustomAnimationEffect.cxx.
References maEffects.
Referenced by sd::MainSequence::disposeShape().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 2264 of file CustomAnimationEffect.cxx.
References Any, DBG_ASSERT, find(), sd::isParagraphTargetTextEmpty(), maEffects, and rebuild().
Referenced by sd::MainSequence::disposeTextRange().
EffectSequence::iterator sd::EffectSequenceHelper::find | ( | const CustomAnimationEffectPtr & | pEffect | ) |
Definition at line 2101 of file CustomAnimationEffect.cxx.
References maEffects.
Referenced by createTextGroupParagraphEffects(), disposeTextRange(), sd::CustomAnimationPane::moveSelection(), moveToBeforeEffect(), setAnimateForm(), and setTextReverse().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 2106 of file CustomAnimationEffect.cxx.
References maEffects.
Referenced by sd::MainSequence::findEffect().
CustomAnimationTextGroupPtr sd::EffectSequenceHelper::findGroup | ( | sal_Int32 | nGroupId | ) |
Definition at line 2405 of file CustomAnimationEffect.cxx.
References maGroupMap.
Referenced by sd::CustomAnimationPane::changeSelection(), sd::CustomAnimationPane::createSelectionSet(), and updateTextGroups().
|
inline |
Definition at line 300 of file CustomAnimationEffect.hxx.
Referenced by sd::CustomAnimationPresets::importEffects().
|
inline |
Definition at line 287 of file CustomAnimationEffect.hxx.
Referenced by sd::MainSequence::getEffectFromOffset(), and sd::MainSequence::getOffsetFromEffect().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 2127 of file CustomAnimationEffect.cxx.
References maEffects.
Referenced by sd::MainSequence::getEffectFromOffset().
|
inline |
Definition at line 301 of file CustomAnimationEffect.hxx.
Referenced by sd::CustomAnimationPresets::importEffects().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 2118 of file CustomAnimationEffect.cxx.
References maEffects.
Referenced by sd::MainSequence::getOffsetFromEffect().
|
protected |
Definition at line 2168 of file CustomAnimationEffect.cxx.
References hasEffect().
Referenced by insertTextRange(), and onTextChanged().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 1663 of file CustomAnimationEffect.cxx.
References mxSequenceRoot.
Referenced by sd::MainSequence::getRootNode().
|
inline |
Definition at line 304 of file CustomAnimationEffect.hxx.
Referenced by sd::CustomAnimationPane::moveSelection().
|
inline |
Definition at line 320 of file CustomAnimationEffect.hxx.
Referenced by sd::CustomAnimationPane::createSelectionSet().
|
inline |
Definition at line 322 of file CustomAnimationEffect.hxx.
Referenced by sd::CustomAnimationPane::createSelectionSet().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 2162 of file CustomAnimationEffect.cxx.
References maEffects.
Referenced by getParagraphNumberingLevels(), and sd::MainSequence::hasEffect().
|
protectedvirtual |
Reimplemented in sd::InteractiveSequence, and sd::MainSequence.
Definition at line 1839 of file CustomAnimationEffect.cxx.
References a, aEvent, Any, Exception, maEffects, mxEventSource, mxSequenceRoot, sd::stl_process_after_effect_node_func(), TOOLS_WARN_EXCEPTION, and updateTextGroups().
Referenced by sd::InteractiveSequence::implRebuild(), sd::MainSequence::implRebuild(), and rebuild().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 2205 of file CustomAnimationEffect.cxx.
References getParagraphNumberingLevels(), maEffects, and rebuild().
Referenced by sd::MainSequence::insertTextRange().
void sd::EffectSequenceHelper::moveToBeforeEffect | ( | const CustomAnimationEffectPtr & | pEffect, |
const CustomAnimationEffectPtr & | pInsertBefore | ||
) |
Definition at line 1820 of file CustomAnimationEffect.cxx.
|
protected |
Definition at line 2878 of file CustomAnimationEffect.cxx.
References maListeners.
Referenced by sd::MainSequence::createMainSequence(), createTextGroup(), createTextGroupParagraphEffects(), sd::MainSequence::implRebuild(), sd::MainSequence::notify_change(), setAnimateForm(), setTextGrouping(), setTextGroupingAuto(), and setTextReverse().
|
virtual |
Reimplemented in sd::MainSequence.
Definition at line 3347 of file CustomAnimationEffect.cxx.
References getParagraphNumberingLevels(), maEffects, and rebuild().
Referenced by sd::MainSequence::onTextChanged().
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().
|
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().
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().
void sd::EffectSequenceHelper::removeListener | ( | ISequenceListener * | pListener | ) |
Definition at line 2863 of file CustomAnimationEffect.cxx.
References maListeners.
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.
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().
|
protectedvirtual |
Reimplemented in sd::MainSequence.
Definition at line 1654 of file CustomAnimationEffect.cxx.
References maEffects.
Referenced by sd::MainSequence::reset(), and ~EffectSequenceHelper().
void sd::EffectSequenceHelper::setAnimateForm | ( | const CustomAnimationTextGroupPtr & | pTextGroup, |
bool | bAnimateForm | ||
) |
Definition at line 2675 of file CustomAnimationEffect.cxx.
References Any, DBG_ASSERT, find(), maEffects, notify_listeners(), remove(), and SAL_WARN_IF.
Referenced by sd::CustomAnimationPane::changeSelection().
void sd::EffectSequenceHelper::setTextGrouping | ( | const CustomAnimationTextGroupPtr & | pTextGroup, |
sal_Int32 | nTextGrouping | ||
) |
Definition at line 2603 of file CustomAnimationEffect.cxx.
References createTextGroupParagraphEffects(), notify_listeners(), and remove().
Referenced by sd::CustomAnimationPane::changeSelection().
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().
void sd::EffectSequenceHelper::setTextReverse | ( | const CustomAnimationTextGroupPtr & | pTextGroup, |
bool | bAnimateForm | ||
) |
Definition at line 2824 of file CustomAnimationEffect.cxx.
References find(), maEffects, and notify_listeners().
Referenced by sd::CustomAnimationPane::changeSelection().
|
inline |
Definition at line 323 of file CustomAnimationEffect.hxx.
|
protected |
Definition at line 2416 of file CustomAnimationEffect.cxx.
References findGroup(), maEffects, and maGroupMap.
Referenced by sd::MainSequence::createMainSequence(), and implRebuild().
|
friend |
Definition at line 265 of file CustomAnimationEffect.hxx.
|
protected |
Definition at line 342 of file CustomAnimationEffect.hxx.
Referenced by append(), createEffects(), createTextGroupParagraphEffects(), disposeShape(), disposeTextRange(), find(), findEffect(), getEffectFromOffset(), getOffsetFromEffect(), hasEffect(), implRebuild(), insertTextRange(), moveToBeforeEffect(), onTextChanged(), processAfterEffect(), remove(), reset(), setAnimateForm(), setTextReverse(), sd::MainSequence::setTrigger(), and updateTextGroups().
|
protected |
Definition at line 344 of file CustomAnimationEffect.hxx.
Referenced by createTextGroup(), findGroup(), and updateTextGroups().
|
protected |
Definition at line 343 of file CustomAnimationEffect.hxx.
Referenced by addListener(), notify_listeners(), and removeListener().
|
protected |
Definition at line 345 of file CustomAnimationEffect.hxx.
Referenced by sd::MainSequence::init(), and sd::InteractiveSequence::InteractiveSequence().
|
protected |
Definition at line 346 of file CustomAnimationEffect.hxx.
Referenced by implRebuild(), and sd::InteractiveSequence::InteractiveSequence().
|
protected |
Definition at line 341 of file CustomAnimationEffect.hxx.
Referenced by sd::MainSequence::createInteractiveSequence(), sd::MainSequence::createMainSequence(), EffectSequenceHelper(), getRootNode(), implRebuild(), sd::MainSequence::implRebuild(), and sd::InteractiveSequence::InteractiveSequence().