summaryrefslogtreecommitdiff
path: root/slideshow/source/engine/transitions
diff options
context:
space:
mode:
authorThorsten Behrens <tbehrens@suse.com>2012-01-09 18:48:39 +0100
committerThorsten Behrens <tbehrens@suse.com>2012-01-09 18:48:56 +0100
commitce123a5c6fedb7343428033d1cd82d97aa2cef34 (patch)
tree72ff95c6babc7e9058a28df996ae4ca5c4b0e0d0 /slideshow/source/engine/transitions
parent53ec7e3b2c1e0fdcd72c30a36ede77319bab4969 (diff)
Fix totally busted whitespace in slideshow module.
Diffstat (limited to 'slideshow/source/engine/transitions')
-rw-r--r--slideshow/source/engine/transitions/slidetransitionfactory.cxx130
1 files changed, 67 insertions, 63 deletions
diff --git a/slideshow/source/engine/transitions/slidetransitionfactory.cxx b/slideshow/source/engine/transitions/slidetransitionfactory.cxx
index afe3a956dd3a..c76527fbc67c 100644
--- a/slideshow/source/engine/transitions/slidetransitionfactory.cxx
+++ b/slideshow/source/engine/transitions/slidetransitionfactory.cxx
@@ -26,7 +26,6 @@
*
************************************************************************/
-
#include <canvas/debug.hxx>
#include <tools/diagnose_ex.h>
@@ -147,54 +146,54 @@ public:
rEventMultiplexer ),
maTransitions(),
mbSuccess( false ),
- mnTransitionType( nTransitionType ),
- mnTransitionSubType( nTransitionSubType ),
- mxFactory( xFactory )
+ mnTransitionType( nTransitionType ),
+ mnTransitionSubType( nTransitionSubType ),
+ mxFactory( xFactory )
{
// create one transition per view
UnoViewVector::const_iterator aCurrView (rViewContainer.begin());
const UnoViewVector::const_iterator aEnd(rViewContainer.end());
while( aCurrView != aEnd )
{
- if(! addTransition( *aCurrView ) )
- return;
+ if(! addTransition( *aCurrView ) )
+ return;
ENSURE_OR_THROW(maTransitions.back() && maTransitions.back()->mxTransition.is(),
"Failed to create plugin transition");
++aCurrView;
}
- mbSuccess = true;
+ mbSuccess = true;
}
~PluginSlideChange()
{
- mxFactory.clear();
+ mxFactory.clear();
::std::vector< TransitionViewPair* >::const_iterator aCurrView (maTransitions.begin());
::std::vector< TransitionViewPair* >::const_iterator aEnd(maTransitions.end());
while( aCurrView != aEnd )
{
- delete (*aCurrView);
+ delete (*aCurrView);
++aCurrView;
- }
- maTransitions.clear();
+ }
+ maTransitions.clear();
}
bool addTransition( const UnoViewSharedPtr& rView )
{
- uno::Reference<presentation::XTransition> rTransition = mxFactory->createTransition(
- mnTransitionType,
- mnTransitionSubType,
- rView->getUnoView(),
- getLeavingBitmap(ViewEntry(rView))->getXBitmap(),
- getEnteringBitmap(ViewEntry(rView))->getXBitmap() );
-
- if( rTransition.is() )
- maTransitions.push_back( new TransitionViewPair( rTransition, rView ) );
- else
- return false;
+ uno::Reference<presentation::XTransition> rTransition = mxFactory->createTransition(
+ mnTransitionType,
+ mnTransitionSubType,
+ rView->getUnoView(),
+ getLeavingBitmap(ViewEntry(rView))->getXBitmap(),
+ getEnteringBitmap(ViewEntry(rView))->getXBitmap() );
+
+ if( rTransition.is() )
+ maTransitions.push_back( new TransitionViewPair( rTransition, rView ) );
+ else
+ return false;
- return true;
+ return true;
}
virtual bool operator()( double t )
@@ -214,83 +213,87 @@ public:
// ViewEventHandler
virtual void viewAdded( const UnoViewSharedPtr& rView )
{
- OSL_TRACE("PluginSlideChange viewAdded");
- SlideChangeBase::viewAdded( rView );
+ OSL_TRACE("PluginSlideChange viewAdded");
+ SlideChangeBase::viewAdded( rView );
::std::vector< TransitionViewPair* >::const_iterator aCurrView (maTransitions.begin());
::std::vector< TransitionViewPair* >::const_iterator aEnd(maTransitions.end());
- bool bKnown = false;
+ bool bKnown = false;
while( aCurrView != aEnd )
{
- if( (*aCurrView)->mpView == rView ) {
- bKnown = true;
- break;
- }
+ if( (*aCurrView)->mpView == rView )
+ {
+ bKnown = true;
+ break;
+ }
++aCurrView;
- }
-
- if( !bKnown ) {
- OSL_TRACE("need to be added");
+ }
- addTransition( rView );
- }
+ if( !bKnown )
+ {
+ OSL_TRACE("need to be added");
+ addTransition( rView );
+ }
}
virtual void viewRemoved( const UnoViewSharedPtr& rView )
{
- OSL_TRACE("PluginSlideChange viewRemoved");
- SlideChangeBase::viewRemoved( rView );
+ OSL_TRACE("PluginSlideChange viewRemoved");
+ SlideChangeBase::viewRemoved( rView );
::std::vector< TransitionViewPair* >::iterator aCurrView (maTransitions.begin());
::std::vector< TransitionViewPair* >::const_iterator aEnd(maTransitions.end());
while( aCurrView != aEnd )
{
- if( (*aCurrView)->mpView == rView ) {
- OSL_TRACE( "view removed" );
- delete (*aCurrView);
- maTransitions.erase( aCurrView );
- break;
- }
+ if( (*aCurrView)->mpView == rView )
+ {
+ OSL_TRACE( "view removed" );
+ delete (*aCurrView);
+ maTransitions.erase( aCurrView );
+ break;
+ }
++aCurrView;
- }
+ }
}
virtual void viewChanged( const UnoViewSharedPtr& rView )
{
- OSL_TRACE("PluginSlideChange viewChanged");
- SlideChangeBase::viewChanged( rView );
+ OSL_TRACE("PluginSlideChange viewChanged");
+ SlideChangeBase::viewChanged( rView );
::std::vector< TransitionViewPair* >::const_iterator aCurrView (maTransitions.begin());
::std::vector< TransitionViewPair* >::const_iterator aEnd(maTransitions.end());
while( aCurrView != aEnd )
{
- if( (*aCurrView)->mpView == rView ) {
- OSL_TRACE( "view changed" );
- (*aCurrView)->mxTransition->viewChanged( rView->getUnoView(),
- getLeavingBitmap(ViewEntry(rView))->getXBitmap(),
- getEnteringBitmap(ViewEntry(rView))->getXBitmap() );
- } else
- OSL_TRACE( "view did not changed" );
+ if( (*aCurrView)->mpView == rView )
+ {
+ OSL_TRACE( "view changed" );
+ (*aCurrView)->mxTransition->viewChanged( rView->getUnoView(),
+ getLeavingBitmap(ViewEntry(rView))->getXBitmap(),
+ getEnteringBitmap(ViewEntry(rView))->getXBitmap() );
+ }
+ else
+ OSL_TRACE( "view did not changed" );
++aCurrView;
- }
+ }
}
virtual void viewsChanged()
{
- OSL_TRACE("PluginSlideChange viewsChanged");
- SlideChangeBase::viewsChanged();
+ OSL_TRACE("PluginSlideChange viewsChanged");
+ SlideChangeBase::viewsChanged();
::std::vector< TransitionViewPair* >::const_iterator aCurrView (maTransitions.begin());
::std::vector< TransitionViewPair* >::const_iterator aEnd(maTransitions.end());
while( aCurrView != aEnd )
{
- OSL_TRACE( "view changed" );
- (*aCurrView)->mxTransition->viewChanged( (*aCurrView)->mpView->getUnoView(),
- getLeavingBitmap(ViewEntry((*aCurrView)->mpView))->getXBitmap(),
- getEnteringBitmap(ViewEntry((*aCurrView)->mpView))->getXBitmap() );
+ OSL_TRACE( "view changed" );
+ (*aCurrView)->mxTransition->viewChanged( (*aCurrView)->mpView->getUnoView(),
+ getLeavingBitmap(ViewEntry((*aCurrView)->mpView))->getXBitmap(),
+ getEnteringBitmap(ViewEntry((*aCurrView)->mpView))->getXBitmap() );
++aCurrView;
- }
+ }
}
private:
@@ -920,7 +923,8 @@ NumberAnimationSharedPtr createPluginTransition(
if( pTransition->Success() )
return NumberAnimationSharedPtr( pTransition );
- else {
+ else
+ {
delete pTransition;
return NumberAnimationSharedPtr();
}