summaryrefslogtreecommitdiff
path: root/slideshow/source
diff options
context:
space:
mode:
authorOliver Bolte <obo@openoffice.org>2005-10-11 07:43:02 +0000
committerOliver Bolte <obo@openoffice.org>2005-10-11 07:43:02 +0000
commit358d8c44498c9fc5448a25499f3418f8651fe7fd (patch)
tree17e99d2be032820e5b4d8ec3482c830cec7398f4 /slideshow/source
parent2c914ed7a49c27cd7d0d206d1ebf2234c43b0b45 (diff)
INTEGRATION: CWS presfixes08 (1.3.16); FILE MERGED
2005/07/21 16:13:45 dbo 1.3.16.2: #i45197# some cleanup Issue number: Submitted by: Reviewed by: 2005/06/13 08:55:19 dbo 1.3.16.1: #i45197# skip effect event Issue number: Submitted by: Reviewed by:
Diffstat (limited to 'slideshow/source')
-rw-r--r--slideshow/source/engine/animationnodes/basecontainernode.hxx133
1 files changed, 69 insertions, 64 deletions
diff --git a/slideshow/source/engine/animationnodes/basecontainernode.hxx b/slideshow/source/engine/animationnodes/basecontainernode.hxx
index 5097ad8d23db..8e3625300930 100644
--- a/slideshow/source/engine/animationnodes/basecontainernode.hxx
+++ b/slideshow/source/engine/animationnodes/basecontainernode.hxx
@@ -4,9 +4,9 @@
*
* $RCSfile: basecontainernode.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-09-07 20:43:42 $
+ * last change: $Author: obo $ $Date: 2005-10-11 08:43:02 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -33,78 +33,83 @@
*
************************************************************************/
-#ifndef _SLIDESHOW_BASECONTAINERNODE_HXX
-#define _SLIDESHOW_BASECONTAINERNODE_HXX
+#ifndef INCLUDED_SLIDESHOW_BASECONTAINERNODE_HXX
+#define INCLUDED_SLIDESHOW_BASECONTAINERNODE_HXX
-#include <basenode.hxx>
+#include "basenode.hxx"
-namespace presentation
+namespace presentation {
+namespace internal {
+
+/** This interface extends BaseNode with child handling methods.
+ Used for XAnimationNode objects which have children
+*/
+class BaseContainerNode : public BaseNode
{
- namespace internal
- {
- /** This interface extends BaseNode with child handling methods.
-
- Used for XAnimationNode objects which have children
- */
- class BaseContainerNode : public BaseNode
- {
- public:
- BaseContainerNode( const ::com::sun::star::uno::Reference<
- ::com::sun::star::animations::XAnimationNode >& xNode,
- const ::boost::shared_ptr< BaseContainerNode >& rParent,
- const NodeContext& rContext );
-
- // overrides from BaseNode
- virtual bool activate();
- virtual bool init();
- virtual void dispose();
- virtual void end();
-
- virtual bool hasPendingAnimation() const;
-
- /** Add given child node to this container
- */
- virtual void appendChildNode( const BaseNodeSharedPtr& rNode );
-
- /** Requests node to resolve all children
-
- When parents have unresolved start times, and one
- of the children wants to start (e.g. because of a
- user event), it must call this method on its
- parent.
- */
- virtual void requestResolveOnChildren();
+public:
+ BaseContainerNode(
+ const ::com::sun::star::uno::Reference<
+ ::com::sun::star::animations::XAnimationNode >& xNode,
+ const ::boost::shared_ptr< BaseContainerNode >& rParent,
+ const NodeContext& rContext );
+
+ // overrides from BaseNode
+ virtual bool activate();
+ virtual void deactivate();
+ virtual bool init();
+ virtual void dispose();
+ virtual void end();
+
+ virtual bool hasPendingAnimation() const;
+
+ /** Add given child node to this container
+ */
+ void appendChildNode( const BaseNodeSharedPtr& rNode );
#if defined(VERBOSE) && defined(DBG_UTIL)
- virtual void showState() const;
- virtual const char* getDescription() const;
+ virtual void showState() const;
+ virtual const char* getDescription() const;
#endif
- protected:
- /** Overridden, to overrule indefinite begin event.
+protected:
+ /** Overridden, to overrule indefinite begin event.
+
+ When children requested resolve, indefinite begin
+ times become resolved for us
+ */
+ virtual void scheduleActivationEvent();
+
+ typedef ::std::vector< BaseNodeSharedPtr > VectorOfNodes;
+
+ VectorOfNodes& getChildren() { return maChildren; }
+ ::std::bit_vector& getFinishedStates() { return maFinishedStates; }
+ ::std::size_t& getFinishedCount() { return mnFinishedChildren; }
+ bool isDurationInfinite() const
+ { return mbDurationIndefinite; }
+
+private:
+
+ /** Requests node to resolve all children
- When children requested resolve, indefinite begin
- times become resolved for us
- */
- virtual void scheduleActivationEvent();
+ When parents have unresolved start times, and one
+ of the children wants to start (e.g. because of a
+ user event), it must call this method on its
+ parent.
+ */
+ void requestResolveOnChildren();
- typedef ::std::vector< BaseNodeSharedPtr > VectorOfNodes;
+private:
+ VectorOfNodes maChildren;
+ ::std::bit_vector maFinishedStates;
+ ::std::size_t mnFinishedChildren;
+ bool mbOverrideIndefiniteBegin;
+ const bool mbDurationIndefinite;
+};
- VectorOfNodes& getChildren() { return maChildren; }
- ::std::bit_vector& getFinishedStates() { return maFinishedStates; }
- ::std::size_t& getFinishedCount() { return mnFinishedChildren; }
- bool isDurationInfinite() const { return mbDurationIndefinite; }
+typedef ::boost::shared_ptr< BaseContainerNode > BaseContainerNodeSharedPtr;
- private:
- VectorOfNodes maChildren;
- ::std::bit_vector maFinishedStates;
- ::std::size_t mnFinishedChildren;
- bool mbOverrideIndefiniteBegin;
- const bool mbDurationIndefinite;
- };
+} // namespace interface
+} // namespace presentation
- typedef ::boost::shared_ptr< BaseContainerNode > BaseContainerNodeSharedPtr;
- }
-}
+#endif /* INCLUDED_SLIDESHOW_BASECONTAINERNODE_HXX */
-#endif /* _SLIDESHOW_BASECONTAINERNODE_HXX */