summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/animationnodes
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-12-13 14:32:43 +0000
committerKurt Zenker <kz@openoffice.org>2006-12-13 14:32:43 +0000
commiteb1fa9352897443fb4fa6c53931d19c76e833c60 (patch)
tree1a0c3722dfd75f48e85101d703e236b54398092f /slideshow/source/engine/animationnodes
parent4fc2038af5ae9b3c91fcf0a1305befb75fd1a342 (diff)
INTEGRATION: CWS presfixes09 (1.6.16); FILE MERGED
2006/10/18 19:55:25 thb 1.6.16.6: RESYNC: (1.7-1.9); FILE MERGED 2006/09/15 22:15:05 thb 1.6.16.5: RESYNC: (1.6-1.7); FILE MERGED 2006/04/24 13:25:29 thb 1.6.16.4: #i53194# Unified include statements (local headers always have double quotes; external headers angle brackets); reverted EventMultiplexer pause events to shared_ptr; removed EventMultiplexer::removeViewHandler(), since the handler is held weakly, anyway. 2006/04/12 20:40:07 thb 1.6.16.3: #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.6.16.2: #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:18 thb 1.6.16.1: #i37778# Moved whole slideshow engine from namespace presentation (which conflicts with one of the UNO subnamespaces) to slideshow
Diffstat (limited to 'slideshow/source/engine/animationnodes')
-rw-r--r--slideshow/source/engine/animationnodes/basenode.cxx23
1 files changed, 11 insertions, 12 deletions
diff --git a/slideshow/source/engine/animationnodes/basenode.cxx b/slideshow/source/engine/animationnodes/basenode.cxx
index 626cdb85da53..df4813d438e3 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.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: obo $ $Date: 2006-10-12 13:59:12 $
+ * last change: $Author: kz $ $Date: 2006-12-13 15:32:43 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -56,10 +56,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 {
@@ -264,7 +263,7 @@ bool isMainSequenceRootNode_(
// end-of-mainsequence signalling below)
beans::NamedValue const aSearchKey(
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "node-type" ) ),
- uno::makeAny( css::presentation::EffectNodeType::MAIN_SEQUENCE ) );
+ uno::makeAny( presentation::EffectNodeType::MAIN_SEQUENCE ) );
uno::Sequence<beans::NamedValue> const userData(xNode->getUserData());
return findNamedValue( userData, aSearchKey );
@@ -405,7 +404,7 @@ sal_Int16 BaseNode::getFillDefaultMode() const
{
sal_Int16 nFillDefault = mxAnimationNode->getFillDefault();
if (nFillDefault == animations::AnimationFill::DEFAULT) {
- nFillDefault = (mpParent.get() != 0
+ nFillDefault = (mpParent != 0
? mpParent->getFillDefaultMode()
: animations::AnimationFill::AUTO);
}
@@ -416,7 +415,7 @@ sal_Int16 BaseNode::getRestartDefaultMode() const
{
sal_Int16 nRestartDefaultMode = mxAnimationNode->getRestartDefault();
if (nRestartDefaultMode == animations::AnimationRestart::DEFAULT) {
- nRestartDefaultMode = (mpParent.get() != 0
+ nRestartDefaultMode = (mpParent != 0
? mpParent->getRestartDefaultMode()
: animations::AnimationRestart::ALWAYS);
}
@@ -670,7 +669,7 @@ bool BaseNode::registerDeactivatingListener(
return false;
ENSURE_AND_RETURN(
- rNotifee.get(),
+ rNotifee,
"BaseNode::registerDeactivatingListener(): invalid notifee" );
maDeactivatingListeners.push_back( rNotifee );
@@ -681,7 +680,7 @@ void BaseNode::setSelf( const BaseNodeSharedPtr& rSelf )
{
ENSURE_AND_THROW( rSelf.get() == this,
"BaseNode::setSelf(): got ptr to different object" );
- ENSURE_AND_THROW( !mpSelf.get(),
+ ENSURE_AND_THROW( !mpSelf,
"BaseNode::setSelf(): called multiple times" );
mpSelf = rSelf;
@@ -756,12 +755,12 @@ void BaseNode::showTreeFromWithin() const
{
// find root node
BaseNodeSharedPtr pCurrNode( mpSelf );
- while( pCurrNode->mpParent.get() ) pCurrNode = pCurrNode->mpParent;
+ while( pCurrNode->mpParent ) pCurrNode = pCurrNode->mpParent;
pCurrNode->showState();
}
#endif
} // namespace internal
-} // namespace presentation
+} // namespace slideshow