diff options
author | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-08-10 14:04:31 -0500 |
---|---|---|
committer | Norbert Thiebaud <nthiebaud@gmail.com> | 2015-08-11 03:57:18 +0000 |
commit | e5ec6304149cdcad0d6495b5187c245748b408b5 (patch) | |
tree | 8548fe3438f33c67d4333308dfa9f390fab3b5e9 /slideshow/source/engine/animationnodes | |
parent | 7bdc6be9c23517eec02ce7139edd7003abbee1f8 (diff) |
stop inclduing canvas/verbosetraces.hxx and canvas/debug.hxx
also clean-up and 'standardize' the include sections of canvas' source code
Change-Id: Ib437a41ea41ae2ea6528f755ae5b2828775aaf73
Reviewed-on: https://gerrit.libreoffice.org/17633
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Norbert Thiebaud <nthiebaud@gmail.com>
Diffstat (limited to 'slideshow/source/engine/animationnodes')
27 files changed, 21 insertions, 78 deletions
diff --git a/slideshow/source/engine/animationnodes/animationaudionode.cxx b/slideshow/source/engine/animationnodes/animationaudionode.cxx index a037b4269f0d..a5f9e4100713 100644 --- a/slideshow/source/engine/animationnodes/animationaudionode.cxx +++ b/slideshow/source/engine/animationnodes/animationaudionode.cxx @@ -18,10 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include "eventqueue.hxx" #include "animationaudionode.hxx" #include "delayevent.hxx" diff --git a/slideshow/source/engine/animationnodes/animationbasenode.cxx b/slideshow/source/engine/animationnodes/animationbasenode.cxx index c70ffc3664df..9d28fb39dae5 100644 --- a/slideshow/source/engine/animationnodes/animationbasenode.cxx +++ b/slideshow/source/engine/animationnodes/animationbasenode.cxx @@ -18,9 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> #include <cppuhelper/exc_hlp.hxx> #include <comphelper/anytostring.hxx> #include <com/sun/star/presentation/ParagraphTarget.hpp> @@ -374,7 +371,7 @@ void AnimationBaseNode::showState() const BaseNode::showState(); SAL_INFO( "slideshow.verbose", "AnimationBaseNode info: independent subset=" << - mbIsIndependentSubset ? "y" : "n" ); + (mbIsIndependentSubset ? "y" : "n") ); } #endif diff --git a/slideshow/source/engine/animationnodes/animationbasenode.hxx b/slideshow/source/engine/animationnodes/animationbasenode.hxx index 6e9ab3c0a9ea..b2fa181c78ac 100644 --- a/slideshow/source/engine/animationnodes/animationbasenode.hxx +++ b/slideshow/source/engine/animationnodes/animationbasenode.hxx @@ -44,7 +44,7 @@ public: ::boost::shared_ptr<BaseContainerNode> const& pParent, NodeContext const& rContext ); -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual void showState() const; #endif diff --git a/slideshow/source/engine/animationnodes/animationcolornode.cxx b/slideshow/source/engine/animationnodes/animationcolornode.cxx index c1b47d86ec24..1a61035ebb05 100644 --- a/slideshow/source/engine/animationnodes/animationcolornode.cxx +++ b/slideshow/source/engine/animationnodes/animationcolornode.cxx @@ -18,9 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> #include <com/sun/star/animations/AnimationColorSpace.hpp> #include "coloranimation.hxx" diff --git a/slideshow/source/engine/animationnodes/animationcolornode.hxx b/slideshow/source/engine/animationnodes/animationcolornode.hxx index fcf67b6249d4..fe8cb39cdbbe 100644 --- a/slideshow/source/engine/animationnodes/animationcolornode.hxx +++ b/slideshow/source/engine/animationnodes/animationcolornode.hxx @@ -37,7 +37,7 @@ public: : AnimationBaseNode( xNode, pParent, rContext ), mxColorNode( xNode, ::com::sun::star::uno::UNO_QUERY_THROW ) {} -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual const char* getDescription() const { return "AnimationColorNode"; } #endif diff --git a/slideshow/source/engine/animationnodes/animationcommandnode.cxx b/slideshow/source/engine/animationnodes/animationcommandnode.cxx index 17365f331ce1..47e4f961bb20 100644 --- a/slideshow/source/engine/animationnodes/animationcommandnode.cxx +++ b/slideshow/source/engine/animationnodes/animationcommandnode.cxx @@ -18,9 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> #include <com/sun/star/presentation/EffectCommands.hpp> #include <com/sun/star/animations/XAnimate.hpp> #include <com/sun/star/beans/PropertyValue.hpp> diff --git a/slideshow/source/engine/animationnodes/animationnodefactory.cxx b/slideshow/source/engine/animationnodes/animationnodefactory.cxx index 15f9e079edbf..d20e44c26ce5 100644 --- a/slideshow/source/engine/animationnodes/animationnodefactory.cxx +++ b/slideshow/source/engine/animationnodes/animationnodefactory.cxx @@ -18,10 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/animations/XAnimate.hpp> #include <com/sun/star/animations/AnimationNodeType.hpp> @@ -592,7 +588,7 @@ AnimationNodeSharedPtr AnimationNodeFactory::createAnimationNode( rSlideSize ))); } -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) void AnimationNodeFactory::showTree( AnimationNodeSharedPtr& pRootNode ) { if( pRootNode ) diff --git a/slideshow/source/engine/animationnodes/animationpathmotionnode.cxx b/slideshow/source/engine/animationnodes/animationpathmotionnode.cxx index 8d77a9be9a90..5831fb2ed640 100644 --- a/slideshow/source/engine/animationnodes/animationpathmotionnode.cxx +++ b/slideshow/source/engine/animationnodes/animationpathmotionnode.cxx @@ -18,10 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include "animationpathmotionnode.hxx" #include "animationfactory.hxx" diff --git a/slideshow/source/engine/animationnodes/animationpathmotionnode.hxx b/slideshow/source/engine/animationnodes/animationpathmotionnode.hxx index 44640ec1fd04..e300720c2b16 100644 --- a/slideshow/source/engine/animationnodes/animationpathmotionnode.hxx +++ b/slideshow/source/engine/animationnodes/animationpathmotionnode.hxx @@ -36,7 +36,7 @@ public: : AnimationBaseNode( xNode, rParent, rContext ), mxPathMotionNode( xNode, ::com::sun::star::uno::UNO_QUERY_THROW ) {} -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual const char* getDescription() const { return "AnimationPathMotionNode"; } #endif diff --git a/slideshow/source/engine/animationnodes/animationsetnode.cxx b/slideshow/source/engine/animationnodes/animationsetnode.cxx index 63c7620603d0..c2f37e3aa5b7 100644 --- a/slideshow/source/engine/animationnodes/animationsetnode.cxx +++ b/slideshow/source/engine/animationnodes/animationsetnode.cxx @@ -18,9 +18,6 @@ */ -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include "animationfactory.hxx" #include "setactivity.hxx" #include "animationsetnode.hxx" diff --git a/slideshow/source/engine/animationnodes/animationsetnode.hxx b/slideshow/source/engine/animationnodes/animationsetnode.hxx index f9898bd593af..34c866897c61 100644 --- a/slideshow/source/engine/animationnodes/animationsetnode.hxx +++ b/slideshow/source/engine/animationnodes/animationsetnode.hxx @@ -34,7 +34,7 @@ public: NodeContext const& rContext ) : AnimationBaseNode( xNode, pParent, rContext ) {} -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual const char* getDescription() const { return "AnimationSetNode"; } #endif diff --git a/slideshow/source/engine/animationnodes/animationtransformnode.cxx b/slideshow/source/engine/animationnodes/animationtransformnode.cxx index 966ce7fbdfaf..b9a99c3ae184 100644 --- a/slideshow/source/engine/animationnodes/animationtransformnode.cxx +++ b/slideshow/source/engine/animationnodes/animationtransformnode.cxx @@ -18,9 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> #include <com/sun/star/animations/AnimationTransformType.hpp> #include "animationtransformnode.hxx" diff --git a/slideshow/source/engine/animationnodes/animationtransformnode.hxx b/slideshow/source/engine/animationnodes/animationtransformnode.hxx index 330873794c1a..24d0fbe4002f 100644 --- a/slideshow/source/engine/animationnodes/animationtransformnode.hxx +++ b/slideshow/source/engine/animationnodes/animationtransformnode.hxx @@ -37,7 +37,7 @@ public: : AnimationBaseNode( xNode, pParent, rContext ), mxTransformNode( xNode, ::com::sun::star::uno::UNO_QUERY_THROW ) {} -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual const char* getDescription() const { return "AnimationTransformNode"; } #endif diff --git a/slideshow/source/engine/animationnodes/animationtransitionfilternode.cxx b/slideshow/source/engine/animationnodes/animationtransitionfilternode.cxx index f0e55237e452..6089c8033b9d 100644 --- a/slideshow/source/engine/animationnodes/animationtransitionfilternode.cxx +++ b/slideshow/source/engine/animationnodes/animationtransitionfilternode.cxx @@ -18,10 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include "animationtransitionfilternode.hxx" #include "transitionfactory.hxx" diff --git a/slideshow/source/engine/animationnodes/basecontainernode.cxx b/slideshow/source/engine/animationnodes/basecontainernode.cxx index 930e4be0a871..909c9f677321 100644 --- a/slideshow/source/engine/animationnodes/basecontainernode.cxx +++ b/slideshow/source/engine/animationnodes/basecontainernode.cxx @@ -18,10 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include "basecontainernode.hxx" #include "eventqueue.hxx" #include "tools.hxx" @@ -176,7 +172,7 @@ bool BaseContainerNode::repeat() return bState; } -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) void BaseContainerNode::showState() const { for( std::size_t i=0; i<maChildren.size(); ++i ) @@ -185,9 +181,9 @@ void BaseContainerNode::showState() const boost::dynamic_pointer_cast<BaseNode>(maChildren[i]); SAL_INFO("slideshow.verbose", "Node connection: n" << - (const void*)this+debugGetCurrentOffset() << + (const char*)this+debugGetCurrentOffset() << " -> n" << - (const void*)pNode.get()+debugGetCurrentOffset() ); + (const char*)pNode.get()+debugGetCurrentOffset() ); pNode->showState(); } diff --git a/slideshow/source/engine/animationnodes/basecontainernode.hxx b/slideshow/source/engine/animationnodes/basecontainernode.hxx index 46b762b45ec6..de351ed83a78 100644 --- a/slideshow/source/engine/animationnodes/basecontainernode.hxx +++ b/slideshow/source/engine/animationnodes/basecontainernode.hxx @@ -40,7 +40,7 @@ public: */ void appendChildNode( AnimationNodeSharedPtr const& pNode ); -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual void showState() const; virtual const char* getDescription() const { return "BaseContainerNode"; } #endif diff --git a/slideshow/source/engine/animationnodes/basenode.cxx b/slideshow/source/engine/animationnodes/basenode.cxx index f7947b0cb80d..9c857c09c088 100644 --- a/slideshow/source/engine/animationnodes/basenode.cxx +++ b/slideshow/source/engine/animationnodes/basenode.cxx @@ -18,10 +18,6 @@ */ -// must be first -#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> @@ -680,7 +676,7 @@ void BaseNode::setSelf( const BaseNodeSharedPtr& rSelf ) // Debug -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) void BaseNode::showState() const { const AnimationNode::NodeState eNodeState( getState() ); @@ -728,8 +724,8 @@ void BaseNode::showState() const OUString("Name") ) >>= aName) ) { - SAL_INFO("slideshow.verbose" "Node info: n" << - (const char*)this+debugGetCurrentOffset(), + SAL_INFO("slideshow.verbose", "Node info: n" << + (const char*)this+debugGetCurrentOffset() << ", name \"" << aName << "\""); diff --git a/slideshow/source/engine/animationnodes/basenode.hxx b/slideshow/source/engine/animationnodes/basenode.hxx index 799feac24d0f..4e9e5c527374 100644 --- a/slideshow/source/engine/animationnodes/basenode.hxx +++ b/slideshow/source/engine/animationnodes/basenode.hxx @@ -19,7 +19,6 @@ #ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_BASENODE_HXX #define INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_BASENODE_HXX -#include <canvas/debug.hxx> #include <tools/diagnose_ex.h> #include <osl/diagnose.hxx> @@ -94,7 +93,7 @@ public: void setSelf( const ::boost::shared_ptr< BaseNode >& rSelf ); -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual void showState() const; virtual const char* getDescription() const; #endif diff --git a/slideshow/source/engine/animationnodes/generateevent.cxx b/slideshow/source/engine/animationnodes/generateevent.cxx index 65a3421793b7..76a778c4acec 100644 --- a/slideshow/source/engine/animationnodes/generateevent.cxx +++ b/slideshow/source/engine/animationnodes/generateevent.cxx @@ -18,10 +18,7 @@ */ -// must be first -#include <canvas/debug.hxx> #include <tools/diagnose_ex.h> -#include <canvas/verbosetrace.hxx> #include <com/sun/star/drawing/XShape.hpp> #include <com/sun/star/animations/XAnimationNode.hpp> diff --git a/slideshow/source/engine/animationnodes/nodetools.cxx b/slideshow/source/engine/animationnodes/nodetools.cxx index c1dc398fcd2c..1d0b122f6444 100644 --- a/slideshow/source/engine/animationnodes/nodetools.cxx +++ b/slideshow/source/engine/animationnodes/nodetools.cxx @@ -18,10 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include <com/sun/star/animations/Timing.hpp> #include <tools.hxx> @@ -34,7 +30,7 @@ namespace slideshow { namespace internal { -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) int& debugGetCurrentOffset() { static int lcl_nOffset = 0; // to make each tree output distinct diff --git a/slideshow/source/engine/animationnodes/nodetools.hxx b/slideshow/source/engine/animationnodes/nodetools.hxx index 1e7a5a04e393..984fe1581053 100644 --- a/slideshow/source/engine/animationnodes/nodetools.hxx +++ b/slideshow/source/engine/animationnodes/nodetools.hxx @@ -30,7 +30,7 @@ #include "attributableshape.hxx" -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) # define DEBUG_NODES_SHOWTREE(a) debugNodesShowTree(a); #else # define DEBUG_NODES_SHOWTREE(a) @@ -44,7 +44,7 @@ namespace slideshow // Tools -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) int& debugGetCurrentOffset(); void debugNodesShowTree( const BaseNode* ); #endif diff --git a/slideshow/source/engine/animationnodes/paralleltimecontainer.hxx b/slideshow/source/engine/animationnodes/paralleltimecontainer.hxx index 1a8e496f62a3..ddc5c18c7925 100644 --- a/slideshow/source/engine/animationnodes/paralleltimecontainer.hxx +++ b/slideshow/source/engine/animationnodes/paralleltimecontainer.hxx @@ -38,7 +38,7 @@ public: const NodeContext& rContext ) : BaseContainerNode( xNode, rParent, rContext ) {} -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual const char* getDescription() const { return "ParallelTimeContainer"; } #endif diff --git a/slideshow/source/engine/animationnodes/propertyanimationnode.cxx b/slideshow/source/engine/animationnodes/propertyanimationnode.cxx index c589d73eb080..68bf6497df9c 100644 --- a/slideshow/source/engine/animationnodes/propertyanimationnode.cxx +++ b/slideshow/source/engine/animationnodes/propertyanimationnode.cxx @@ -18,10 +18,6 @@ */ -// must be first -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include "propertyanimationnode.hxx" #include "animationfactory.hxx" diff --git a/slideshow/source/engine/animationnodes/propertyanimationnode.hxx b/slideshow/source/engine/animationnodes/propertyanimationnode.hxx index 6c9891254920..41a510164751 100644 --- a/slideshow/source/engine/animationnodes/propertyanimationnode.hxx +++ b/slideshow/source/engine/animationnodes/propertyanimationnode.hxx @@ -34,7 +34,7 @@ public: NodeContext const& rContext ) : AnimationBaseNode( xNode, pParent, rContext ) {} -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual const char* getDescription() const { return "PropertyAnimationNode"; } #endif diff --git a/slideshow/source/engine/animationnodes/sequentialtimecontainer.cxx b/slideshow/source/engine/animationnodes/sequentialtimecontainer.cxx index 7a53e33f1fb7..56dcf0c89814 100644 --- a/slideshow/source/engine/animationnodes/sequentialtimecontainer.cxx +++ b/slideshow/source/engine/animationnodes/sequentialtimecontainer.cxx @@ -18,9 +18,6 @@ */ -#include <canvas/debug.hxx> -#include <canvas/verbosetrace.hxx> - #include "delayevent.hxx" #include "eventqueue.hxx" #include "usereventqueue.hxx" diff --git a/slideshow/source/engine/animationnodes/sequentialtimecontainer.hxx b/slideshow/source/engine/animationnodes/sequentialtimecontainer.hxx index 490f084ef678..7eb281c4be88 100644 --- a/slideshow/source/engine/animationnodes/sequentialtimecontainer.hxx +++ b/slideshow/source/engine/animationnodes/sequentialtimecontainer.hxx @@ -38,7 +38,7 @@ public: NodeContext const& rContext ) : BaseContainerNode( xNode, pParent, rContext ) {} -#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL) +#if defined(DBG_UTIL) virtual const char* getDescription() const { return "SequentialTimeContainer"; } #endif diff --git a/slideshow/source/engine/animationnodes/setactivity.hxx b/slideshow/source/engine/animationnodes/setactivity.hxx index 2f94d62b3841..d96a35bcc2ca 100644 --- a/slideshow/source/engine/animationnodes/setactivity.hxx +++ b/slideshow/source/engine/animationnodes/setactivity.hxx @@ -19,10 +19,7 @@ #ifndef INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_SETACTIVITY_HXX #define INCLUDED_SLIDESHOW_SOURCE_ENGINE_ANIMATIONNODES_SETACTIVITY_HXX -// must be first -#include <canvas/debug.hxx> #include <tools/diagnose_ex.h> -#include <canvas/verbosetrace.hxx> #include "animationactivity.hxx" #include "animation.hxx" |