LibreOffice Module sd (master) 1
|
#include <CustomAnimationEffect.hxx>
Public Member Functions | |
MainSequence () | |
MainSequence (const css::uno::Reference< css::animations::XAnimationNode > &xTimingRootNode) | |
virtual | ~MainSequence () override |
virtual css::uno::Reference< css::animations::XAnimationNode > | getRootNode () override |
void | reset (const css::uno::Reference< css::animations::XAnimationNode > &xTimingRootNode) |
virtual void | rebuild () override |
this method rebuilds the animation nodes More... | |
virtual CustomAnimationEffectPtr | findEffect (const css::uno::Reference< css::animations::XAnimationNode > &xNode) const override |
virtual bool | disposeShape (const css::uno::Reference< css::drawing::XShape > &xShape) override |
virtual void | insertTextRange (const css::uno::Any &aTarget) override |
virtual void | disposeTextRange (const css::uno::Any &aTarget) override |
virtual bool | hasEffect (const css::uno::Reference< css::drawing::XShape > &xShape) override |
virtual void | onTextChanged (const css::uno::Reference< css::drawing::XShape > &xShape) override |
callback from the sd::View when an object just left text edit mode More... | |
const InteractiveSequenceVector & | getInteractiveSequenceVector () const |
virtual void | notify_change () override |
bool | setTrigger (const CustomAnimationEffectPtr &pEffect, const css::uno::Reference< css::drawing::XShape > &xTriggerShape) |
void | startRecreateTimer () |
starts a timer that recreates the internal structure from the API core after 1 second More... | |
void | startRebuildTimer () |
starts a timer that rebuilds the API core from the internal structure after 1 second More... | |
virtual sal_Int32 | getOffsetFromEffect (const CustomAnimationEffectPtr &xEffect) const override |
virtual CustomAnimationEffectPtr | getEffectFromOffset (sal_Int32 nOffset) const override |
Public Member Functions inherited from sd::EffectSequenceHelper | |
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 |
virtual void | notify_change ()=0 |
Private Member Functions | |
void | lockRebuilds () |
permits rebuilds until unlockRebuilds() is called. More... | |
void | unlockRebuilds () |
DECL_DLLPRIVATE_LINK (onTimerHdl, Timer *, void) | |
virtual void | implRebuild () override |
void | init () |
void | createMainSequence () |
virtual void | reset () override |
InteractiveSequencePtr | createInteractiveSequence (const css::uno::Reference< css::drawing::XShape > &xShape) |
Private Attributes | |
InteractiveSequenceVector | maInteractiveSequenceVector |
css::uno::Reference< css::util::XChangesListener > | mxChangesListener |
css::uno::Reference< css::animations::XTimeContainer > | mxTimingRootNode |
Timer | maTimer |
bool | mbTimerMode |
bool | mbRebuilding |
::tools::Long | mnRebuildLockGuard |
bool | mbPendingRebuildRequest |
sal_Int32 | mbIgnoreChanges |
Friends | |
class | UndoAnimation |
class | MainSequenceRebuildGuard |
class | MainSequenceChangeGuard |
Additional Inherited Members | |
Protected Member Functions inherited from sd::EffectSequenceHelper | |
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 Member Functions inherited from sd::ISequenceListener | |
~ISequenceListener () | |
Protected Attributes inherited from sd::EffectSequenceHelper | |
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 |
Definition at line 371 of file CustomAnimationEffect.hxx.
sd::MainSequence::MainSequence | ( | ) |
Definition at line 3053 of file CustomAnimationEffect.cxx.
References create(), getProcessComponentContext(), init(), and mxTimingRootNode.
sd::MainSequence::MainSequence | ( | const css::uno::Reference< css::animations::XAnimationNode > & | xTimingRootNode | ) |
Definition at line 3071 of file CustomAnimationEffect.cxx.
References init().
|
overridevirtual |
Definition at line 3083 of file CustomAnimationEffect.cxx.
References reset().
|
private |
Definition at line 3202 of file CustomAnimationEffect.cxx.
References maInteractiveSequenceVector, and sd::EffectSequenceHelper::mxSequenceRoot.
Referenced by setTrigger().
|
private |
Definition at line 3123 of file CustomAnimationEffect.cxx.
References Any, sd::EffectSequenceHelper::create(), DBG_ASSERT, Exception, sd::CustomAnimationEffect::get_node_type(), maInteractiveSequenceVector, mxChangesListener, sd::EffectSequenceHelper::mxSequenceRoot, mxTimingRootNode, sd::EffectSequenceHelper::notify_listeners(), TOOLS_WARN_EXCEPTION, and sd::EffectSequenceHelper::updateTextGroups().
|
overridevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3284 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::disposeShape(), maInteractiveSequenceVector, and startRebuildTimer().
|
overridevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3326 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::disposeTextRange(), and maInteractiveSequenceVector.
|
overridevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3225 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::findEffect(), and maInteractiveSequenceVector.
|
overridevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3262 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::getCount(), sd::EffectSequenceHelper::getEffectFromOffset(), and maInteractiveSequenceVector.
|
inline |
Definition at line 396 of file CustomAnimationEffect.hxx.
|
overridevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3241 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::getCount(), sd::EffectSequenceHelper::getOffsetFromEffect(), and maInteractiveSequenceVector.
|
overridevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3109 of file CustomAnimationEffect.cxx.
References DBG_ASSERT, sd::EffectSequenceHelper::getRootNode(), implRebuild(), Task::IsActive(), maTimer, mbTimerMode, mnRebuildLockGuard, and Task::Stop().
|
overridevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3299 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::hasEffect(), and maInteractiveSequenceVector.
|
overrideprivatevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3392 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::implRebuild(), maInteractiveSequenceVector, mbPendingRebuildRequest, mbRebuilding, mnRebuildLockGuard, sd::EffectSequenceHelper::mxSequenceRoot, and sd::EffectSequenceHelper::notify_listeners().
Referenced by getRootNode().
|
private |
Definition at line 3088 of file CustomAnimationEffect.cxx.
References createMainSequence(), LINK, maTimer, sd::EffectSequenceHelper::mnSequenceType, mxChangesListener, Timer::SetInvokeHandler(), and Timer::SetTimeout().
Referenced by MainSequence().
|
overridevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3316 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::insertTextRange(), and maInteractiveSequenceVector.
|
private |
permits rebuilds until unlockRebuilds() is called.
All rebuild calls during a locked sequence are process after unlockRebuilds() call. lockRebuilds() and unlockRebuilds() calls can be nested.
Definition at line 3374 of file CustomAnimationEffect.cxx.
References mnRebuildLockGuard.
|
overridevirtual |
Implements sd::ISequenceListener.
Definition at line 3429 of file CustomAnimationEffect.cxx.
References sd::EffectSequenceHelper::notify_listeners().
|
overridevirtual |
callback from the sd::View when an object just left text edit mode
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3337 of file CustomAnimationEffect.cxx.
References maInteractiveSequenceVector, and sd::EffectSequenceHelper::onTextChanged().
|
overridevirtual |
this method rebuilds the animation nodes
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3369 of file CustomAnimationEffect.cxx.
References startRebuildTimer().
Referenced by sd::InteractiveSequence::rebuild().
|
overrideprivatevirtual |
Reimplemented from sd::EffectSequenceHelper.
Definition at line 3182 of file CustomAnimationEffect.cxx.
References Exception, maInteractiveSequenceVector, mxChangesListener, mxTimingRootNode, and sd::EffectSequenceHelper::reset().
Referenced by reset(), and ~MainSequence().
void sd::MainSequence::reset | ( | const css::uno::Reference< css::animations::XAnimationNode > & | xTimingRootNode | ) |
Definition at line 3100 of file CustomAnimationEffect.cxx.
References createMainSequence(), mxTimingRootNode, and reset().
bool sd::MainSequence::setTrigger | ( | const CustomAnimationEffectPtr & | pEffect, |
const css::uno::Reference< css::drawing::XShape > & | xTriggerShape | ||
) |
Definition at line 3434 of file CustomAnimationEffect.cxx.
References createInteractiveSequence(), sd::EffectSequenceHelper::maEffects, and maInteractiveSequenceVector.
void sd::MainSequence::startRebuildTimer | ( | ) |
starts a timer that rebuilds the API core from the internal structure after 1 second
starts a timer that rebuilds the API core from the internal structure This is used to reduce the number of screen redraws due to animation changes.
Definition at line 3501 of file CustomAnimationEffect.cxx.
References maTimer, mbTimerMode, and Timer::Start().
Referenced by disposeShape(), rebuild(), and unlockRebuilds().
void sd::MainSequence::startRecreateTimer | ( | ) |
starts a timer that recreates the internal structure from the API core after 1 second
starts a timer that recreates the internal structure from the API core
Definition at line 3488 of file CustomAnimationEffect.cxx.
References maTimer, mbIgnoreChanges, mbRebuilding, mbTimerMode, and Timer::Start().
|
private |
Definition at line 3379 of file CustomAnimationEffect.cxx.
References DBG_ASSERT, mbPendingRebuildRequest, mnRebuildLockGuard, and startRebuildTimer().
|
friend |
Definition at line 375 of file CustomAnimationEffect.hxx.
|
friend |
Definition at line 374 of file CustomAnimationEffect.hxx.
|
friend |
Definition at line 373 of file CustomAnimationEffect.hxx.
|
private |
Definition at line 428 of file CustomAnimationEffect.hxx.
Referenced by createInteractiveSequence(), createMainSequence(), disposeShape(), disposeTextRange(), findEffect(), getEffectFromOffset(), getOffsetFromEffect(), hasEffect(), implRebuild(), insertTextRange(), onTextChanged(), reset(), and setTrigger().
|
private |
Definition at line 432 of file CustomAnimationEffect.hxx.
Referenced by getRootNode(), init(), startRebuildTimer(), and startRecreateTimer().
|
private |
Definition at line 438 of file CustomAnimationEffect.hxx.
Referenced by sd::MainSequenceChangeGuard::MainSequenceChangeGuard(), startRecreateTimer(), and sd::MainSequenceChangeGuard::~MainSequenceChangeGuard().
|
private |
Definition at line 437 of file CustomAnimationEffect.hxx.
Referenced by implRebuild(), and unlockRebuilds().
|
private |
Definition at line 434 of file CustomAnimationEffect.hxx.
Referenced by implRebuild(), and startRecreateTimer().
|
private |
Definition at line 433 of file CustomAnimationEffect.hxx.
Referenced by getRootNode(), startRebuildTimer(), and startRecreateTimer().
|
private |
Definition at line 436 of file CustomAnimationEffect.hxx.
Referenced by getRootNode(), implRebuild(), lockRebuilds(), and unlockRebuilds().
|
private |
Definition at line 430 of file CustomAnimationEffect.hxx.
Referenced by createMainSequence(), init(), and reset().
|
private |
Definition at line 431 of file CustomAnimationEffect.hxx.
Referenced by createMainSequence(), MainSequence(), and reset().