diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-12-13 14:29:56 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-12-13 14:29:56 +0000 |
commit | 539aade798dbd1fb82d1f2affb6c28bb3ca8a027 (patch) | |
tree | 3492abb51db25e65832142cd7bb693efb31a26b9 /slideshow/source/engine/animationnodes | |
parent | 6cced6bd894099b4fc839f1f278923fe32581d23 (diff) |
INTEGRATION: CWS presfixes09 (1.7.18); FILE MERGED
2006/10/18 19:54:37 thb 1.7.18.7: RESYNC: (1.8-1.9); FILE MERGED
2006/09/15 22:14:07 thb 1.7.18.6: RESYNC: (1.7-1.8); FILE MERGED
2006/04/12 20:40:07 thb 1.7.18.5: #i37778# Replaced all shared_ptr.get() != NULL places with the more elegant automatic-conversion-to-bool version (at least where the compiler tolerated that)
2006/04/03 16:19:00 thb 1.7.18.4: #i37778# Now passing down ComponentContext to all interested parties; building a second, all-exports version of the slideshow component (to facilitate unit testing also for internal classes) - this made necessary renaming ImportFailedException to ShapeLoadFailedException (because of silly i63703); applied relevant parts of #i63770# (const-correctness); reworked view handling in such a way that views are now kept in one central repository (and are not duplicated across all interested objects); moved code from namespace presentation to namespace slideshow
2006/03/24 18:23:16 thb 1.7.18.3: #i37778# Moved whole slideshow engine from namespace presentation (which conflicts with one of the UNO subnamespaces) to slideshow
2006/03/15 15:22:20 thb 1.7.18.2: #i49357# Removed external include guards from all non-export headers (and from the cxx files, anyway)
2006/03/06 22:14:31 thb 1.7.18.1: #i53194# #i55294# #i59324# Overhauled IntrinsicAnimationActivity; fixes GIF animation import; corrected rehearse timings sprite size; several cosmetic changes (removed external header guards); prepared scene for sprite prio
Diffstat (limited to 'slideshow/source/engine/animationnodes')
-rw-r--r-- | slideshow/source/engine/animationnodes/animationnodefactory.cxx | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/slideshow/source/engine/animationnodes/animationnodefactory.cxx b/slideshow/source/engine/animationnodes/animationnodefactory.cxx index 2d03d1cab424..f2f421951812 100644 --- a/slideshow/source/engine/animationnodes/animationnodefactory.cxx +++ b/slideshow/source/engine/animationnodes/animationnodefactory.cxx @@ -4,9 +4,9 @@ * * $RCSfile: animationnodefactory.cxx,v $ * - * $Revision: 1.9 $ + * $Revision: 1.10 $ * - * last change: $Author: obo $ $Date: 2006-09-17 08:34:05 $ + * last change: $Author: kz $ $Date: 2006-12-13 15:29:56 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -76,10 +76,9 @@ #include <algorithm> #include <iterator> -namespace css = com::sun::star; -using namespace css; +using namespace ::com::sun::star; -namespace presentation { +namespace slideshow { namespace internal { namespace { @@ -112,12 +111,12 @@ protected: mrParent, rContext ) ); - OSL_ENSURE( pChild.get(), + OSL_ENSURE( pChild, "NodeCreator::operator(): child creation failed" ); // TODO(Q1): This yields circular references, which, it seems, is // unavoidable here - if( pChild.get() ) + if( pChild ) mrParent->appendChildNode( pChild ); } @@ -215,9 +214,9 @@ bool implCreateIteratedNodes( uno::Reference< drawing::XShape > xTargetShape( xIterNode->getTarget(), uno::UNO_QUERY ); - css::presentation::ParagraphTarget aTarget; - sal_Int16 nSubItem( xIterNode->getSubItem() ); - bool bParagraphTarget( false ); + presentation::ParagraphTarget aTarget; + sal_Int16 nSubItem( xIterNode->getSubItem() ); + bool bParagraphTarget( false ); if( !xTargetShape.is() ) { @@ -237,7 +236,7 @@ bool implCreateIteratedNodes( // we've a paragraph target to iterate over, thus, // the whole animation container refers only to // the text - nSubItem = css::presentation::ShapeAnimationSubType::ONLY_TEXT; + nSubItem = presentation::ShapeAnimationSubType::ONLY_TEXT; bParagraphTarget = true; } @@ -310,7 +309,7 @@ bool implCreateIteratedNodes( // ================ if( bParagraphTarget || - nSubItem != css::presentation::ShapeAnimationSubType::ONLY_TEXT ) + nSubItem != presentation::ShapeAnimationSubType::ONLY_TEXT ) { // prepend with animations for // full Shape (will be subtracted @@ -346,7 +345,7 @@ bool implCreateIteratedNodes( // slideshow engine, only that the text won't be // currently visible, because animations are always in // the foreground) - if( nSubItem != css::presentation::ShapeAnimationSubType::ONLY_BACKGROUND ) + if( nSubItem != presentation::ShapeAnimationSubType::ONLY_BACKGROUND ) { // determine type of subitem iteration (logical // text unit to animate) @@ -355,15 +354,15 @@ bool implCreateIteratedNodes( switch( xIterNode->getIterateType() ) { - case css::presentation::TextAnimationType::BY_PARAGRAPH: + case presentation::TextAnimationType::BY_PARAGRAPH: eIterateNodeType = DocTreeNode::NODETYPE_LOGICAL_PARAGRAPH; break; - case css::presentation::TextAnimationType::BY_WORD: + case presentation::TextAnimationType::BY_WORD: eIterateNodeType = DocTreeNode::NODETYPE_LOGICAL_WORD; break; - case css::presentation::TextAnimationType::BY_LETTER: + case presentation::TextAnimationType::BY_LETTER: eIterateNodeType = DocTreeNode::NODETYPE_LOGICAL_CHARACTER_CELL; break; @@ -561,7 +560,7 @@ BaseNodeSharedPtr implCreateAnimationNode( // if we've got a container node object, recursively add // its children - if( pCreatedContainer.get() ) + if( pCreatedContainer ) { uno::Reference< animations::XIterateContainer > xIterNode( xNode, uno::UNO_QUERY ); @@ -617,12 +616,12 @@ AnimationNodeSharedPtr AnimationNodeFactory::createAnimationNode( #if defined(VERBOSE) && defined(DBG_UTIL) void AnimationNodeFactory::showTree( AnimationNodeSharedPtr& pRootNode ) { - if( pRootNode.get() ) + if( pRootNode ) DEBUG_NODES_SHOWTREE( dynamic_cast<BaseContainerNode*>( - pRootNode.get())); + pRootNode)); } #endif } // namespace internal -} // namespace presentation +} // namespace slideshow |