diff options
author | Oliver Bolte <obo@openoffice.org> | 2007-07-17 13:48:50 +0000 |
---|---|---|
committer | Oliver Bolte <obo@openoffice.org> | 2007-07-17 13:48:50 +0000 |
commit | 2bbcab60260b3ee8ba2c816650b9c4e6a240cca1 (patch) | |
tree | 2430a722a5f449a16014c8edb32316e6450c14d0 /slideshow/source/engine/animationnodes/basenode.cxx | |
parent | af18ff4fe9ebf1c198fae5fd60b5ac75b2cca5fe (diff) |
INTEGRATION: CWS presfixes12 (1.10.12); FILE MERGED
2007/02/02 08:47:52 thb 1.10.12.2: #i37778# Moved all old-style casts to sal::static_int_cast
2007/01/29 14:02:01 thb 1.10.12.1: Issue number: #i37778#
Larger slideshow refactoring. Wrote design and coding style manifest,
and adapted the code to actually conform to this. In detail:
- cleaned up ownership/disposable/weak_ptr story. removed hacks and
explicit Disposable implementations, where workaround were available
- removed object mutices, where superfluous
- reworked EventMultiplexer (using templatized listener class now), added
more events. EventMultiplexer now serves as a true blackboard
- reworked directory structure: disjunct parts are now physically separated
into directories, instantiation happens via factories & abstract interfaces
- added CursorManager, to make setting mouse cursor less hackish
- reworked DrawShape, to implement SeparateListener pattern
- reworked IntrinsicAnimationActivity, to avoid cyclic references
- modified hyperlink & shape cursor handling to communicate via
EventMultiplexer
- renamed & cleaned up files (presentation.cxx now named slideshowimpl.cxx,
etc.)
- added first version of the z-order fix to layer/layermanager
- cleaned up include guards and include syntax
Diffstat (limited to 'slideshow/source/engine/animationnodes/basenode.cxx')
-rw-r--r-- | slideshow/source/engine/animationnodes/basenode.cxx | 58 |
1 files changed, 31 insertions, 27 deletions
diff --git a/slideshow/source/engine/animationnodes/basenode.cxx b/slideshow/source/engine/animationnodes/basenode.cxx index df4813d438e3..7225c9025fa0 100644 --- a/slideshow/source/engine/animationnodes/basenode.cxx +++ b/slideshow/source/engine/animationnodes/basenode.cxx @@ -4,9 +4,9 @@ * * $RCSfile: basenode.cxx,v $ * - * $Revision: 1.10 $ + * $Revision: 1.11 $ * - * last change: $Author: kz $ $Date: 2006-12-13 15:32:43 $ + * last change: $Author: obo $ $Date: 2007-07-17 14:48:50 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -37,21 +37,26 @@ #include "precompiled_slideshow.hxx" // must be first -#include "canvas/debug.hxx" -#include "canvas/verbosetrace.hxx" +#include <canvas/debug.hxx> +#include <canvas/verbosetrace.hxx> + +#include <com/sun/star/animations/XAnimate.hpp> +#include <com/sun/star/presentation/ParagraphTarget.hpp> +#include <com/sun/star/animations/AnimationFill.hpp> +#include <com/sun/star/animations/AnimationRestart.hpp> +#include <com/sun/star/presentation/EffectNodeType.hpp> +#include <com/sun/star/beans/XPropertySet.hpp> + #include "basenode.hxx" +#include "eventmultiplexer.hxx" #include "basecontainernode.hxx" +#include "eventqueue.hxx" #include "delayevent.hxx" #include "tools.hxx" #include "nodetools.hxx" #include "generateevent.hxx" -#include "com/sun/star/animations/XAnimate.hpp" -#include "com/sun/star/presentation/ParagraphTarget.hpp" -#include "com/sun/star/animations/AnimationFill.hpp" -#include "com/sun/star/animations/AnimationRestart.hpp" -#include "com/sun/star/presentation/EffectNodeType.hpp" -#include "com/sun/star/beans/XPropertySet.hpp" -#include "boost/bind.hpp" + +#include <boost/bind.hpp> #include <vector> #include <algorithm> #include <iterator> @@ -327,21 +332,20 @@ private: NodeState meToState; }; -BaseNode::BaseNode( - const uno::Reference< animations::XAnimationNode >& xNode, - const BaseContainerNodeSharedPtr& rParent, - const NodeContext& rContext ) - : maContext( rContext.maContext ), - maDeactivatingListeners(), - mxAnimationNode( xNode ), - mpParent( rParent ), - mpSelf(), - mpStateTransitionTable( NULL ), - mnStartDelay( rContext.mnStartDelay ), - meCurrState( UNRESOLVED ), - meCurrentStateTransition( 0 ), - mpCurrentEvent(), - mbIsMainSequenceRootNode( isMainSequenceRootNode_( xNode ) ) +BaseNode::BaseNode( const uno::Reference< animations::XAnimationNode >& xNode, + const BaseContainerNodeSharedPtr& rParent, + const NodeContext& rContext ) : + maContext( rContext.maContext ), + maDeactivatingListeners(), + mxAnimationNode( xNode ), + mpParent( rParent ), + mpSelf(), + mpStateTransitionTable( NULL ), + mnStartDelay( rContext.mnStartDelay ), + meCurrState( UNRESOLVED ), + meCurrentStateTransition( 0 ), + mpCurrentEvent(), + mbIsMainSequenceRootNode( isMainSequenceRootNode_( xNode ) ) { ENSURE_AND_THROW( mxAnimationNode.is(), "BaseNode::BaseNode(): Invalid XAnimationNode" ); @@ -704,7 +708,7 @@ void BaseNode::showState() const "fillcolor=\"%f,1.0,1.0\"]", (const char*)this+debugGetCurrentOffset(), getDescription(), - log((double)getState())/4.0 ); + log(double(getState()))/4.0 ); // determine additional node information uno::Reference<animations::XAnimate> const xAnimate( mxAnimationNode, |