diff options
Diffstat (limited to 'slideshow/source/engine/transitions')
52 files changed, 407 insertions, 407 deletions
diff --git a/slideshow/source/engine/transitions/barndoorwipe.cxx b/slideshow/source/engine/transitions/barndoorwipe.cxx index 2fa0f6517a5b..db7458513ca0 100644 --- a/slideshow/source/engine/transitions/barndoorwipe.cxx +++ b/slideshow/source/engine/transitions/barndoorwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,14 +42,14 @@ namespace internal { { if (m_doubled) t /= 2.0; - + basegfx::B2DHomMatrix aTransform(basegfx::tools::createTranslateB2DHomMatrix(-0.5, -0.5)); aTransform.scale( ::basegfx::pruneScaleValue(t), 1.0 ); aTransform.translate( 0.5, 0.5 ); ::basegfx::B2DPolygon poly( m_unitRect ); poly.transform( aTransform ); ::basegfx::B2DPolyPolygon res(poly); - + if (m_doubled) { aTransform = basegfx::tools::createTranslateB2DHomMatrix(-0.5, -0.5); aTransform.rotate( M_PI_2 ); @@ -57,7 +57,7 @@ namespace internal { poly.transform( aTransform ); res.append(poly); } - + return res; } diff --git a/slideshow/source/engine/transitions/barndoorwipe.hxx b/slideshow/source/engine/transitions/barndoorwipe.hxx index ddec5ed862b0..e16c20c9c3eb 100644 --- a/slideshow/source/engine/transitions/barndoorwipe.hxx +++ b/slideshow/source/engine/transitions/barndoorwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/barwipepolypolygon.cxx b/slideshow/source/engine/transitions/barwipepolypolygon.cxx index 0c01212c0d14..9ba681fa64ef 100644 --- a/slideshow/source/engine/transitions/barwipepolypolygon.cxx +++ b/slideshow/source/engine/transitions/barwipepolypolygon.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/barwipepolypolygon.hxx b/slideshow/source/engine/transitions/barwipepolypolygon.hxx index a8bdd2664431..1a816252eb90 100644 --- a/slideshow/source/engine/transitions/barwipepolypolygon.hxx +++ b/slideshow/source/engine/transitions/barwipepolypolygon.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/boxwipe.cxx b/slideshow/source/engine/transitions/boxwipe.cxx index 7b522eb48bc4..5fb085c401c6 100644 --- a/slideshow/source/engine/transitions/boxwipe.cxx +++ b/slideshow/source/engine/transitions/boxwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,7 +47,7 @@ namespace internal { } else { aTransform.scale( d, d ); } - + ::basegfx::B2DPolyPolygon res( m_unitRect ); res.transform( aTransform ); return res; diff --git a/slideshow/source/engine/transitions/boxwipe.hxx b/slideshow/source/engine/transitions/boxwipe.hxx index ac2ed0972c0f..e04813bd3208 100644 --- a/slideshow/source/engine/transitions/boxwipe.hxx +++ b/slideshow/source/engine/transitions/boxwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,7 +45,7 @@ public: virtual ::basegfx::B2DPolyPolygon operator () ( double t ); private: const bool m_topCentered; - const ::basegfx::B2DPolyPolygon m_unitRect; + const ::basegfx::B2DPolyPolygon m_unitRect; }; } diff --git a/slideshow/source/engine/transitions/checkerboardwipe.cxx b/slideshow/source/engine/transitions/checkerboardwipe.cxx index 630c046d438f..786eca0e51d7 100644 --- a/slideshow/source/engine/transitions/checkerboardwipe.cxx +++ b/slideshow/source/engine/transitions/checkerboardwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -40,9 +40,9 @@ namespace internal { { const double d = (1.0 / m_unitsPerEdge); ::basegfx::B2DHomMatrix aTransform; - aTransform.scale( ::basegfx::pruneScaleValue( d * 2.0 * t ), + aTransform.scale( ::basegfx::pruneScaleValue( d * 2.0 * t ), ::basegfx::pruneScaleValue( d ) ); - + ::basegfx::B2DPolyPolygon res; for ( sal_Int32 i = m_unitsPerEdge; i--; ) { diff --git a/slideshow/source/engine/transitions/checkerboardwipe.hxx b/slideshow/source/engine/transitions/checkerboardwipe.hxx index 8a8ac15c6de1..b78d20885b55 100644 --- a/slideshow/source/engine/transitions/checkerboardwipe.hxx +++ b/slideshow/source/engine/transitions/checkerboardwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/clippingfunctor.cxx b/slideshow/source/engine/transitions/clippingfunctor.cxx index cef1e821f8f0..7bd52246233b 100644 --- a/slideshow/source/engine/transitions/clippingfunctor.cxx +++ b/slideshow/source/engine/transitions/clippingfunctor.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -39,9 +39,9 @@ #include <basegfx/polygon/b2dpolypolygoncutter.hxx> #include <basegfx/matrix/b2dhommatrixtools.hxx> -namespace slideshow +namespace slideshow { - namespace internal + namespace internal { ClippingFunctor::ClippingFunctor(const ParametricPolyPolygonSharedPtr& rPolygon, const TransitionInfo& rTransitionInfo, @@ -58,21 +58,21 @@ namespace slideshow { ENSURE_OR_THROW( rPolygon, "ClippingFunctor::ClippingFunctor(): Invalid parametric polygon" ); - + // maBackgroundRect serves as the minuent when // subtracting a given clip polygon from the // background. To speed up the clipper algo, avoid // actual intersections of the generated // poly-polygon with the minuent - i.e. choose the // polygon to subtract from sufficiently large. - + // blow up unit rect to (-1,-1),(2,2) // AW: Not needed, just use range // ::basegfx::B2DHomMatrix aMatrix; // aMatrix.scale(3.0,3.0); // aMatrix.translate(-1.0,-1.0); // maBackgroundRect.transform( aMatrix ); - + // extract modification info from maTransitionInfo // ----------------------------------------------- @@ -114,18 +114,18 @@ namespace slideshow false, "TransitionFactory::TransitionFactory(): Unexpected reverse method" ); break; - + case TransitionInfo::REVERSEMETHOD_IGNORE: - break; - + break; + case TransitionInfo::REVERSEMETHOD_INVERT_SWEEP: mbForwardParameterSweep = !mbForwardParameterSweep; break; - + case TransitionInfo::REVERSEMETHOD_SUBTRACT_POLYGON: mbSubtractPolygon = !mbSubtractPolygon; break; - + case TransitionInfo::REVERSEMETHOD_SUBTRACT_AND_INVERT: mbForwardParameterSweep = !mbForwardParameterSweep; mbSubtractPolygon = !mbSubtractPolygon; @@ -135,13 +135,13 @@ namespace slideshow maStaticTransformation = basegfx::tools::createRotateAroundPoint(0.5, 0.5, M_PI) * maStaticTransformation; break; - + case TransitionInfo::REVERSEMETHOD_FLIP_X: maStaticTransformation = basegfx::tools::createScaleTranslateB2DHomMatrix(-1.0, 1.0, 1.0, 0.0) * maStaticTransformation; mbFlip = true; break; - + case TransitionInfo::REVERSEMETHOD_FLIP_Y: maStaticTransformation = basegfx::tools::createScaleTranslateB2DHomMatrix(1.0, -1.0, 0.0, 1.0) * maStaticTransformation; @@ -149,7 +149,7 @@ namespace slideshow break; } } - + if( !bModeIn ) { // client has requested 'out' mode. Apply @@ -158,18 +158,18 @@ namespace slideshow mbForwardParameterSweep = !mbForwardParameterSweep; else mbSubtractPolygon = !mbSubtractPolygon; - } + } } - ::basegfx::B2DPolyPolygon ClippingFunctor::operator()( double nValue, - const ::basegfx::B2DSize& rTargetSize ) + ::basegfx::B2DPolyPolygon ClippingFunctor::operator()( double nValue, + const ::basegfx::B2DSize& rTargetSize ) { // modify clip polygon according to static // transformation plus current shape size ::basegfx::B2DHomMatrix aMatrix( maStaticTransformation ); - + // retrieve current clip polygon - ::basegfx::B2DPolyPolygon aClipPoly = (*mpParametricPoly)( + ::basegfx::B2DPolyPolygon aClipPoly = (*mpParametricPoly)( mbForwardParameterSweep ? nValue : 1.0 - nValue ); // TODO(Q4): workaround here, better be fixed in cppcanvas @@ -178,17 +178,17 @@ namespace slideshow if (mbFlip) aClipPoly.flip(); - + // currently, clipper cannot cope with curves. Subdivide first // AW: Should be no longer necessary; clipping tools are now bezier-safe // if( aClipPoly.areControlPointsUsed() ) // aClipPoly = ::basegfx::tools::adaptiveSubdivideByAngle(aClipPoly); - + if( mbSubtractPolygon ) { // subtract given polygon from background // rect. Do that before any transformations. - + // calc maBackgroundRect \ aClipPoly // ================================= @@ -212,7 +212,7 @@ namespace slideshow aClipPoly = basegfx::tools::solvePolygonOperationDiff(aBackgroundPolyPoly, aClipPoly); } } - + // scale polygon up to current shape size if( mbScaleIsotrophically ) { @@ -227,10 +227,10 @@ namespace slideshow aMatrix.scale( rTargetSize.getX(), rTargetSize.getY() ); } - + // apply cumulative transformation to clip polygon aClipPoly.transform( aMatrix ); - + return aClipPoly; } diff --git a/slideshow/source/engine/transitions/clippingfunctor.hxx b/slideshow/source/engine/transitions/clippingfunctor.hxx index 05a521233930..9775148e4bc7 100644 --- a/slideshow/source/engine/transitions/clippingfunctor.hxx +++ b/slideshow/source/engine/transitions/clippingfunctor.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -36,18 +36,18 @@ #include <parametricpolypolygon.hxx> -namespace slideshow +namespace slideshow { - namespace internal + namespace internal { /** Generates the final clipping polygon. This class serves as the functor, which generates the final clipping polygon from a given ParametricPolyPolygon - and a TransitionInfo. + and a TransitionInfo. The ParametricPolyPolygon can be obtained from the - ParametricPolyPolygonFactory, see there. + ParametricPolyPolygonFactory, see there. The TransitionInfo further parameterizes the polygon generated by the ParametricPolyPolygon, with common @@ -64,7 +64,7 @@ namespace slideshow const TransitionInfo& rTransitionInfo, bool bDirectionForward, bool bModeIn ); - + /** Generate clip polygon. @param nValue @@ -75,9 +75,9 @@ namespace slideshow Size the clip polygon should cover. This is typically the size of the object the effect is applied on. */ - ::basegfx::B2DPolyPolygon operator()( double nValue, + ::basegfx::B2DPolyPolygon operator()( double nValue, const ::basegfx::B2DSize& rTargetSize ); - + private: ParametricPolyPolygonSharedPtr mpParametricPoly; ::basegfx::B2DHomMatrix maStaticTransformation; diff --git a/slideshow/source/engine/transitions/clockwipe.cxx b/slideshow/source/engine/transitions/clockwipe.cxx index c6eecf0873f5..0d4d23fb1236 100644 --- a/slideshow/source/engine/transitions/clockwipe.cxx +++ b/slideshow/source/engine/transitions/clockwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/clockwipe.hxx b/slideshow/source/engine/transitions/clockwipe.hxx index 895c9058d5aa..845e54149e86 100644 --- a/slideshow/source/engine/transitions/clockwipe.hxx +++ b/slideshow/source/engine/transitions/clockwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/combtransition.cxx b/slideshow/source/engine/transitions/combtransition.cxx index 59118cf923c6..22bb77b7c1b7 100644 --- a/slideshow/source/engine/transitions/combtransition.cxx +++ b/slideshow/source/engine/transitions/combtransition.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,28 +54,28 @@ basegfx::B2DPolyPolygon createClipPolygon( // create clip polygon in standard orientation (will later // be rotated to match direction vector) ::basegfx::B2DPolyPolygon aClipPoly; - + // create nNumStrips/2 vertical strips for( int i=nOffset; i<nNumStrips; i+=2 ) { - aClipPoly.append( - ::basegfx::tools::createPolygonFromRect( + aClipPoly.append( + ::basegfx::tools::createPolygonFromRect( ::basegfx::B2DRectangle( double(i)/nNumStrips, 0.0, double(i+1)/nNumStrips, 1.0) ) ); - + } - + // rotate polygons, such that the strips are parallel to // the given direction vector const ::basegfx::B2DVector aUpVec(0.0, 1.0); basegfx::B2DHomMatrix aMatrix(basegfx::tools::createRotateAroundPoint(0.5, 0.5, aUpVec.angle( rDirection ))); - + // blow up clip polygon to slide size aMatrix.scale( rSlideSize.getX(), rSlideSize.getY() ); - + aClipPoly.transform( aMatrix ); - + return aClipPoly; } @@ -99,7 +99,7 @@ CombTransition::CombTransition( { } -void CombTransition::renderComb( double t, +void CombTransition::renderComb( double t, const ViewEntry& rViewEntry ) const { const SlideBitmapSharedPtr& pEnteringBitmap = getEnteringBitmap(rViewEntry); @@ -107,7 +107,7 @@ void CombTransition::renderComb( double t, if( !pEnteringBitmap || !pCanvas_ ) return; - + // calc bitmap offsets. The enter/leaving bitmaps are only // as large as the actual slides. For scaled-down // presentations, we have to move the left, top edge of @@ -115,20 +115,20 @@ void CombTransition::renderComb( double t, // given view transform. The aBitmapPosPixel local // variable is already in device coordinate space // (i.e. pixel). - + // TODO(F2): Properly respect clip here. Might have to be transformed, too. const basegfx::B2DHomMatrix viewTransform( rViewEntry.mpView->getTransformation() ); const basegfx::B2DPoint pageOrigin( viewTransform * basegfx::B2DPoint() ); - + // change transformation on cloned canvas to be in // device pixel cppcanvas::CanvasSharedPtr pCanvas( pCanvas_->clone() ); basegfx::B2DPoint p; - + // TODO(Q2): Use basegfx bitmaps here // TODO(F1): SlideBitmap is not fully portable between different canvases! - const basegfx::B2DSize enteringSizePixel( + const basegfx::B2DSize enteringSizePixel( getEnteringSlideSizePixel( rViewEntry.mpView) ); const basegfx::B2DVector aPushDirection = basegfx::B2DVector( @@ -141,9 +141,9 @@ void CombTransition::renderComb( double t, createClipPolygon( maPushDirectionUnit, enteringSizePixel, mnNumStripes, 1 ) ); - + SlideBitmapSharedPtr const & pLeavingBitmap = getLeavingBitmap(rViewEntry); - if( pLeavingBitmap ) + if( pLeavingBitmap ) { // render odd strips: pLeavingBitmap->clip( aClipPolygon1 ); @@ -151,7 +151,7 @@ void CombTransition::renderComb( double t, p = basegfx::B2DPoint( pageOrigin + (t * aPushDirection) ); pCanvas->setTransformation(basegfx::tools::createTranslateB2DHomMatrix(p.getX(), p.getY())); pLeavingBitmap->draw( pCanvas ); - + // render even strips: pLeavingBitmap->clip( aClipPolygon2 ); // don't modify bitmap object (no move!): @@ -159,17 +159,17 @@ void CombTransition::renderComb( double t, pCanvas->setTransformation(basegfx::tools::createTranslateB2DHomMatrix(p.getX(), p.getY())); pLeavingBitmap->draw( pCanvas ); } - + // TODO(Q2): Use basegfx bitmaps here // TODO(F1): SlideBitmap is not fully portable between different canvases! - + // render odd strips: pEnteringBitmap->clip( aClipPolygon1 ); // don't modify bitmap object (no move!): p = basegfx::B2DPoint( pageOrigin + ((t - 1.0) * aPushDirection) ); pCanvas->setTransformation(basegfx::tools::createTranslateB2DHomMatrix(p.getX(), p.getY())); pEnteringBitmap->draw( pCanvas ); - + // render even strips: pEnteringBitmap->clip( aClipPolygon2 ); // don't modify bitmap object (no move!): @@ -182,9 +182,9 @@ bool CombTransition::operator()( double t ) { std::for_each( beginViews(), endViews(), - boost::bind( &CombTransition::renderComb, - this, - t, + boost::bind( &CombTransition::renderComb, + this, + t, _1 )); getScreenUpdater().notifyUpdate(); diff --git a/slideshow/source/engine/transitions/combtransition.hxx b/slideshow/source/engine/transitions/combtransition.hxx index b8014a6d5ef1..2ef5309db08d 100644 --- a/slideshow/source/engine/transitions/combtransition.hxx +++ b/slideshow/source/engine/transitions/combtransition.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -35,7 +35,7 @@ namespace slideshow { namespace internal { /** Comb transition class. - + This class provides a SlideChangeAnimation, showing a comb-like effect (stripes of alternating push effects). */ @@ -43,7 +43,7 @@ class CombTransition : public SlideChangeBase { public: /** Create the comb transition effect. - + @param nNumStripes Number of comb-like stripes to show in this effect */ @@ -55,14 +55,14 @@ public: EventMultiplexer& rEventMultiplexer, const ::basegfx::B2DVector& rPushDirection, sal_Int32 nNumStripes ); - + // NumberAnimation virtual bool operator()( double x ); - + private: const ::basegfx::B2DVector maPushDirectionUnit; sal_Int32 mnNumStripes; - + void renderComb( double t, const ViewEntry& rViewEntry ) const; }; diff --git a/slideshow/source/engine/transitions/doublediamondwipe.cxx b/slideshow/source/engine/transitions/doublediamondwipe.cxx index 62a9f342ed86..38f94f34ec39 100644 --- a/slideshow/source/engine/transitions/doublediamondwipe.cxx +++ b/slideshow/source/engine/transitions/doublediamondwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -58,7 +58,7 @@ namespace internal { poly.append( ::basegfx::B2DPoint( 0.5, 0.5 - b ) ); poly.setClosed(true); res.append(poly); - + return res; } diff --git a/slideshow/source/engine/transitions/doublediamondwipe.hxx b/slideshow/source/engine/transitions/doublediamondwipe.hxx index ff3880d12ce8..bca71171cc3a 100644 --- a/slideshow/source/engine/transitions/doublediamondwipe.hxx +++ b/slideshow/source/engine/transitions/doublediamondwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/ellipsewipe.cxx b/slideshow/source/engine/transitions/ellipsewipe.cxx index ca1652cdd03b..44b7675d339f 100644 --- a/slideshow/source/engine/transitions/ellipsewipe.cxx +++ b/slideshow/source/engine/transitions/ellipsewipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/ellipsewipe.hxx b/slideshow/source/engine/transitions/ellipsewipe.hxx index 03a2df4d409a..d87adfb29950 100644 --- a/slideshow/source/engine/transitions/ellipsewipe.hxx +++ b/slideshow/source/engine/transitions/ellipsewipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/fanwipe.cxx b/slideshow/source/engine/transitions/fanwipe.cxx index 43476e0a01fd..3f4539843cb2 100644 --- a/slideshow/source/engine/transitions/fanwipe.cxx +++ b/slideshow/source/engine/transitions/fanwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,21 +45,21 @@ namespace internal { ::basegfx::B2DPolygon poly( ClockWipe::calcCenteredClock( t / ((m_center && m_single) ? 2.0 : 4.0) ) ); - + res.append( poly ); // flip on y-axis: poly.transform(basegfx::tools::createScaleB2DHomMatrix(-1.0, 1.0)); poly.flip(); res.append( poly ); - - if (m_center) + + if (m_center) { res.transform(basegfx::tools::createScaleTranslateB2DHomMatrix(0.5, 0.5, 0.5, 0.5)); - + if (! m_single) res.append( flipOnXAxis(res) ); } - else + else { OSL_ASSERT( ! m_fanIn ); res.transform(basegfx::tools::createScaleTranslateB2DHomMatrix(0.5, 1.0, 0.5, 1.0)); diff --git a/slideshow/source/engine/transitions/fanwipe.hxx b/slideshow/source/engine/transitions/fanwipe.hxx index bb8168897b6d..3cc66b69b197 100644 --- a/slideshow/source/engine/transitions/fanwipe.hxx +++ b/slideshow/source/engine/transitions/fanwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/figurewipe.cxx b/slideshow/source/engine/transitions/figurewipe.cxx index 22a2001487d7..89f55c79526a 100644 --- a/slideshow/source/engine/transitions/figurewipe.cxx +++ b/slideshow/source/engine/transitions/figurewipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/figurewipe.hxx b/slideshow/source/engine/transitions/figurewipe.hxx index 35f56a1400d3..27c4dc4ea593 100644 --- a/slideshow/source/engine/transitions/figurewipe.hxx +++ b/slideshow/source/engine/transitions/figurewipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,7 +42,7 @@ public: static FigureWipe * createStarWipe( sal_Int32 nPoints ); static FigureWipe * createPentagonWipe(); static FigureWipe * createHexagonWipe(); - + virtual ::basegfx::B2DPolyPolygon operator () ( double t ); private: FigureWipe( ::basegfx::B2DPolygon const & figure ) : m_figure(figure) {} diff --git a/slideshow/source/engine/transitions/fourboxwipe.cxx b/slideshow/source/engine/transitions/fourboxwipe.cxx index e003d2435f36..b6eb591c0b32 100644 --- a/slideshow/source/engine/transitions/fourboxwipe.cxx +++ b/slideshow/source/engine/transitions/fourboxwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -43,17 +43,17 @@ namespace internal { { ::basegfx::B2DHomMatrix aTransform; const double d = ::basegfx::pruneScaleValue( t / 2.0 ); - if (m_cornersOut) + if (m_cornersOut) { aTransform = basegfx::tools::createTranslateB2DHomMatrix(-0.5, -0.5); aTransform = basegfx::tools::createScaleTranslateB2DHomMatrix(d, d, -0.25, -0.25) * aTransform; - } - else + } + else { aTransform = basegfx::tools::createScaleTranslateB2DHomMatrix(d, d, -0.5, -0.5); } - + // top left: ::basegfx::B2DPolygon square( m_unitRect ); square.transform( aTransform ); @@ -75,7 +75,7 @@ namespace internal { square4.transform( aTransform ); square4.flip(); // flip direction res.append( square4 ); - + aTransform = basegfx::tools::createTranslateB2DHomMatrix(0.5, 0.5); res.transform( aTransform ); return res; diff --git a/slideshow/source/engine/transitions/fourboxwipe.hxx b/slideshow/source/engine/transitions/fourboxwipe.hxx index 47fe2141a664..d6017b59fae3 100644 --- a/slideshow/source/engine/transitions/fourboxwipe.hxx +++ b/slideshow/source/engine/transitions/fourboxwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/iriswipe.cxx b/slideshow/source/engine/transitions/iriswipe.cxx index 310bff92ff43..ce166ae6ea21 100644 --- a/slideshow/source/engine/transitions/iriswipe.cxx +++ b/slideshow/source/engine/transitions/iriswipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/iriswipe.hxx b/slideshow/source/engine/transitions/iriswipe.hxx index 86200f94aff4..b9cf1f75e6f3 100644 --- a/slideshow/source/engine/transitions/iriswipe.hxx +++ b/slideshow/source/engine/transitions/iriswipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/parametricpolypolygon.hxx b/slideshow/source/engine/transitions/parametricpolypolygon.hxx index 3fbcdffb328d..5603784a79b5 100644 --- a/slideshow/source/engine/transitions/parametricpolypolygon.hxx +++ b/slideshow/source/engine/transitions/parametricpolypolygon.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/parametricpolypolygonfactory.cxx b/slideshow/source/engine/transitions/parametricpolypolygonfactory.cxx index 7823a1dd6452..143f041c7851 100644 --- a/slideshow/source/engine/transitions/parametricpolypolygonfactory.cxx +++ b/slideshow/source/engine/transitions/parametricpolypolygonfactory.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -68,7 +68,7 @@ namespace slideshow { using namespace ::com::sun::star::animations::TransitionType; using namespace ::com::sun::star::animations::TransitionSubType; - + switch (nType) { case BARWIPE: @@ -286,7 +286,7 @@ namespace slideshow return ParametricPolyPolygonSharedPtr( new ZigZagWipe(5) ); case BARNZIGZAGWIPE: return ParametricPolyPolygonSharedPtr( new BarnZigZagWipe(5) ); - + case BOWTIEWIPE: case BARNVEEWIPE: case EYEWIPE: @@ -297,15 +297,15 @@ namespace slideshow // for now, map to barwipe transition return ParametricPolyPolygonSharedPtr( new BarWipePolyPolygon ); - + default: case PUSHWIPE: case SLIDEWIPE: case FADE: - ENSURE_OR_THROW( false, + ENSURE_OR_THROW( false, "createShapeClipPolyPolygonAnimation(): Transition type mismatch" ); } - + return ParametricPolyPolygonSharedPtr(); } } diff --git a/slideshow/source/engine/transitions/parametricpolypolygonfactory.hxx b/slideshow/source/engine/transitions/parametricpolypolygonfactory.hxx index b4279be5bc9f..0d0e72b253ef 100644 --- a/slideshow/source/engine/transitions/parametricpolypolygonfactory.hxx +++ b/slideshow/source/engine/transitions/parametricpolypolygonfactory.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/pinwheelwipe.cxx b/slideshow/source/engine/transitions/pinwheelwipe.cxx index 7cd5b91006c3..a13a70f62c2d 100644 --- a/slideshow/source/engine/transitions/pinwheelwipe.cxx +++ b/slideshow/source/engine/transitions/pinwheelwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/pinwheelwipe.hxx b/slideshow/source/engine/transitions/pinwheelwipe.hxx index d4560b24b8aa..7dff75ff9942 100644 --- a/slideshow/source/engine/transitions/pinwheelwipe.hxx +++ b/slideshow/source/engine/transitions/pinwheelwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/randomwipe.cxx b/slideshow/source/engine/transitions/randomwipe.cxx index 22c51e38852e..af0698d9edb4 100644 --- a/slideshow/source/engine/transitions/randomwipe.cxx +++ b/slideshow/source/engine/transitions/randomwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -66,7 +66,7 @@ RandomWipe::RandomWipe( sal_Int32 nElements, bool randomBars ) aTransform.scale( pedge, pedge ); } m_rect.transform( aTransform ); - + // mix up: for ( sal_Int32 i = (nElements / 2); i--; ) { diff --git a/slideshow/source/engine/transitions/randomwipe.hxx b/slideshow/source/engine/transitions/randomwipe.hxx index 04a00e5a4e14..3eeca283edab 100644 --- a/slideshow/source/engine/transitions/randomwipe.hxx +++ b/slideshow/source/engine/transitions/randomwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/shapetransitionfactory.cxx b/slideshow/source/engine/transitions/shapetransitionfactory.cxx index 667bd6d17c22..ba94e877bd42 100644 --- a/slideshow/source/engine/transitions/shapetransitionfactory.cxx +++ b/slideshow/source/engine/transitions/shapetransitionfactory.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -73,28 +73,28 @@ public: bool bModeIn ); ~ClippingAnimation(); - + // Animation interface // ------------------- virtual void prefetch( const AnimatableShapeSharedPtr& rShape, const ShapeAttributeLayerSharedPtr& rAttrLayer ); - virtual void start( const AnimatableShapeSharedPtr& rShape, + virtual void start( const AnimatableShapeSharedPtr& rShape, const ShapeAttributeLayerSharedPtr& rAttrLayer ); virtual void end(); - + // NumberAnimation interface // ----------------------- virtual bool operator()( double nValue ); virtual double getUnderlyingValue() const; - + private: void end_(); AnimatableShapeSharedPtr mpShape; ShapeAttributeLayerSharedPtr mpAttrLayer; ShapeManagerSharedPtr mpShapeManager; - ClippingFunctor maClippingFunctor; - bool mbSpriteActive; + ClippingFunctor maClippingFunctor; + bool mbSpriteActive; }; ClippingAnimation::ClippingAnimation( @@ -106,9 +106,9 @@ ClippingAnimation::ClippingAnimation( mpShape(), mpAttrLayer(), mpShapeManager( rShapeManager ), - maClippingFunctor( rPolygon, - rTransitionInfo, - bDirectionForward, + maClippingFunctor( rPolygon, + rTransitionInfo, + bDirectionForward, bModeIn ), mbSpriteActive(false) { @@ -123,7 +123,7 @@ ClippingAnimation::~ClippingAnimation() { end_(); } - catch (uno::Exception &) + catch (uno::Exception &) { OSL_ENSURE( false, rtl::OUStringToOString( comphelper::anyToString( @@ -137,8 +137,8 @@ void ClippingAnimation::prefetch( const AnimatableShapeSharedPtr&, { } -void ClippingAnimation::start( const AnimatableShapeSharedPtr& rShape, - const ShapeAttributeLayerSharedPtr& rAttrLayer ) +void ClippingAnimation::start( const AnimatableShapeSharedPtr& rShape, + const ShapeAttributeLayerSharedPtr& rAttrLayer ) { OSL_ENSURE( !mpShape, "ClippingAnimation::start(): Shape already set" ); @@ -185,14 +185,14 @@ bool ClippingAnimation::operator()( double nValue ) ENSURE_OR_RETURN_FALSE( mpAttrLayer && mpShape, "ClippingAnimation::operator(): Invalid ShapeAttributeLayer" ); - + // set new clip mpAttrLayer->setClip( maClippingFunctor( nValue, mpShape->getDomBounds().getRange() ) ); - + if( mpShape->isContentChanged() ) mpShapeManager->notifyShapeUpdate( mpShape ); - + return true; } @@ -201,8 +201,8 @@ double ClippingAnimation::getUnderlyingValue() const ENSURE_OR_THROW( mpAttrLayer, "ClippingAnimation::getUnderlyingValue(): Invalid ShapeAttributeLayer" ); - - return 0.0; // though this should be used in concert with + + return 0.0; // though this should be used in concert with // ActivitiesFactory::createSimpleActivity, better // explicitely name our start value. // Permissible range for operator() above is [0,1] @@ -218,30 +218,30 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( const ::basegfx::B2DVector& rSlideSize, uno::Reference< animations::XTransitionFilter > const& xTransition ) { - return createShapeTransition( rParms, - rShape, - rShapeManager, + return createShapeTransition( rParms, + rShape, + rShapeManager, rSlideSize, - xTransition, - xTransition->getTransition(), + xTransition, + xTransition->getTransition(), xTransition->getSubtype() ); } AnimationActivitySharedPtr TransitionFactory::createShapeTransition( - const ActivitiesFactory::CommonParameters& rParms, - const AnimatableShapeSharedPtr& rShape, - const ShapeManagerSharedPtr& rShapeManager, + const ActivitiesFactory::CommonParameters& rParms, + const AnimatableShapeSharedPtr& rShape, + const ShapeManagerSharedPtr& rShapeManager, const ::basegfx::B2DVector& rSlideSize, - ::com::sun::star::uno::Reference< + ::com::sun::star::uno::Reference< ::com::sun::star::animations::XTransitionFilter > const& xTransition, - sal_Int16 nType, - sal_Int16 nSubType ) + sal_Int16 nType, + sal_Int16 nSubType ) { ENSURE_OR_THROW( xTransition.is(), "TransitionFactory::createShapeTransition(): Invalid XTransition" ); - - const TransitionInfo* pTransitionInfo( + + const TransitionInfo* pTransitionInfo( getTransitionInfo( nType, nSubType ) ); AnimationActivitySharedPtr pGeneratedActivity; @@ -251,24 +251,24 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( { default: case TransitionInfo::TRANSITION_INVALID: - OSL_ENSURE( false, + OSL_ENSURE( false, "TransitionFactory::createShapeTransition(): Invalid transition type. " "Don't ask me for a 0 TransitionType, have no XTransitionFilter node instead!" ); return AnimationActivitySharedPtr(); - + case TransitionInfo::TRANSITION_CLIP_POLYPOLYGON: { // generate parametric poly-polygon - ParametricPolyPolygonSharedPtr pPoly( - ParametricPolyPolygonFactory::createClipPolyPolygon( + ParametricPolyPolygonSharedPtr pPoly( + ParametricPolyPolygonFactory::createClipPolyPolygon( nType, nSubType ) ); - + // create a clip activity from that pGeneratedActivity = ActivitiesFactory::createSimpleActivity( rParms, - NumberAnimationSharedPtr( - new ClippingAnimation( + NumberAnimationSharedPtr( + new ClippingAnimation( pPoly, rShapeManager, *pTransitionInfo, @@ -277,7 +277,7 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( true ); } break; - + case TransitionInfo::TRANSITION_SPECIAL: { switch( nType ) @@ -288,7 +288,7 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( // TransitionFactoryTable const TransitionInfo* pRandomTransitionInfo( getRandomTransitionInfo() ); - + ENSURE_OR_THROW( pRandomTransitionInfo != NULL, "TransitionFactory::createShapeTransition(): Got invalid random transition info" ); @@ -305,12 +305,12 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( pRandomTransitionInfo->mnTransitionSubType ); } break; - + // TODO(F3): Implement slidewipe for shape case animations::TransitionType::SLIDEWIPE: { sal_Int16 nBarWipeSubType(0); - bool bDirectionForward(true); + bool bDirectionForward(true); // map slidewipe to BARWIPE, for now switch( nSubType ) @@ -342,19 +342,19 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( } // generate parametric poly-polygon - ParametricPolyPolygonSharedPtr pPoly( - ParametricPolyPolygonFactory::createClipPolyPolygon( - animations::TransitionType::BARWIPE, + ParametricPolyPolygonSharedPtr pPoly( + ParametricPolyPolygonFactory::createClipPolyPolygon( + animations::TransitionType::BARWIPE, nBarWipeSubType ) ); - + // create a clip activity from that pGeneratedActivity = ActivitiesFactory::createSimpleActivity( rParms, - NumberAnimationSharedPtr( - new ClippingAnimation( + NumberAnimationSharedPtr( + new ClippingAnimation( pPoly, rShapeManager, - *getTransitionInfo( animations::TransitionType::BARWIPE, + *getTransitionInfo( animations::TransitionType::BARWIPE, nBarWipeSubType ), bDirectionForward, xTransition->getMode() ) ), @@ -371,10 +371,10 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( // for now, map all to fade effect pGeneratedActivity = ActivitiesFactory::createSimpleActivity( rParms, - AnimationFactory::createNumberPropertyAnimation( - ::rtl::OUString( + AnimationFactory::createNumberPropertyAnimation( + ::rtl::OUString( RTL_CONSTASCII_USTRINGPARAM("Opacity") ), - rShape, + rShape, rShapeManager, rSlideSize ), xTransition->getMode() ); @@ -388,7 +388,7 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( if( !pGeneratedActivity ) { - // No animation generated, maybe no table entry for given + // No animation generated, maybe no table entry for given // transition? OSL_TRACE( "TransitionFactory::createShapeTransition(): Unknown type/subtype (%d/%d) " @@ -400,7 +400,7 @@ AnimationActivitySharedPtr TransitionFactory::createShapeTransition( "TransitionFactory::createShapeTransition(): Unknown type/subtype " "combination encountered" ); } - + return pGeneratedActivity; } diff --git a/slideshow/source/engine/transitions/slidechangebase.cxx b/slideshow/source/engine/transitions/slidechangebase.cxx index 466052b67900..533d2abf7a51 100644 --- a/slideshow/source/engine/transitions/slidechangebase.cxx +++ b/slideshow/source/engine/transitions/slidechangebase.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,7 +54,7 @@ SlideChangeBase::SlideChangeBase( boost::optional<SlideSharedPtr> const & leavin const UnoViewContainer& rViewContainer, ScreenUpdater& rScreenUpdater, EventMultiplexer& rEventMultiplexer, - bool bCreateLeavingSprites, + bool bCreateLeavingSprites, bool bCreateEnteringSprites ) : mpSoundPlayer( pSoundPlayer ), mrEventMultiplexer(rEventMultiplexer), @@ -77,7 +77,7 @@ SlideChangeBase::SlideChangeBase( boost::optional<SlideSharedPtr> const & leavin SlideBitmapSharedPtr SlideChangeBase::getLeavingBitmap( const ViewEntry& rViewEntry ) const { if( !rViewEntry.mpLeavingBitmap ) - rViewEntry.mpLeavingBitmap = createBitmap(rViewEntry.mpView, + rViewEntry.mpLeavingBitmap = createBitmap(rViewEntry.mpView, maLeavingSlide); return rViewEntry.mpLeavingBitmap; @@ -107,25 +107,25 @@ SlideBitmapSharedPtr SlideChangeBase::createBitmap( const UnoViewSharedPtr& // sprite to black. // create empty, black-filled bitmap - const basegfx::B2ISize slideSizePixel( + const basegfx::B2ISize slideSizePixel( getSlideSizePixel( mpEnteringSlide->getSlideSize(), - rView )); + rView )); cppcanvas::CanvasSharedPtr pCanvas( rView->getCanvas() ); // create a bitmap of appropriate size - cppcanvas::BitmapSharedPtr pBitmap( - cppcanvas::BaseGfxFactory::getInstance().createBitmap( - pCanvas, + cppcanvas::BitmapSharedPtr pBitmap( + cppcanvas::BaseGfxFactory::getInstance().createBitmap( + pCanvas, slideSizePixel ) ); - + ENSURE_OR_THROW( pBitmap, "SlideChangeBase::createBitmap(): Cannot create page bitmap" ); - + cppcanvas::BitmapCanvasSharedPtr pBitmapCanvas( pBitmap->getBitmapCanvas() ); - + ENSURE_OR_THROW( pBitmapCanvas, "SlideChangeBase::createBitmap(): " "Cannot create page bitmap canvas" ); @@ -139,7 +139,7 @@ SlideBitmapSharedPtr SlideChangeBase::createBitmap( const UnoViewSharedPtr& slideSizePixel.getX(), slideSizePixel.getY() ), 0x000000FFU ); - + pRet.reset( new SlideBitmap( pBitmap )); } else @@ -152,13 +152,13 @@ SlideBitmapSharedPtr SlideChangeBase::createBitmap( const UnoViewSharedPtr& ::basegfx::B2ISize SlideChangeBase::getEnteringSlideSizePixel( const UnoViewSharedPtr& pView ) const { - return getSlideSizePixel( mpEnteringSlide->getSlideSize(), + return getSlideSizePixel( mpEnteringSlide->getSlideSize(), pView ); } ::basegfx::B2ISize SlideChangeBase::getLeavingSlideSizePixel( const UnoViewSharedPtr& pView ) const { - return getSlideSizePixel( (*maLeavingSlide)->getSlideSize(), + return getSlideSizePixel( (*maLeavingSlide)->getSlideSize(), pView ); } @@ -181,7 +181,7 @@ void SlideChangeBase::renderBitmap( // render at output position, don't modify bitmap object (no move!): const basegfx::B2DHomMatrix transform(basegfx::tools::createTranslateB2DHomMatrix( pageOrigin.getX(), pageOrigin.getY())); - + pDevicePixelCanvas->setTransformation( transform ); pSlideBitmap->draw( pDevicePixelCanvas ); } @@ -275,10 +275,10 @@ bool SlideChangeBase::operator()( double nValue ) { if( mbFinished ) return false; - - const std::size_t nEntries( maViewData.size() ); + + const std::size_t nEntries( maViewData.size() ); bool bSpritesVisible( mbSpritesVisible ); - + for( ::std::size_t i=0; i<nEntries; ++i ) { // calc sprite offsets. The enter/leaving bitmaps are only @@ -293,7 +293,7 @@ bool SlideChangeBase::operator()( double nValue ) const ::cppcanvas::CanvasSharedPtr& rCanvas( rViewEntry.mpView->getCanvas() ); ::cppcanvas::CustomSpriteSharedPtr& rInSprite( rViewEntry.mpInSprite ); ::cppcanvas::CustomSpriteSharedPtr& rOutSprite( rViewEntry.mpOutSprite ); - + // TODO(F2): Properly respect clip here. // Might have to be transformed, too. @@ -301,14 +301,14 @@ bool SlideChangeBase::operator()( double nValue ) rViewEntry.mpView->getTransformation() ); const ::basegfx::B2DPoint aSpritePosPixel( aViewTransform * ::basegfx::B2DPoint() ); - - // move sprite to final output position, in + + // move sprite to final output position, in // device coordinates if( rOutSprite ) rOutSprite->movePixel( aSpritePosPixel ); if( rInSprite ) rInSprite->movePixel( aSpritePosPixel ); - + if( !mbSpritesVisible ) { if( rOutSprite ) @@ -323,14 +323,14 @@ bool SlideChangeBase::operator()( double nValue ) // TODO(F1): SlideBitmap is not fully portable // between different canvases! - + // render the content OSL_ASSERT( getLeavingBitmap( rViewEntry ) ); if( getLeavingBitmap( rViewEntry ) ) getLeavingBitmap( rViewEntry )->draw( pOutContentCanvas ); } } - + if( rInSprite ) { // only render once: clipping is done @@ -343,20 +343,20 @@ bool SlideChangeBase::operator()( double nValue ) // TODO(F1): SlideBitmap is not fully portable // between different canvases! - + // render the content getEnteringBitmap( rViewEntry )->draw( pInContentCanvas ); } } } - + if( rOutSprite ) performOut( rOutSprite, rViewEntry, rCanvas, nValue ); if( rInSprite ) performIn( rInSprite, rViewEntry, rCanvas, nValue ); - + // finishing deeds for first run. - if( !mbSpritesVisible) + if( !mbSpritesVisible) { // enable sprites: if( rOutSprite ) @@ -366,10 +366,10 @@ bool SlideChangeBase::operator()( double nValue ) bSpritesVisible = true; } } // for_each( sprite ) - + mbSpritesVisible = bSpritesVisible; mrScreenUpdater.notifyUpdate(); - + return true; } @@ -391,7 +391,7 @@ void SlideChangeBase::performOut( double SlideChangeBase::getUnderlyingValue() const { - return 0.0; // though this should be used in concert with + return 0.0; // though this should be used in concert with // ActivitiesFactory::createSimpleActivity, better // explicitely name our start value. // Permissible range for operator() above is [0,1] @@ -420,7 +420,7 @@ void SlideChangeBase::viewRemoved( const UnoViewSharedPtr& rView ) // erase corresponding entry from maViewData maViewData.erase( std::remove_if( - maViewData.begin(), + maViewData.begin(), maViewData.end(), boost::bind( std::equal_to<UnoViewSharedPtr>(), @@ -439,14 +439,14 @@ void SlideChangeBase::viewChanged( const UnoViewSharedPtr& rView ) // find entry corresponding to modified view ViewsVecT::iterator aModifiedEntry( std::find_if( - maViewData.begin(), + maViewData.begin(), maViewData.end(), boost::bind( std::equal_to<UnoViewSharedPtr>(), rView, // select view: boost::bind( &ViewEntry::getView, _1 ) ))); - + OSL_ASSERT( aModifiedEntry != maViewData.end() ); if( aModifiedEntry == maViewData.end() ) return; @@ -471,13 +471,13 @@ void SlideChangeBase::viewsChanged() // resize) clearViewEntry( *aIter ); addSprites( *aIter ); - + ++aIter; } } cppcanvas::CustomSpriteSharedPtr SlideChangeBase::createSprite( - UnoViewSharedPtr const & pView, + UnoViewSharedPtr const & pView, basegfx::B2DSize const & rSpriteSize, double nPrio ) const { @@ -486,7 +486,7 @@ cppcanvas::CustomSpriteSharedPtr SlideChangeBase::createSprite( pView->createSprite( rSpriteSize, nPrio )); - // alpha default is 0.0, which seems to be + // alpha default is 0.0, which seems to be // a bad idea when viewing content... pSprite->setAlpha( 1.0 ); if (mbSpritesVisible) @@ -503,28 +503,28 @@ void SlideChangeBase::addSprites( ViewEntry& rEntry ) const basegfx::B2ISize leavingSlideSizePixel( getLeavingBitmap( rEntry )->getSize() ); - rEntry.mpOutSprite = createSprite( rEntry.mpView, - leavingSlideSizePixel, + rEntry.mpOutSprite = createSprite( rEntry.mpView, + leavingSlideSizePixel, 100 ); } - - if( mbCreateEnteringSprites ) + + if( mbCreateEnteringSprites ) { // create entering sprite: const basegfx::B2ISize enteringSlideSizePixel( getSlideSizePixel( mpEnteringSlide->getSlideSize(), rEntry.mpView )); - rEntry.mpInSprite = createSprite( rEntry.mpView, - enteringSlideSizePixel, + rEntry.mpInSprite = createSprite( rEntry.mpView, + enteringSlideSizePixel, 101 ); } } void SlideChangeBase::clearViewEntry( ViewEntry& rEntry ) { - // clear stale info (both bitmaps and sprites prolly need a - // resize) + // clear stale info (both bitmaps and sprites prolly need a + // resize) rEntry.mpEnteringBitmap.reset(); rEntry.mpLeavingBitmap.reset(); rEntry.mpInSprite.reset(); diff --git a/slideshow/source/engine/transitions/slidechangebase.hxx b/slideshow/source/engine/transitions/slidechangebase.hxx index e0b9c4635996..df4cca31701c 100644 --- a/slideshow/source/engine/transitions/slidechangebase.hxx +++ b/slideshow/source/engine/transitions/slidechangebase.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -42,8 +42,8 @@ #include <boost/optional.hpp> namespace cppcanvas -{ - class Canvas; +{ + class Canvas; class CustomSprite; } @@ -51,7 +51,7 @@ namespace slideshow { namespace internal { /** Base class for all slide change effects. - + This class provides the basic sprite and view handling functionality. Derived classes should normally only need to implement the perform() method. @@ -65,20 +65,20 @@ public: // NumberAnimation virtual bool operator()( double x ); virtual double getUnderlyingValue() const; - + // Animation virtual void prefetch( const AnimatableShapeSharedPtr&, const ShapeAttributeLayerSharedPtr& ); virtual void start( const AnimatableShapeSharedPtr&, const ShapeAttributeLayerSharedPtr& ); - virtual void end(); + virtual void end(); // ViewEventHandler virtual void viewAdded( const UnoViewSharedPtr& rView ); virtual void viewRemoved( const UnoViewSharedPtr& rView ); virtual void viewChanged( const UnoViewSharedPtr& rView ); virtual void viewsChanged(); - + protected: /** Create a new SlideChanger, for the given leaving and entering slides. @@ -90,7 +90,7 @@ protected: const UnoViewContainer& rViewContainer, ScreenUpdater& rScreenUpdater, EventMultiplexer& rEventMultiplexer, - bool bCreateLeavingSprites = true, + bool bCreateLeavingSprites = true, bool bCreateEnteringSprites = true ); /// Info on a per-view basis @@ -98,8 +98,8 @@ protected: { ViewEntry() {} - explicit ViewEntry( const UnoViewSharedPtr& rView ) : - mpView( rView ) + explicit ViewEntry( const UnoViewSharedPtr& rView ) : + mpView( rView ) { } @@ -125,24 +125,24 @@ protected: SlideBitmapSharedPtr getLeavingBitmap( const ViewEntry& rViewEntry ) const; SlideBitmapSharedPtr getEnteringBitmap( const ViewEntry& rViewEntry ) const; - + SlideBitmapSharedPtr createBitmap( const UnoViewSharedPtr& pView, const boost::optional<SlideSharedPtr>& rSlide_ ) const; - + ::basegfx::B2ISize getEnteringSlideSizePixel( const UnoViewSharedPtr& pView ) const; ::basegfx::B2ISize getLeavingSlideSizePixel( const UnoViewSharedPtr& pView ) const; void renderBitmap( SlideBitmapSharedPtr const& pSlideBitmap, - boost::shared_ptr<cppcanvas::Canvas> const& pCanvas ); - + boost::shared_ptr<cppcanvas::Canvas> const& pCanvas ); + /** Called on derived classes to implement actual slide change. - + This method is called with the sprite of the slide coming 'in' - + @param rSprite Current sprite to operate on. This is the sprite of the 'entering' slide - + @param t Current parameter value */ @@ -151,15 +151,15 @@ protected: const ViewEntry& rViewEntry, const boost::shared_ptr<cppcanvas::Canvas>& rDestinationCanvas, double t ); - + /** Called on derived classes to implement actual slide change. - + This method is called with the sprite of the slide moving 'out' - + @param rSprite Current sprite to operate on. This is the sprite of the 'leaving' slide - + @param t Current parameter value */ @@ -172,7 +172,7 @@ protected: ScreenUpdater& getScreenUpdater() const { return mrScreenUpdater; } private: - + boost::shared_ptr<cppcanvas::CustomSprite> createSprite( UnoViewSharedPtr const & pView, ::basegfx::B2DSize const & rSpriteSize, @@ -185,13 +185,13 @@ private: ViewsVecT::const_iterator lookupView( UnoViewSharedPtr const & pView ) const; SoundPlayerSharedPtr mpSoundPlayer; - + EventMultiplexer& mrEventMultiplexer; ScreenUpdater& mrScreenUpdater; ::boost::optional<SlideSharedPtr> maLeavingSlide; SlideSharedPtr mpEnteringSlide; - + ViewsVecT maViewData; const UnoViewContainer& mrViewContainer; diff --git a/slideshow/source/engine/transitions/slidetransitionfactory.cxx b/slideshow/source/engine/transitions/slidetransitionfactory.cxx index ab1ad816d3f6..28636b2fe49f 100644 --- a/slideshow/source/engine/transitions/slidetransitionfactory.cxx +++ b/slideshow/source/engine/transitions/slidetransitionfactory.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -84,7 +84,7 @@ void fillPage( const ::cppcanvas::CanvasSharedPtr& rDestinationCanvas, const ::cppcanvas::CanvasSharedPtr pDevicePixelCanvas( rDestinationCanvas->clone() ); pDevicePixelCanvas->setTransformation( ::basegfx::B2DHomMatrix() ); - + // TODO(F2): Properly respect clip here. // Might have to be transformed, too. const ::basegfx::B2DHomMatrix aViewTransform( @@ -138,7 +138,7 @@ public: ScreenUpdater& rScreenUpdater, const uno::Reference< presentation::XTransitionFactory>& xFactory, - const SoundPlayerSharedPtr& pSoundPlayer, + const SoundPlayerSharedPtr& pSoundPlayer, EventMultiplexer& rEventMultiplexer) : SlideChangeBase( leavingSlide_, pEnteringSlide, @@ -184,7 +184,7 @@ public: bool addTransition( const UnoViewSharedPtr& rView ) { uno::Reference<presentation::XTransition> rTransition = mxFactory->createTransition( - mnTransitionType, + mnTransitionType, mnTransitionSubType, rView->getUnoView(), getLeavingBitmap(ViewEntry(rView))->getXBitmap(), @@ -197,7 +197,7 @@ public: return true; } - + virtual bool operator()( double t ) { std::for_each(maTransitions.begin(), @@ -294,7 +294,7 @@ public: } } -private: +private: // One transition object per view std::vector< TransitionViewPair* > maTransitions; @@ -337,19 +337,19 @@ public: bDirectionForward, true ) {} - + virtual void performIn( const ::cppcanvas::CustomSpriteSharedPtr& rSprite, const ViewEntry& rViewEntry, const ::cppcanvas::CanvasSharedPtr& rDestinationCanvas, double t ); - + virtual void performOut( const ::cppcanvas::CustomSpriteSharedPtr& rSprite, const ViewEntry& rViewEntry, const ::cppcanvas::CanvasSharedPtr& rDestinationCanvas, double t ); - + private: ClippingFunctor maClippingFunctor; }; @@ -365,8 +365,8 @@ void ClippedSlideChange::performIn( // that, getEnteringSizePixel() _guarantees_ to cover the whole // slide bitmap. There's a catch, though: this removes any effect // of the view transformation (e.g. rotation) from the transition. - rSprite->setClipPixel( - maClippingFunctor( t, + rSprite->setClipPixel( + maClippingFunctor( t, getEnteringSlideSizePixel(rViewEntry.mpView) ) ); } @@ -403,19 +403,19 @@ public: maFadeColor( rFadeColor ), mbFirstTurn( true ) {} - + virtual void performIn( const ::cppcanvas::CustomSpriteSharedPtr& rSprite, const ViewEntry& rViewEntry, const ::cppcanvas::CanvasSharedPtr& rDestinationCanvas, double t ); - + virtual void performOut( const ::cppcanvas::CustomSpriteSharedPtr& rSprite, const ViewEntry& rViewEntry, const ::cppcanvas::CanvasSharedPtr& rDestinationCanvas, double t ); - + private: const boost::optional< RGBColor > maFadeColor; bool mbFirstTurn; @@ -430,7 +430,7 @@ void FadingSlideChange::performIn( ENSURE_OR_THROW( rSprite, "FadingSlideChange::performIn(): Invalid sprite" ); - + if( maFadeColor ) // After half of the active time, fade in new slide rSprite->setAlpha( t > 0.5 ? 2.0*(t-0.5) : 0.0 ); @@ -451,21 +451,21 @@ void FadingSlideChange::performOut( ENSURE_OR_THROW( rDestinationCanvas, "FadingSlideChange::performOut(): Invalid dest canvas" ); - + // only needed for color fades if( maFadeColor ) { if( mbFirstTurn ) { mbFirstTurn = false; - + // clear page to given fade color. 'Leaving' slide is // painted atop of that, but slowly fading out. fillPage( rDestinationCanvas, getEnteringSlideSizePixel( rViewEntry.mpView ), *maFadeColor ); } - + // Until half of the active time, fade out old // slide. After half of the active time, old slide // will be invisible. @@ -477,23 +477,23 @@ class MovingSlideChange : public SlideChangeBase { /// Direction vector for leaving slide, const ::basegfx::B2DVector maLeavingDirection; - + /// Direction vector for entering slide, const ::basegfx::B2DVector maEnteringDirection; - + bool mbFirstPerformCall; - + public: /** Create a new SlideChanger, for the given entering slide bitmaps, which performes a moving slide change effect - + @param rLeavingDirection Direction vector. The move is performed along this direction vector, starting at a position where the leaving slide is fully visible, and ending at a position where the leaving slide is just not visible. The vector must have unit length. - + @param rEnteringDirection Direction vector. The move is performed along this direction vector, starting at a position where the @@ -527,13 +527,13 @@ public: maEnteringDirection( rEnteringDirection ), mbFirstPerformCall( true ) {} - + virtual void performIn( const ::cppcanvas::CustomSpriteSharedPtr& rSprite, const ViewEntry& rViewEntry, const ::cppcanvas::CanvasSharedPtr& rDestinationCanvas, double t ); - + virtual void performOut( const ::cppcanvas::CustomSpriteSharedPtr& rSprite, const ViewEntry& rViewEntry, @@ -548,20 +548,20 @@ void MovingSlideChange::performIn( double t ) { // intro sprite moves: - + ENSURE_OR_THROW( rSprite, "MovingSlideChange::performIn(): Invalid sprite" ); ENSURE_OR_THROW( rDestinationCanvas, "MovingSlideChange::performIn(): Invalid dest canvas" ); - - if (mbFirstPerformCall && maLeavingDirection.equalZero()) + + if (mbFirstPerformCall && maLeavingDirection.equalZero()) { mbFirstPerformCall = false; renderBitmap( getLeavingBitmap(rViewEntry), rDestinationCanvas ); } - + // TODO(F1): This does not account for non-translational // transformations! If the canvas is rotated, we still // move the sprite unrotated (which might or might not @@ -570,12 +570,12 @@ void MovingSlideChange::performIn( rDestinationCanvas->getTransformation() ); const basegfx::B2DPoint aPageOrigin( aViewTransform * basegfx::B2DPoint() ); - + // move sprite rSprite->movePixel( aPageOrigin + - ((t - 1.0) * - ::basegfx::B2DSize( getEnteringSlideSizePixel(rViewEntry.mpView) ) * + ((t - 1.0) * + ::basegfx::B2DSize( getEnteringSlideSizePixel(rViewEntry.mpView) ) * maEnteringDirection) ); } @@ -586,20 +586,20 @@ void MovingSlideChange::performOut( double t ) { // outro sprite moves: - + ENSURE_OR_THROW( rSprite, "MovingSlideChange::performOut(): Invalid sprite" ); ENSURE_OR_THROW( rDestinationCanvas, "MovingSlideChange::performOut(): Invalid dest canvas" ); - - if (mbFirstPerformCall && maEnteringDirection.equalZero()) + + if (mbFirstPerformCall && maEnteringDirection.equalZero()) { mbFirstPerformCall = false; renderBitmap( getEnteringBitmap(rViewEntry), rDestinationCanvas ); } - + // TODO(F1): This does not account for non-translational // transformations! If the canvas is rotated, we still // move the sprite unrotated (which might or might not @@ -608,11 +608,11 @@ void MovingSlideChange::performOut( rDestinationCanvas->getTransformation() ); const basegfx::B2DPoint aPageOrigin( aViewTransform * basegfx::B2DPoint() ); - + // move sprite rSprite->movePixel( - aPageOrigin + (t * - ::basegfx::B2DSize( getEnteringSlideSizePixel(rViewEntry.mpView) ) * + aPageOrigin + (t * + ::basegfx::B2DSize( getEnteringSlideSizePixel(rViewEntry.mpView) ) * maLeavingDirection) ); } @@ -638,7 +638,7 @@ NumberAnimationSharedPtr createPushWipeTransition( // wipes. leavingSlide = leavingSlide_; } - + // setup direction vector bool bComb( false ); ::basegfx::B2DVector aDirection; @@ -646,55 +646,55 @@ NumberAnimationSharedPtr createPushWipeTransition( { default: OSL_ENSURE( - false, + false, "createPushWipeTransition(): Unexpected transition " "subtype for animations::TransitionType::PUSHWIPE " "transitions" ); return NumberAnimationSharedPtr(); - + case animations::TransitionSubType::FROMTOP: aDirection = ::basegfx::B2DVector( 0.0, 1.0 ); break; - + case animations::TransitionSubType::FROMBOTTOM: aDirection = ::basegfx::B2DVector( 0.0, -1.0 ); break; - + case animations::TransitionSubType::FROMLEFT: aDirection = ::basegfx::B2DVector( 1.0, 0.0 ); break; - + case animations::TransitionSubType::FROMRIGHT: aDirection = ::basegfx::B2DVector( -1.0, 0.0 ); break; - + case animations::TransitionSubType::FROMBOTTOMRIGHT: aDirection = ::basegfx::B2DVector( -1.0, -1.0 ); break; - + case animations::TransitionSubType::FROMBOTTOMLEFT: aDirection = ::basegfx::B2DVector( 1.0, -1.0 ); break; - + case animations::TransitionSubType::FROMTOPRIGHT: aDirection = ::basegfx::B2DVector( -1.0, 1.0 ); break; - + case animations::TransitionSubType::FROMTOPLEFT: aDirection = ::basegfx::B2DVector( 1.0, 1.0 ); break; - + case animations::TransitionSubType::COMBHORIZONTAL: aDirection = ::basegfx::B2DVector( 1.0, 0.0 ); bComb = true; break; - + case animations::TransitionSubType::COMBVERTICAL: aDirection = ::basegfx::B2DVector( 0.0, 1.0 ); bComb = true; break; } - + if( bComb ) { return NumberAnimationSharedPtr( @@ -704,19 +704,19 @@ NumberAnimationSharedPtr createPushWipeTransition( rViewContainer, rScreenUpdater, rEventMultiplexer, - aDirection, + aDirection, 24 /* comb with 12 stripes */ )); } else { - return NumberAnimationSharedPtr( + return NumberAnimationSharedPtr( new MovingSlideChange( leavingSlide, pEnteringSlide, pSoundPlayer, rViewContainer, rScreenUpdater, rEventMultiplexer, - aDirection, + aDirection, aDirection )); } } @@ -738,53 +738,53 @@ NumberAnimationSharedPtr createSlideWipeTransition( { default: OSL_ENSURE( - false, + false, "createSlideWipeTransition(): Unexpected transition " "subtype for animations::TransitionType::SLIDEWIPE " "transitions" ); return NumberAnimationSharedPtr(); - + case animations::TransitionSubType::FROMTOP: aInDirection = ::basegfx::B2DVector( 0.0, 1.0 ); break; - + case animations::TransitionSubType::FROMRIGHT: aInDirection = ::basegfx::B2DVector( -1.0, 0.0 ); break; - + case animations::TransitionSubType::FROMLEFT: aInDirection = ::basegfx::B2DVector( 1.0, 0.0 ); break; - + case animations::TransitionSubType::FROMBOTTOM: aInDirection = ::basegfx::B2DVector( 0.0, -1.0 ); break; - + case animations::TransitionSubType::FROMBOTTOMRIGHT: aInDirection = ::basegfx::B2DVector( -1.0, -1.0 ); break; - + case animations::TransitionSubType::FROMBOTTOMLEFT: aInDirection = ::basegfx::B2DVector( 1.0, -1.0 ); break; - + case animations::TransitionSubType::FROMTOPRIGHT: aInDirection = ::basegfx::B2DVector( -1.0, 1.0 ); break; - + case animations::TransitionSubType::FROMTOPLEFT: aInDirection = ::basegfx::B2DVector( 1.0, 1.0 ); break; } - + if( bTransitionDirection ) { // normal, 'forward' slide wipe effect. Since the old // content is still on screen (and does not move), we omit // the 'leaving' slide. // ======================================================= - - return NumberAnimationSharedPtr( + + return NumberAnimationSharedPtr( new MovingSlideChange( boost::optional<SlideSharedPtr>() /* no slide */, pEnteringSlide, @@ -801,8 +801,8 @@ NumberAnimationSharedPtr createSlideWipeTransition( // means, that the new slide is in the back, statically, // and the old one is moving off in the foreground. // ======================================================= - - return NumberAnimationSharedPtr( + + return NumberAnimationSharedPtr( new MovingSlideChange( leavingSlide, pEnteringSlide, pSoundPlayer, @@ -823,10 +823,10 @@ NumberAnimationSharedPtr createPluginTransition( ScreenUpdater& rScreenUpdater, const uno::Reference< presentation::XTransitionFactory>& xFactory, - const SoundPlayerSharedPtr& pSoundPlayer, + const SoundPlayerSharedPtr& pSoundPlayer, EventMultiplexer& rEventMultiplexer) { - PluginSlideChange* pTransition = + PluginSlideChange* pTransition = new PluginSlideChange( nTransitionType, nTransitionSubType, @@ -872,12 +872,12 @@ NumberAnimationSharedPtr TransitionFactory::createSlideTransition( } return NumberAnimationSharedPtr(); } - + ENSURE_OR_THROW( pEnteringSlide, "TransitionFactory::createSlideTransition(): Invalid entering slide" ); - - if( xOptionalFactory.is() && + + if( xOptionalFactory.is() && xOptionalFactory->hasTransition(nTransitionType, nTransitionSubType) ) { // #i82460# - optional plugin factory claims this transition. delegate. @@ -897,7 +897,7 @@ NumberAnimationSharedPtr TransitionFactory::createSlideTransition( return pTransition; } - const TransitionInfo* pTransitionInfo( + const TransitionInfo* pTransitionInfo( getTransitionInfo( nTransitionType, nTransitionSubType ) ); if( pTransitionInfo != NULL ) @@ -913,12 +913,12 @@ NumberAnimationSharedPtr TransitionFactory::createSlideTransition( nTransitionSubType ); return NumberAnimationSharedPtr(); - + case TransitionInfo::TRANSITION_CLIP_POLYPOLYGON: { // generate parametric poly-polygon - ParametricPolyPolygonSharedPtr pPoly( - ParametricPolyPolygonFactory::createClipPolyPolygon( + ParametricPolyPolygonSharedPtr pPoly( + ParametricPolyPolygonFactory::createClipPolyPolygon( nTransitionType, nTransitionSubType ) ); // create a clip transition from that @@ -932,14 +932,14 @@ NumberAnimationSharedPtr TransitionFactory::createSlideTransition( bTransitionDirection, pSoundPlayer )); } - + case TransitionInfo::TRANSITION_SPECIAL: { switch( nTransitionType ) { default: OSL_ENSURE( - false, + false, "TransitionFactory::createSlideTransition(): " "Unexpected transition type for " "TRANSITION_SPECIAL transitions" ); @@ -952,7 +952,7 @@ NumberAnimationSharedPtr TransitionFactory::createSlideTransition( const TransitionInfo* pRandomTransitionInfo( getRandomTransitionInfo() ); - + ENSURE_OR_THROW( pRandomTransitionInfo != NULL, "TransitionFactory::createSlideTransition(): " @@ -1038,7 +1038,7 @@ NumberAnimationSharedPtr TransitionFactory::createSlideTransition( "SlideTransitionFactory::createSlideTransition(): Unknown FADE subtype" ); } - return NumberAnimationSharedPtr( + return NumberAnimationSharedPtr( new FadingSlideChange( leavingSlide, pEnteringSlide, @@ -1054,8 +1054,8 @@ NumberAnimationSharedPtr TransitionFactory::createSlideTransition( break; } } - - // No animation generated, maybe no table entry for given + + // No animation generated, maybe no table entry for given // transition? OSL_TRACE( "TransitionFactory::createSlideTransition(): " @@ -1066,7 +1066,7 @@ NumberAnimationSharedPtr TransitionFactory::createSlideTransition( false, "TransitionFactory::createSlideTransition(): " "Unknown type/subtype combination encountered" ); - + return NumberAnimationSharedPtr(); } diff --git a/slideshow/source/engine/transitions/snakewipe.cxx b/slideshow/source/engine/transitions/snakewipe.cxx index a65f8ec583ee..2d7b1a5a7eba 100644 --- a/slideshow/source/engine/transitions/snakewipe.cxx +++ b/slideshow/source/engine/transitions/snakewipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -58,7 +58,7 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) static_cast<double>(line_) / m_sqrtElements ); const double col = ::basegfx::pruneScaleValue( (area - (line_ * m_sqrtElements)) / m_sqrtElements ); - + if (! ::basegfx::fTools::equalZero( line )) { ::basegfx::B2DPolygon poly; poly.append( ::basegfx::B2DPoint( 0.0, 0.0 ) ); @@ -85,7 +85,7 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) poly.setClosed(true); res.append(poly); } - + return res; } @@ -93,13 +93,13 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) double t, bool in ) const { ::basegfx::B2DPolyPolygon res; - + if (in) { const double sqrtArea2 = sqrt( t * m_sqrtElements * m_sqrtElements ); const double edge = ::basegfx::pruneScaleValue( static_cast<double>( static_cast<sal_Int32>(sqrtArea2) ) / m_sqrtElements ); - + ::basegfx::B2DPolygon poly; if (! ::basegfx::fTools::equalZero( edge )) { poly.append( ::basegfx::B2DPoint( 0.0, 0.0 ) ); @@ -119,20 +119,20 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) poly.append( ::basegfx::B2DPoint( len + a, 0.0 ) ); poly.setClosed(true); ::basegfx::B2DHomMatrix aTransform; - - if ((static_cast<sal_Int32>(sqrtArea2) & 1) == 1) + + if ((static_cast<sal_Int32>(sqrtArea2) & 1) == 1) { // odd line aTransform = basegfx::tools::createRotateB2DHomMatrix(M_PI_2 + M_PI_4); aTransform.translate(edge + m_elementEdge, 0.0); } - else + else { aTransform = basegfx::tools::createTranslateB2DHomMatrix(-a, 0.0); aTransform.rotate( -M_PI_4 ); aTransform.translate( 0.0, edge ); } - + poly.transform( aTransform ); res.append(poly); } @@ -142,7 +142,7 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) const double edge = ::basegfx::pruneScaleValue( static_cast<double>( static_cast<sal_Int32>(sqrtArea2) ) / m_sqrtElements ); - + ::basegfx::B2DPolygon poly; if (! ::basegfx::fTools::equalZero( edge )) { poly.append( ::basegfx::B2DPoint( 0.0, 1.0 ) ); @@ -163,15 +163,15 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) poly.append( ::basegfx::B2DPoint( len + a, 0.0 ) ); poly.setClosed(true); ::basegfx::B2DHomMatrix aTransform; - - if ((static_cast<sal_Int32>(sqrtArea2) & 1) == 1) + + if ((static_cast<sal_Int32>(sqrtArea2) & 1) == 1) { // odd line aTransform = basegfx::tools::createTranslateB2DHomMatrix(0.0, -height); aTransform.rotate( M_PI_2 + M_PI_4 ); aTransform.translate( 1.0, edge ); } - else + else { aTransform = basegfx::tools::createRotateB2DHomMatrix(-M_PI_4); aTransform.translate( edge, 1.0 ); @@ -179,7 +179,7 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) poly.transform( aTransform ); res.append(poly); } - + return res; } @@ -236,7 +236,7 @@ SnakeWipe::SnakeWipe( sal_Int32 nElements, bool diagonal, bool flipOnYAxis ) res.append( flipOnYAxis(half) ); res.append( m_opposite ? flipOnXAxis(half) : half ); } - + return m_flipOnYAxis ? flipOnYAxis(res) : res; } diff --git a/slideshow/source/engine/transitions/snakewipe.hxx b/slideshow/source/engine/transitions/snakewipe.hxx index 265f383757d9..2a3ae2ebee40 100644 --- a/slideshow/source/engine/transitions/snakewipe.hxx +++ b/slideshow/source/engine/transitions/snakewipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -49,7 +49,7 @@ protected: ::basegfx::B2DPolyPolygon calcSnake( double t ) const; // topLeftDiagonal: ::basegfx::B2DPolyPolygon calcHalfDiagonalSnake( double t, bool in ) const; - + const sal_Int32 m_sqrtElements; const double m_elementEdge; const bool m_diagonal; diff --git a/slideshow/source/engine/transitions/spiralwipe.cxx b/slideshow/source/engine/transitions/spiralwipe.cxx index 0ceb38cacc53..aaa1f5c280c1 100644 --- a/slideshow/source/engine/transitions/spiralwipe.cxx +++ b/slideshow/source/engine/transitions/spiralwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -54,7 +54,7 @@ SpiralWipe::SpiralWipe( sal_Int32 nElements, bool flipOnYAxis ) const double area = (t * m_elements); const double e = (sqrt(area) / 2.0); const sal_Int32 edge = (static_cast<sal_Int32>(e) * 2); - + basegfx::B2DHomMatrix aTransform(basegfx::tools::createTranslateB2DHomMatrix(-0.5, -0.5)); const double edge_ = ::basegfx::pruneScaleValue( static_cast<double>(edge) / m_sqrtElements ); @@ -63,7 +63,7 @@ SpiralWipe::SpiralWipe( sal_Int32 nElements, bool flipOnYAxis ) ::basegfx::B2DPolygon poly( createUnitRect() ); poly.transform( aTransform ); ::basegfx::B2DPolyPolygon res(poly); - + if (! ::basegfx::fTools::equalZero( 1.0 - t )) { const sal_Int32 edge1 = (edge + 1); sal_Int32 len = static_cast<sal_Int32>( (e - (edge /2)) * edge1 * 4 ); @@ -87,7 +87,7 @@ SpiralWipe::SpiralWipe( sal_Int32 nElements, bool flipOnYAxis ) res.append(poly); } } - + return res; } @@ -105,7 +105,7 @@ SpiralWipe::SpiralWipe( sal_Int32 nElements, bool flipOnYAxis ) ::basegfx::B2DPolyPolygon res( createUnitRect() ); ::basegfx::B2DPolyPolygon innerSpiral( calcNegSpiral( 1.0 - t ) ); innerSpiral.flip(); - + if (m_fourBox) { ::basegfx::B2DHomMatrix aTransform; aTransform.scale( 0.5, 0.5 ); @@ -123,7 +123,7 @@ SpiralWipe::SpiralWipe( sal_Int32 nElements, bool flipOnYAxis ) res.append(innerSpiral); res.append( flipOnXAxis(innerSpiral) ); } - + return m_flipOnYAxis ? flipOnYAxis(res) : res; } diff --git a/slideshow/source/engine/transitions/spiralwipe.hxx b/slideshow/source/engine/transitions/spiralwipe.hxx index 35727caa2c76..716ebbe93c4d 100644 --- a/slideshow/source/engine/transitions/spiralwipe.hxx +++ b/slideshow/source/engine/transitions/spiralwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,7 +45,7 @@ public: virtual ::basegfx::B2DPolyPolygon operator () ( double t ); protected: ::basegfx::B2DPolyPolygon calcNegSpiral( double t ) const; - + const sal_Int32 m_elements; const sal_Int32 m_sqrtElements; const bool m_flipOnYAxis; diff --git a/slideshow/source/engine/transitions/sweepwipe.cxx b/slideshow/source/engine/transitions/sweepwipe.cxx index d5361121743c..04779af000d8 100644 --- a/slideshow/source/engine/transitions/sweepwipe.cxx +++ b/slideshow/source/engine/transitions/sweepwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,27 +47,27 @@ namespace internal { t /= 2.0; if (!m_single && !m_oppositeVertical) t /= 2.0; - + ::basegfx::B2DPolygon poly( ClockWipe::calcCenteredClock( 0.25 + t ) ); ::basegfx::B2DHomMatrix aTransform; - - if (m_center) + + if (m_center) { aTransform = basegfx::tools::createTranslateB2DHomMatrix(0.5, 0.0); poly.transform( aTransform ); } ::basegfx::B2DPolyPolygon res(poly); - - if (! m_single) + + if (! m_single) { - if (m_oppositeVertical) + if (m_oppositeVertical) { aTransform = basegfx::tools::createScaleB2DHomMatrix(1.0, -1.0); aTransform.translate( 0.0, 1.0 ); poly.transform( aTransform ); poly.flip(); } - else + else { aTransform = basegfx::tools::createTranslateB2DHomMatrix(-0.5, -0.5); aTransform.rotate( M_PI ); @@ -76,7 +76,7 @@ namespace internal { } res.append(poly); } - + return m_flipOnYAxis ? flipOnYAxis(res) : res; } diff --git a/slideshow/source/engine/transitions/sweepwipe.hxx b/slideshow/source/engine/transitions/sweepwipe.hxx index f641b4afad12..2ab1f7c695ee 100644 --- a/slideshow/source/engine/transitions/sweepwipe.hxx +++ b/slideshow/source/engine/transitions/sweepwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/transitionfactorytab.cxx b/slideshow/source/engine/transitions/transitionfactorytab.cxx index 671df2ab0fae..5a467fd23434 100644 --- a/slideshow/source/engine/transitions/transitionfactorytab.cxx +++ b/slideshow/source/engine/transitions/transitionfactorytab.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -28,7 +28,7 @@ // MARKER(update_precomp.py): autogen include statement, do not remove #include "precompiled_slideshow.hxx" -#include <boost/current_function.hpp> +#include <boost/current_function.hpp> #include <basegfx/numeric/ftools.hxx> #include <com/sun/star/animations/TransitionType.hpp> #include <com/sun/star/animations/TransitionSubType.hpp> @@ -46,7 +46,7 @@ namespace internal { namespace { static const TransitionInfo lcl_transitionInfo[] = -{ +{ { 0, 0, @@ -107,7 +107,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to BoxWipe: animations::TransitionType::BOXWIPE, @@ -204,7 +204,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to FourBoxWipe: animations::TransitionType::FOURBOXWIPE, @@ -229,7 +229,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to BarnDoorWipe: animations::TransitionType::BARNDOORWIPE, @@ -278,7 +278,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to BarWipePolyPolygon: animations::TransitionType::DIAGONALWIPE, @@ -304,7 +304,7 @@ static const TransitionInfo lcl_transitionInfo[] = false // scale isotrophically to target size }, - + { animations::TransitionType::BOWTIEWIPE, animations::TransitionSubType::VERTICAL, @@ -329,7 +329,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to BarnDoorWipe (doubled=true): animations::TransitionType::MISCDIAGONALWIPE, @@ -354,7 +354,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to VeeWipe: animations::TransitionType::VEEWIPE, @@ -402,7 +402,7 @@ static const TransitionInfo lcl_transitionInfo[] = false // scale isotrophically to target size }, - + { animations::TransitionType::BARNVEEWIPE, animations::TransitionSubType::TOP, @@ -451,7 +451,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to ZigZagWipe: animations::TransitionType::ZIGZAGWIPE, @@ -500,7 +500,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to IrisWipe: animations::TransitionType::IRISWIPE, @@ -526,7 +526,7 @@ static const TransitionInfo lcl_transitionInfo[] = false // scale isotrophically to target size }, - + { // mapped to FigureWipe(triangle): animations::TransitionType::TRIANGLEWIPE, @@ -575,7 +575,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to FigureWipe(arrowHead): animations::TransitionType::ARROWHEADWIPE, @@ -624,7 +624,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to FigureWipe(pentagon): animations::TransitionType::PENTAGONWIPE, @@ -649,7 +649,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to FigureWipe(hexagon): animations::TransitionType::HEXAGONWIPE, @@ -674,7 +674,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to EllipseWipe: animations::TransitionType::ELLIPSEWIPE, @@ -712,7 +712,7 @@ static const TransitionInfo lcl_transitionInfo[] = false // scale isotrophically to target size }, - + { animations::TransitionType::EYEWIPE, animations::TransitionSubType::HORIZONTAL, @@ -761,7 +761,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to FigureWipe(star, points=4): animations::TransitionType::STARWIPE, @@ -798,7 +798,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { animations::TransitionType::MISCSHAPEWIPE, animations::TransitionSubType::HEART, @@ -823,7 +823,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to ClockWipe: animations::TransitionType::CLOCKWIPE, @@ -872,7 +872,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to PinWheelWipe: animations::TransitionType::PINWHEELWIPE, @@ -945,7 +945,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion true // scale isotrophically to target size, like ppt }, - + { // mapped to SweepWipe (center=true, single=true): animations::TransitionType::SINGLESWEEPWIPE, @@ -1042,7 +1042,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to FanWipe(center=true): animations::TransitionType::FANWIPE, @@ -1115,7 +1115,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to FanWipe(center=true, single=false, fanIn=false): animations::TransitionType::DOUBLEFANWIPE, @@ -1164,7 +1164,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to SweepWipe (center=true, single=false): animations::TransitionType::DOUBLESWEEPWIPE, @@ -1239,7 +1239,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { animations::TransitionType::SALOONDOORWIPE, animations::TransitionSubType::TOP, // (251) @@ -1336,7 +1336,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to SnakeWipe: animations::TransitionType::SNAKEWIPE, @@ -1409,7 +1409,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to SpiralWipe: animations::TransitionType::SPIRALWIPE, @@ -1506,7 +1506,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to ParallelSnakesWipe: animations::TransitionType::PARALLELSNAKESWIPE, @@ -1628,7 +1628,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to BoxSnakesWipe: animations::TransitionType::BOXSNAKESWIPE, @@ -1701,7 +1701,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to WaterfallWipe: animations::TransitionType::WATERFALLWIPE, @@ -1750,7 +1750,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { animations::TransitionType::PUSHWIPE, animations::TransitionSubType::FROMLEFT, @@ -2015,7 +2015,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to RandomWipe: animations::TransitionType::RANDOMBARWIPE, @@ -2040,7 +2040,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion false // scale isotrophically to target size }, - + { // mapped to CheckerBoard: animations::TransitionType::CHECKERBOARDWIPE, @@ -2078,7 +2078,7 @@ static const TransitionInfo lcl_transitionInfo[] = true, // 'out' by parameter sweep inversion true // scale isotrophically to target size }, - + ///////////////////////////////////////////////////////// // NOTE: This entry MUST be the last, to keep // createSlideTransition() from infinite recursion. Because @@ -2110,7 +2110,7 @@ const TransitionInfo* TransitionFactory::getTransitionInfo( static const ::std::size_t lcl_tableSize( sizeof(lcl_transitionInfo)/sizeof(TransitionInfo) ); static const TransitionInfo* pTableEnd = lcl_transitionInfo+lcl_tableSize; - + const TransitionInfo* pRes = ::std::find_if( lcl_transitionInfo, pTableEnd, TransitionInfo::Comparator( nTransitionType, diff --git a/slideshow/source/engine/transitions/transitiontools.cxx b/slideshow/source/engine/transitions/transitiontools.cxx index f57994e3d25c..bc174d3a5986 100644 --- a/slideshow/source/engine/transitions/transitiontools.cxx +++ b/slideshow/source/engine/transitions/transitiontools.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -45,7 +45,7 @@ namespace internal { return ::basegfx::tools::createPolygonFromRect( ::basegfx::B2DRectangle(0.0,0.0, 1.0,1.0 ) ); -} +} ::basegfx::B2DPolyPolygon flipOnYAxis( ::basegfx::B2DPolyPolygon const & polypoly ) diff --git a/slideshow/source/engine/transitions/transitiontools.hxx b/slideshow/source/engine/transitions/transitiontools.hxx index 4653b2ced6dd..b5e61cb032ab 100644 --- a/slideshow/source/engine/transitions/transitiontools.hxx +++ b/slideshow/source/engine/transitions/transitiontools.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/veewipe.cxx b/slideshow/source/engine/transitions/veewipe.cxx index 0fa3635a63c6..19702b37f1f5 100644 --- a/slideshow/source/engine/transitions/veewipe.cxx +++ b/slideshow/source/engine/transitions/veewipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/veewipe.hxx b/slideshow/source/engine/transitions/veewipe.hxx index 0e6771820cd2..ac2e8d1907b6 100644 --- a/slideshow/source/engine/transitions/veewipe.hxx +++ b/slideshow/source/engine/transitions/veewipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/waterfallwipe.cxx b/slideshow/source/engine/transitions/waterfallwipe.cxx index b7d55be55bcd..7fca4ae582d4 100644 --- a/slideshow/source/engine/transitions/waterfallwipe.cxx +++ b/slideshow/source/engine/transitions/waterfallwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/waterfallwipe.hxx b/slideshow/source/engine/transitions/waterfallwipe.hxx index bffc5227f4da..e039a998527e 100644 --- a/slideshow/source/engine/transitions/waterfallwipe.hxx +++ b/slideshow/source/engine/transitions/waterfallwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/zigzagwipe.cxx b/slideshow/source/engine/transitions/zigzagwipe.cxx index 478024999c61..9eb18795c4ec 100644 --- a/slideshow/source/engine/transitions/zigzagwipe.cxx +++ b/slideshow/source/engine/transitions/zigzagwipe.cxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite diff --git a/slideshow/source/engine/transitions/zigzagwipe.hxx b/slideshow/source/engine/transitions/zigzagwipe.hxx index ab08cfbdada4..722749053652 100644 --- a/slideshow/source/engine/transitions/zigzagwipe.hxx +++ b/slideshow/source/engine/transitions/zigzagwipe.hxx @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite |