summaryrefslogtreecommitdiff
path: root/slideshow/source/engine
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/engine')
-rw-r--r--slideshow/source/engine/OGLTrans/mac/OGLTrans_Shaders.m24
-rw-r--r--slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m12
-rw-r--r--slideshow/source/engine/activities/activitybase.cxx20
-rw-r--r--slideshow/source/engine/activities/discreteactivitybase.cxx10
-rw-r--r--slideshow/source/engine/activities/simplecontinuousactivitybase.cxx6
-rw-r--r--slideshow/source/engine/animatedsprite.cxx2
-rw-r--r--slideshow/source/engine/animationfactory.cxx2
-rw-r--r--slideshow/source/engine/animationnodes/animationbasenode.cxx12
-rw-r--r--slideshow/source/engine/animationnodes/animationnodefactory.cxx6
-rw-r--r--slideshow/source/engine/animationnodes/basenode.cxx2
-rw-r--r--slideshow/source/engine/animationnodes/nodetools.hxx2
-rw-r--r--slideshow/source/engine/color.cxx4
-rw-r--r--slideshow/source/engine/eventmultiplexer.cxx10
-rw-r--r--slideshow/source/engine/screenupdater.cxx8
-rw-r--r--slideshow/source/engine/shapes/backgroundshape.cxx4
-rw-r--r--slideshow/source/engine/shapes/drawinglayeranimation.cxx10
-rw-r--r--slideshow/source/engine/shapes/drawshape.cxx20
-rw-r--r--slideshow/source/engine/shapes/drawshape.hxx16
-rw-r--r--slideshow/source/engine/shapes/drawshapesubsetting.cxx18
-rw-r--r--slideshow/source/engine/shapes/drawshapesubsetting.hxx6
-rw-r--r--slideshow/source/engine/shapes/externalshapebase.hxx6
-rw-r--r--slideshow/source/engine/shapes/gdimtftools.hxx2
-rw-r--r--slideshow/source/engine/shapes/intrinsicanimationactivity.cxx6
-rw-r--r--slideshow/source/engine/shapes/viewappletshape.hxx4
-rw-r--r--slideshow/source/engine/shapes/viewmediashape.hxx4
-rw-r--r--slideshow/source/engine/shapes/viewshape.cxx2
-rw-r--r--slideshow/source/engine/shapes/viewshape.hxx4
-rw-r--r--slideshow/source/engine/slide/layer.hxx4
-rw-r--r--slideshow/source/engine/slide/layermanager.hxx2
-rw-r--r--slideshow/source/engine/slide/shapemanagerimpl.hxx14
-rw-r--r--slideshow/source/engine/slide/slideimpl.cxx4
-rw-r--r--slideshow/source/engine/slideshowimpl.cxx2
-rw-r--r--slideshow/source/engine/slideview.cxx2
-rw-r--r--slideshow/source/engine/smilfunctionparser.cxx6
-rw-r--r--slideshow/source/engine/sp_debug.cxx8
-rw-r--r--slideshow/source/engine/transitions/slidetransitionfactory.cxx4
-rw-r--r--slideshow/source/engine/transitions/transitionfactorytab.cxx8
-rw-r--r--slideshow/source/engine/usereventqueue.cxx2
38 files changed, 138 insertions, 140 deletions
diff --git a/slideshow/source/engine/OGLTrans/mac/OGLTrans_Shaders.m b/slideshow/source/engine/OGLTrans/mac/OGLTrans_Shaders.m
index 339c36cdcf63..fb25114a3d60 100644
--- a/slideshow/source/engine/OGLTrans/mac/OGLTrans_Shaders.m
+++ b/slideshow/source/engine/OGLTrans/mac/OGLTrans_Shaders.m
@@ -2,7 +2,7 @@
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
+ *
* Copyright 2008 by Sun Microsystems, Inc.
*
* OpenOffice.org - a multi-platform office productivity suite
@@ -42,7 +42,7 @@
/* Subclass should put initialisation code that can be performaned
lazily (on first frame render) here */
initialised = TRUE;
-
+
/* Create a GLU quadric, used for rendering certain geometry */
quadric = gluNewQuadric();
gluQuadricDrawStyle(quadric, GLU_FILL);
@@ -77,13 +77,13 @@
GLint vertex_compiled;
GLint fragment_compiled;
GLint linked;
-
+
/* Delete any existing program object */
if (program_object) {
glDeleteObjectARB(program_object);
program_object = NULL;
}
-
+
/* Load and compile both shaders */
if (vertexString) {
vertex_shader = glCreateShaderObjectARB(GL_VERTEX_SHADER_ARB);
@@ -96,7 +96,7 @@
vertex_shader = NULL;
vertex_compiled = 1;
}
-
+
if (fragmentString) {
fragment_shader = glCreateShaderObjectARB(GL_FRAGMENT_SHADER_ARB);
fragment_string = [fragmentString cStringUsingEncoding:NSASCIIStringEncoding];
@@ -108,7 +108,7 @@
fragment_shader = NULL;
fragment_compiled = 1;
}
-
+
/* Ensure both shaders compiled */
if (!vertex_compiled || !fragment_compiled) {
if (vertex_shader) {
@@ -121,7 +121,7 @@
}
return 1;
}
-
+
/* Create a program object and link both shaders */
program_object = glCreateProgramObjectARB();
if (vertex_shader != NULL)
@@ -137,13 +137,13 @@
glLinkProgramARB(program_object);
glGetObjectParameterivARB(program_object, GL_OBJECT_LINK_STATUS_ARB, &linked);
/* TODO - Get info log */
-
+
if (!linked) {
glDeleteObjectARB(program_object);
program_object = NULL;
return 1;
}
-
+
return 0;
}
@@ -185,7 +185,7 @@
int NextHighestPowerOf2(int n)
{
n--;
- n |= n >> 1;
+ n |= n >> 1;
n |= n >> 2;
n |= n >> 4;
n |= n >> 8;
@@ -208,12 +208,12 @@ NSBitmapImageRep *LoadImage(NSString *path, int shouldFlipVertical)
NSImage *image;
image = [[[NSImage alloc] initWithContentsOfFile: path] autorelease];
bitmapimagerep = [[NSBitmapImageRep alloc] initWithData:[image TIFFRepresentation]];
-
+
if (shouldFlipVertical)
{
int bytesPerRow, lowRow, highRow;
unsigned char *pixelData, *swapRow;
-
+
bytesPerRow = [bitmapimagerep bytesPerRow];
pixelData = [bitmapimagerep bitmapData];
diff --git a/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m b/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m
index afdfc9b23e30..ac0e6a2ad86f 100644
--- a/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m
+++ b/slideshow/source/engine/OGLTrans/mac/aquaOpenGLView.m
@@ -14,7 +14,7 @@
+ (NSOpenGLPixelFormat*)defaultPixelFormat
{
// first simple implementation (let's see later with more complex )
- NSOpenGLPixelFormatAttribute attributes [] =
+ NSOpenGLPixelFormatAttribute attributes [] =
{
NSOpenGLPFAWindow,
NSOpenGLPFADoubleBuffer, // double buffered
@@ -123,7 +123,7 @@
{
// get context. will create if we don't have one yet
NSOpenGLContext* context = [self openGLContext];
-
+
// make sure we are ready to draw
[super lockFocus];
@@ -163,7 +163,7 @@
}
-- (void)encodeWithCoder:(NSCoder *)coder
+- (void)encodeWithCoder:(NSCoder *)coder
{
[super encodeWithCoder:coder];
@@ -174,7 +174,7 @@
}
}
-- (id)initWithCoder:(NSCoder *)coder
+- (id)initWithCoder:(NSCoder *)coder
{
self = [super initWithCoder:coder];
@@ -184,9 +184,9 @@
} else {
_pixelFormat = [[coder decodeObjectForKey:@"NSPixelFormat"] retain];
}
-
+
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(_surfaceNeedsUpdate:) name:NSViewGlobalFrameDidChangeNotification object:self];
-
+
return self;
}
diff --git a/slideshow/source/engine/activities/activitybase.cxx b/slideshow/source/engine/activities/activitybase.cxx
index ed433b268126..a2aa47d67a20 100644
--- a/slideshow/source/engine/activities/activitybase.cxx
+++ b/slideshow/source/engine/activities/activitybase.cxx
@@ -160,36 +160,36 @@ namespace slideshow
{
/*
// calc accelerated/decelerated time.
- //
+
// We have three intervals:
// 1 [0,a]
// 2 [a,d]
// 3 [d,1] (with a and d being acceleration/deceleration
// fraction, resp.)
- //
+
// The change rate during interval 1 is constantly
// increasing, reaching 1 at a. It then stays at 1,
// starting a linear decrease at d, ending with 0 at
// time 1. The integral of this function is the
// required new time nT'.
- //
+
// As we arbitrarily assumed 1 as the upper value of
// the change rate, the integral must be normalized to
// reach nT'=1 at the end of the interval. This
// normalization constant is:
- //
+
// c = 1 - 0.5a - 0.5d
- //
+
// The integral itself then amounts to:
- //
+
// 0.5 nT^2 / a + (nT-a) + (nT - 0.5 nT^2 / d)
- //
+
// (where each of the three summands correspond to the
// three intervals above, and are applied only if nT
// has reached the corresponding interval)
- //
+
// The graph of the change rate is a trapezoid:
- //
+
// |
// 1| /--------------\
// | / \
@@ -197,7 +197,7 @@ namespace slideshow
// | / \
// -----------------------------
// 0 a d 1
- //
+
//*/
const double nC( 1.0 - 0.5*mnAccelerationFraction - 0.5*mnDecelerationFraction );
diff --git a/slideshow/source/engine/activities/discreteactivitybase.cxx b/slideshow/source/engine/activities/discreteactivitybase.cxx
index 3706333f6bb5..cc5c01c3e86c 100644
--- a/slideshow/source/engine/activities/discreteactivitybase.cxx
+++ b/slideshow/source/engine/activities/discreteactivitybase.cxx
@@ -144,17 +144,17 @@ namespace slideshow
// repeat is handled locally, only apply acceleration/deceleration.
// Scale time vector with simple duration, offset with full repeat
// times.
- //
+
// Somewhat condensed, the argument for setNextTimeout below could
// be written as
- //
+
// mnSimpleDuration*(nFullRepeats + calcAcceleratedTime( currentRepeatTime )),
- //
+
// with currentRepeatTime = maDiscreteTimes[ currentRepeatIndex ]
- //
+
// Note that calcAcceleratedTime() is only applied to the current repeat's value,
// not to the total resulting time. This is in accordance with the SMIL spec.
- //
+
mpWakeupEvent->setNextTimeout(
mnSimpleDuration*(
calcRepeatCount(
diff --git a/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx b/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx
index 13e62fc1480d..347483a19712 100644
--- a/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx
+++ b/slideshow/source/engine/activities/simplecontinuousactivitybase.cxx
@@ -75,12 +75,12 @@ namespace slideshow
double(mnCurrPerformCalls) / mnMinNumberOfFrames );
// okay, so now, the decision is easy:
- //
+
// If the fraction of time elapsed is smaller than the
// number of calls required to be performed, then we calc
// the position on the animation range according to
// elapsed time. That is, we're so to say ahead of time.
- //
+
// In contrary, if the fraction of time elapsed is larger,
// then we're lagging, and we thus calc the position on
// the animation time line according to the fraction of
@@ -213,7 +213,7 @@ namespace slideshow
// with modf, nRelativeSimpleTime will never
// become 1.0, since nRepeats is incremented and
// nRelativeSimpleTime set to 0.0 then.
- //
+
// For the animation to reach its final value,
// nRepeats must although become
// maRepeats.getValue()-1.0, and
diff --git a/slideshow/source/engine/animatedsprite.cxx b/slideshow/source/engine/animatedsprite.cxx
index 5d421c21bf05..ec56736054af 100644
--- a/slideshow/source/engine/animatedsprite.cxx
+++ b/slideshow/source/engine/animatedsprite.cxx
@@ -77,7 +77,7 @@ namespace slideshow
// (linear means: without translational components). The
// only translation that is imposed at the view transform
// is the local content pixel offset.
- //
+
// We can apply that directly here, no need to call
// aLinearTransform.translate(), since, as said above, the
// last column of aLinearTransform is assumed [0 0 1]
diff --git a/slideshow/source/engine/animationfactory.cxx b/slideshow/source/engine/animationfactory.cxx
index 2d3017260eff..4b0eb2130649 100644
--- a/slideshow/source/engine/animationfactory.cxx
+++ b/slideshow/source/engine/animationfactory.cxx
@@ -504,7 +504,7 @@ namespace slideshow
// shape's hold state), or by the animation
// node (then, it's a forced end, and we
// _have_ to snap back).
- //
+
// To reiterate: normally, we're called from
// the Activity first, thus the
// notifyShapeUpdate() below will update to
diff --git a/slideshow/source/engine/animationnodes/animationbasenode.cxx b/slideshow/source/engine/animationnodes/animationbasenode.cxx
index fe0c804e4925..a15ec0138bec 100644
--- a/slideshow/source/engine/animationnodes/animationbasenode.cxx
+++ b/slideshow/source/engine/animationnodes/animationbasenode.cxx
@@ -66,19 +66,19 @@ AnimationBaseNode::AnimationBaseNode(
uno::UNO_QUERY );
// distinguish 5 cases:
- //
+
// - plain shape target
// (NodeContext.mpMasterShapeSubset full set)
- //
+
// - parent-generated subset (generate an
// independent subset)
- //
+
// - parent-generated subset from iteration
// (generate a dependent subset)
- //
+
// - XShape target at the XAnimatioNode (generate
// a plain shape target)
- //
+
// - ParagraphTarget target at the XAnimationNode
// (generate an independent shape subset)
if( rContext.mpMasterShapeSubset )
@@ -271,7 +271,7 @@ void AnimationBaseNode::activate_st()
// determine whether an
// Activity::getUnderlyingValue() yields the
// DOM value, or already a summed-up conglomerate)
- //
+
// Note that this poses problems with our
// hybrid activity duration (time or min number of frames),
// since if activities
diff --git a/slideshow/source/engine/animationnodes/animationnodefactory.cxx b/slideshow/source/engine/animationnodes/animationnodefactory.cxx
index e109f18262fb..311cd05f7d57 100644
--- a/slideshow/source/engine/animationnodes/animationnodefactory.cxx
+++ b/slideshow/source/engine/animationnodes/animationnodefactory.cxx
@@ -138,7 +138,7 @@ public:
// e.g. activity counting does not work - subset
// would be removed after first animation node
// disables it).
- //
+
// NOTE: this is only a problem for animation
// nodes that explicitly call
// disableSubsetShape(). Independent shape subsets
@@ -299,9 +299,9 @@ bool implCreateIteratedNodes(
// method). For ONLY_TEXT effects,
// we skip this part, to animate
// only the text.
- //
+
// OR
- //
+
// prepend with subset animation for full
// _paragraph_, from which the individual
// paragraph subsets are subtracted. Note that the
diff --git a/slideshow/source/engine/animationnodes/basenode.cxx b/slideshow/source/engine/animationnodes/basenode.cxx
index 570401b04818..d9498ad5ac93 100644
--- a/slideshow/source/engine/animationnodes/basenode.cxx
+++ b/slideshow/source/engine/animationnodes/basenode.cxx
@@ -675,7 +675,7 @@ void BaseNode::setSelf( const BaseNodeSharedPtr& rSelf )
}
// Debug
-//=========================================================================
+
#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL)
void BaseNode::showState() const
diff --git a/slideshow/source/engine/animationnodes/nodetools.hxx b/slideshow/source/engine/animationnodes/nodetools.hxx
index 919f3bb276a2..5b9528b7e6f8 100644
--- a/slideshow/source/engine/animationnodes/nodetools.hxx
+++ b/slideshow/source/engine/animationnodes/nodetools.hxx
@@ -42,7 +42,7 @@ namespace slideshow
{
// Tools
- //=========================================================================
+
#if OSL_DEBUG_LEVEL >= 2 && defined(DBG_UTIL)
int& debugGetCurrentOffset();
diff --git a/slideshow/source/engine/color.cxx b/slideshow/source/engine/color.cxx
index 967ff39a1a7c..ee9b94910bc9 100644
--- a/slideshow/source/engine/color.cxx
+++ b/slideshow/source/engine/color.cxx
@@ -154,7 +154,7 @@ namespace slideshow
// HSLColor
- // ===============================================
+
HSLColor::HSLTriple::HSLTriple() :
mnHue(),
@@ -286,7 +286,7 @@ namespace slideshow
// RGBColor
- // ===============================================
+
RGBColor::RGBTriple::RGBTriple() :
diff --git a/slideshow/source/engine/eventmultiplexer.cxx b/slideshow/source/engine/eventmultiplexer.cxx
index 67625937317b..0901cfae52db 100644
--- a/slideshow/source/engine/eventmultiplexer.cxx
+++ b/slideshow/source/engine/eventmultiplexer.cxx
@@ -108,7 +108,7 @@ template<typename T> inline T* get_pointer(PrioritizedHandlerEntry<T> const& han
-////////////////////////////////////////////////////////////////////////////
+
typedef cppu::WeakComponentImplHelper2<
@@ -163,7 +163,7 @@ private:
};
-////////////////////////////////////////////////////////////////////////////
+
struct EventMultiplexerImpl
@@ -322,7 +322,7 @@ struct EventMultiplexerImpl
};
-///////////////////////////////////////////////////////////////////////////
+
void SAL_CALL EventMultiplexerListener::disposing()
@@ -418,7 +418,7 @@ void SAL_CALL EventMultiplexerListener::mouseMoved(
}
-///////////////////////////////////////////////////////////////////////////
+
bool EventMultiplexerImpl::notifyAllAnimationHandlers( ImplAnimationHandlers const& rContainer,
@@ -717,7 +717,7 @@ bool EventMultiplexerImpl::notifyNextEffect()
_1 )) );
}
-//////////////////////////////////////////////////////////////////////////
+
EventMultiplexer::EventMultiplexer( EventQueue& rEventQueue,
diff --git a/slideshow/source/engine/screenupdater.cxx b/slideshow/source/engine/screenupdater.cxx
index 19d03eaa4e40..35213cd76275 100644
--- a/slideshow/source/engine/screenupdater.cxx
+++ b/slideshow/source/engine/screenupdater.cxx
@@ -110,15 +110,15 @@ namespace internal
return;
// cases:
- //
+
// (a) no update necessary at all
- //
+
// (b) no ViewUpdate-generated update
// I. update all views requested -> for_each( mrViewContainer )
// II. update some views requested -> for_each( maViewUpdateRequests )
- //
+
// (c) ViewUpdate-triggered update - update all views
- //
+
// any ViewUpdate-triggered updates?
const bool bViewUpdatesNeeded(
diff --git a/slideshow/source/engine/shapes/backgroundshape.cxx b/slideshow/source/engine/shapes/backgroundshape.cxx
index 674664ffdac9..b1d9fab72cad 100644
--- a/slideshow/source/engine/shapes/backgroundshape.cxx
+++ b/slideshow/source/engine/shapes/backgroundshape.cxx
@@ -121,7 +121,7 @@ namespace slideshow
};
- ////////////////////////////////////////////////////////////////////////////////
+
BackgroundShape::BackgroundShape( const uno::Reference< drawing::XDrawPage >& xDrawPage,
@@ -308,7 +308,7 @@ namespace slideshow
return false; // we're not animatable
}
- //////////////////////////////////////////////////////////
+
ShapeSharedPtr createBackgroundShape(
const uno::Reference< drawing::XDrawPage >& xDrawPage,
diff --git a/slideshow/source/engine/shapes/drawinglayeranimation.cxx b/slideshow/source/engine/shapes/drawinglayeranimation.cxx
index c1b6b0ed7d8f..f19e9d8fe6a5 100644
--- a/slideshow/source/engine/shapes/drawinglayeranimation.cxx
+++ b/slideshow/source/engine/shapes/drawinglayeranimation.cxx
@@ -192,7 +192,7 @@ private:
// calculate the MixerState value for given time
double GetMixerState(sal_uInt32 nTime);
- ////////////////////////////////////////////////////////////////////
+
SlideShowContext maContext;
boost::shared_ptr<WakeupEvent> mpWakeupEvent;
@@ -243,7 +243,7 @@ private:
Rectangle maPaintRectangleLogic;
};
-//////////////////////////////////////////////////////////////////////
+
class IntrinsicAnimationListener : public IntrinsicAnimationEventHandler,
private boost::noncopyable
@@ -261,7 +261,7 @@ private:
ActivityImpl& mrActivity;
};
-//////////////////////////////////////////////////////////////////////
+
double ActivityImpl::GetMixerState( sal_uInt32 nTime )
{
@@ -615,9 +615,9 @@ void ActivityImpl::updateShapeAttributes(
}
else if(mpMetaFile) // scroll mode:
{
- //
+
// keep care: the below code is highly sensible to changes...
- //
+
// rectangle of the pure text:
double const fPaintWidth = maPaintRectangleLogic.GetWidth();
diff --git a/slideshow/source/engine/shapes/drawshape.cxx b/slideshow/source/engine/shapes/drawshape.cxx
index 1bb3a29459c6..b0f12fd6e79b 100644
--- a/slideshow/source/engine/shapes/drawshape.cxx
+++ b/slideshow/source/engine/shapes/drawshape.cxx
@@ -75,11 +75,11 @@ namespace slideshow
{
namespace internal
{
- //////////////////////////////////////////////////////////////////////
- //
+
+
// Private methods
- //
- //////////////////////////////////////////////////////////////////////
+
+
GDIMetaFileSharedPtr DrawShape::forceScrollTextMetaFile()
{
@@ -523,11 +523,11 @@ namespace slideshow
// issue for this #i72828#
}
- //////////////////////////////////////////////////////////////////////
- //
+
+
// Public methods
- //
- //////////////////////////////////////////////////////////////////////
+
+
DrawShapeSharedPtr DrawShape::create(
const uno::Reference< drawing::XShape >& xShape,
@@ -1053,7 +1053,7 @@ namespace slideshow
// AnimatableShape methods
- // ======================================================
+
void DrawShape::enterAnimationMode()
{
@@ -1091,7 +1091,7 @@ namespace slideshow
// AttributableShape methods
- // ======================================================
+
ShapeAttributeLayerSharedPtr DrawShape::createAttributeLayer()
{
diff --git a/slideshow/source/engine/shapes/drawshape.hxx b/slideshow/source/engine/shapes/drawshape.hxx
index 034f12485536..a34c99821f52 100644
--- a/slideshow/source/engine/shapes/drawshape.hxx
+++ b/slideshow/source/engine/shapes/drawshape.hxx
@@ -125,7 +125,7 @@ namespace slideshow
// View layer methods
- //------------------------------------------------------------------
+
virtual void addViewLayer( const ViewLayerSharedPtr& rNewLayer,
bool bRedrawLayer );
@@ -133,7 +133,7 @@ namespace slideshow
virtual bool clearAllViewLayers();
// attribute methods
- //------------------------------------------------------------------
+
virtual ShapeAttributeLayerSharedPtr createAttributeLayer();
virtual bool revokeAttributeLayer( const ShapeAttributeLayerSharedPtr& rLayer );
@@ -147,21 +147,21 @@ namespace slideshow
// animation methods
- //------------------------------------------------------------------
+
virtual void enterAnimationMode();
virtual void leaveAnimationMode();
virtual bool isBackgroundDetached() const;
// render methods
- //------------------------------------------------------------------
+
virtual bool update() const;
virtual bool render() const;
virtual bool isContentChanged() const;
// Sub item specialities
- //------------------------------------------------------------------
+
virtual const DocTreeNodeSupplier& getTreeNodeSupplier() const;
virtual DocTreeNodeSupplier& getTreeNodeSupplier();
@@ -174,7 +174,7 @@ namespace slideshow
// DocTreeNodeSupplier methods
- //------------------------------------------------------------------
+
virtual sal_Int32 getNumberOfTreeNodes ( DocTreeNode::NodeType eNodeType ) const; // throw ShapeLoadFailedException;
virtual DocTreeNode getTreeNode ( sal_Int32 nNodeIndex,
@@ -186,14 +186,14 @@ namespace slideshow
DocTreeNode::NodeType eNodeType ) const; // throw ShapeLoadFailedException;
// HyperlinkArea methods
- //------------------------------------------------------------------
+
virtual HyperlinkRegions getHyperlinkRegions() const;
virtual double getHyperlinkPriority() const;
// intrinsic animation methods
- //------------------------------------------------------------------
+
/** Display next frame of an intrinsic animation.
diff --git a/slideshow/source/engine/shapes/drawshapesubsetting.cxx b/slideshow/source/engine/shapes/drawshapesubsetting.cxx
index 8a98dc9d4f60..2b791c8ea350 100644
--- a/slideshow/source/engine/shapes/drawshapesubsetting.cxx
+++ b/slideshow/source/engine/shapes/drawshapesubsetting.cxx
@@ -46,11 +46,11 @@ namespace slideshow
namespace internal
{
- //////////////////////////////////////////////////////////////////////
- //
+
+
// Private methods
- //
- //////////////////////////////////////////////////////////////////////
+
+
void DrawShapeSubsetting::ensureInitializedNodeTree() const
{
@@ -226,11 +226,11 @@ namespace slideshow
}
}
- //////////////////////////////////////////////////////////////////////
- //
+
+
// Public methods
- //
- //////////////////////////////////////////////////////////////////////
+
+
DrawShapeSubsetting::DrawShapeSubsetting() :
maActionClassVector(),
@@ -392,7 +392,7 @@ namespace slideshow
// update currently active subset for _our_ shape (the
// part of this shape that is visible, i.e. not displayed
// in subset shapes)
- // ======================================================
+
// init bounds
mnMinSubsetActionIndex = SAL_MAX_INT32;
diff --git a/slideshow/source/engine/shapes/drawshapesubsetting.hxx b/slideshow/source/engine/shapes/drawshapesubsetting.hxx
index 0f3f1d38cf65..6c45f65e99e9 100644
--- a/slideshow/source/engine/shapes/drawshapesubsetting.hxx
+++ b/slideshow/source/engine/shapes/drawshapesubsetting.hxx
@@ -78,7 +78,7 @@ namespace slideshow
void reset( const ::boost::shared_ptr< GDIMetaFile >& rMtf );
// Shape subsetting methods
- // ========================================================
+
/// Return subset node for this shape
DocTreeNode getSubsetNode () const;
@@ -109,7 +109,7 @@ namespace slideshow
// Doc tree methods
- // ========================================================
+
/// Return overall number of nodes for given type
sal_Int32 getNumberOfTreeNodes ( DocTreeNode::NodeType eNodeType ) const;
@@ -128,7 +128,7 @@ namespace slideshow
DocTreeNode::NodeType eNodeType ) const;
// Helper
- // ========================================================
+
/** Return a vector of currently active subsets.
diff --git a/slideshow/source/engine/shapes/externalshapebase.hxx b/slideshow/source/engine/shapes/externalshapebase.hxx
index 58849e82b87f..cfff14924697 100644
--- a/slideshow/source/engine/shapes/externalshapebase.hxx
+++ b/slideshow/source/engine/shapes/externalshapebase.hxx
@@ -66,7 +66,7 @@ namespace slideshow
::com::sun::star::drawing::XShape > getXShape() const;
// animation methods
- //------------------------------------------------------------------
+
virtual void play();
virtual void stop();
@@ -75,7 +75,7 @@ namespace slideshow
virtual void setMediaTime(double);
// render methods
- //------------------------------------------------------------------
+
virtual bool update() const;
virtual bool render() const;
@@ -83,7 +83,7 @@ namespace slideshow
// Shape attributes
- //------------------------------------------------------------------
+
virtual ::basegfx::B2DRectangle getBounds() const;
virtual ::basegfx::B2DRectangle getDomBounds() const;
diff --git a/slideshow/source/engine/shapes/gdimtftools.hxx b/slideshow/source/engine/shapes/gdimtftools.hxx
index 121fd92c8a4e..5ba4aeed6331 100644
--- a/slideshow/source/engine/shapes/gdimtftools.hxx
+++ b/slideshow/source/engine/shapes/gdimtftools.hxx
@@ -36,7 +36,7 @@ class MetaAction;
class GDIMetaFile;
class Graphic;
-// -----------------------------------------------------------------------------
+
namespace slideshow
{
diff --git a/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx b/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx
index 89d5137ba78b..af58d1093026 100644
--- a/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx
+++ b/slideshow/source/engine/shapes/intrinsicanimationactivity.cxx
@@ -96,7 +96,7 @@ namespace slideshow
bool mbIsActive;
};
- //////////////////////////////////////////////////////////////////////
+
class IntrinsicAnimationListener : public IntrinsicAnimationEventHandler,
private boost::noncopyable
@@ -114,7 +114,7 @@ namespace slideshow
IntrinsicAnimationActivity& mrActivity;
};
- //////////////////////////////////////////////////////////////////////
+
IntrinsicAnimationActivity::IntrinsicAnimationActivity( const SlideShowContext& rContext,
const DrawShapeSharedPtr& rDrawShape,
@@ -258,7 +258,7 @@ namespace slideshow
shared_from_this() );
}
- //////////////////////////////////////////////////////////////////////
+
ActivitySharedPtr createIntrinsicAnimationActivity(
const SlideShowContext& rContext,
diff --git a/slideshow/source/engine/shapes/viewappletshape.hxx b/slideshow/source/engine/shapes/viewappletshape.hxx
index d852ebd9ef76..f11a04bd704d 100644
--- a/slideshow/source/engine/shapes/viewappletshape.hxx
+++ b/slideshow/source/engine/shapes/viewappletshape.hxx
@@ -90,7 +90,7 @@ namespace slideshow
ViewLayerSharedPtr getViewLayer() const;
// animation methods
- //------------------------------------------------------------------
+
/** Notify the ViewShape that an animation starts now
@@ -113,7 +113,7 @@ namespace slideshow
void endApplet();
// render methods
- //------------------------------------------------------------------
+
/** Render the ViewShape
diff --git a/slideshow/source/engine/shapes/viewmediashape.hxx b/slideshow/source/engine/shapes/viewmediashape.hxx
index 3bf4997d16ef..94b05eb1dda0 100644
--- a/slideshow/source/engine/shapes/viewmediashape.hxx
+++ b/slideshow/source/engine/shapes/viewmediashape.hxx
@@ -77,7 +77,7 @@ namespace slideshow
ViewLayerSharedPtr getViewLayer() const;
// animation methods
- //------------------------------------------------------------------
+
/** Notify the ViewShape that an animation starts now
@@ -111,7 +111,7 @@ namespace slideshow
void setMediaTime(double fTime);
// render methods
- //------------------------------------------------------------------
+
/** Render the ViewShape
diff --git a/slideshow/source/engine/shapes/viewshape.cxx b/slideshow/source/engine/shapes/viewshape.cxx
index 6fc93cb21085..edbd66631a16 100644
--- a/slideshow/source/engine/shapes/viewshape.cxx
+++ b/slideshow/source/engine/shapes/viewshape.cxx
@@ -644,7 +644,7 @@ namespace slideshow
// which happens to be the destination
// canvas transformation without any
// translational components.
- //
+
// But then, the render transformation as
// calculated by getShapeTransformation()
// above outputs the shape at its real
diff --git a/slideshow/source/engine/shapes/viewshape.hxx b/slideshow/source/engine/shapes/viewshape.hxx
index 68419de32579..520d2902c83f 100644
--- a/slideshow/source/engine/shapes/viewshape.hxx
+++ b/slideshow/source/engine/shapes/viewshape.hxx
@@ -73,7 +73,7 @@ namespace slideshow
// animation methods
- //------------------------------------------------------------------
+
/** Notify the ViewShape that an animation starts now
@@ -101,7 +101,7 @@ namespace slideshow
// render methods
- //------------------------------------------------------------------
+
enum UpdateFlags
{
diff --git a/slideshow/source/engine/slide/layer.hxx b/slideshow/source/engine/slide/layer.hxx
index 8bc81218ac16..b27261a87eff 100644
--- a/slideshow/source/engine/slide/layer.hxx
+++ b/slideshow/source/engine/slide/layer.hxx
@@ -92,7 +92,7 @@ namespace slideshow
static ::boost::shared_ptr< Layer > createLayer( const basegfx::B2DRange& rMaxLayerBounds );
- /////////////////////////////////////////////////////////////////////
+
/** Predicate, whether this layer is the special
@@ -133,7 +133,7 @@ namespace slideshow
void setShapeViews( ShapeSharedPtr const& rShape ) const;
- /////////////////////////////////////////////////////////////////////
+
/** Change layer priority range.
diff --git a/slideshow/source/engine/slide/layermanager.hxx b/slideshow/source/engine/slide/layermanager.hxx
index ef404f44cb6a..d9abd554d84f 100644
--- a/slideshow/source/engine/slide/layermanager.hxx
+++ b/slideshow/source/engine/slide/layermanager.hxx
@@ -252,7 +252,7 @@ namespace slideshow
typedef ::std::set< ShapeSharedPtr > ShapeUpdateSet;
- ////////////////////////////////////////////////////////////////////////
+
/// Adds shape area to containing layer's damage area
diff --git a/slideshow/source/engine/slide/shapemanagerimpl.hxx b/slideshow/source/engine/slide/shapemanagerimpl.hxx
index b52ab564a847..b5046e382306 100644
--- a/slideshow/source/engine/slide/shapemanagerimpl.hxx
+++ b/slideshow/source/engine/slide/shapemanagerimpl.hxx
@@ -85,14 +85,14 @@ public:
void deactivate();
// Disposable interface
- // ---------------------------------------------------------------
+
virtual void dispose();
private:
// MouseEventHandler interface
- // ---------------------------------------------------------------
+
virtual bool handleMousePressed(
::com::sun::star::awt::MouseEvent const& evt );
@@ -109,7 +109,7 @@ private:
// ViewUpdate interface
- // -------------------------------------------------------------------
+
virtual bool update();
virtual bool update( ViewSharedPtr const& rView );
@@ -117,7 +117,7 @@ private:
// ShapeManager interface
- // ---------------------------------------------------
+
virtual void enterAnimationMode( const AnimatableShapeSharedPtr& rShape );
virtual void leaveAnimationMode( const AnimatableShapeSharedPtr& rShape );
@@ -130,7 +130,7 @@ private:
// SubsettableShapeManager interface
- // ---------------------------------------------------
+
virtual boost::shared_ptr<AttributableShape> getSubsetShape(
const boost::shared_ptr<AttributableShape>& rOrigShape,
@@ -148,7 +148,7 @@ private:
// ShapeListenerEventHandler
- // ---------------------------------------------
+
virtual bool listenerAdded( const ::com::sun::star::uno::Reference<
::com::sun::star::presentation::XShapeEventListener>& xListener,
@@ -161,7 +161,7 @@ private:
::com::sun::star::drawing::XShape>& xShape );
// ShapeCursorEventHandler interface
- // ---------------------------------------------------------------
+
virtual bool cursorChanged( const ::com::sun::star::uno::Reference<
::com::sun::star::drawing::XShape>& xShape,
diff --git a/slideshow/source/engine/slide/slideimpl.cxx b/slideshow/source/engine/slide/slideimpl.cxx
index 09224861cf9d..1ba3723d2459 100644
--- a/slideshow/source/engine/slide/slideimpl.cxx
+++ b/slideshow/source/engine/slide/slideimpl.cxx
@@ -291,7 +291,7 @@ private:
};
-//////////////////////////////////////////////////////////////////////////////////
+
class SlideRenderer
@@ -332,7 +332,7 @@ private:
};
-//////////////////////////////////////////////////////////////////////////////////
+
SlideImpl::SlideImpl( const uno::Reference< drawing::XDrawPage >& xDrawPage,
diff --git a/slideshow/source/engine/slideshowimpl.cxx b/slideshow/source/engine/slideshowimpl.cxx
index fa112f372e70..8e0d7f2443e8 100644
--- a/slideshow/source/engine/slideshowimpl.cxx
+++ b/slideshow/source/engine/slideshowimpl.cxx
@@ -2060,7 +2060,7 @@ sal_Bool SlideShowImpl::update( double & nNextTimeout )
// TODO(Q3): remove need to call dequeued() from
// activities. feels like a wart.
- //
+
// Rationale for ActivitiesQueue::processDequeued(): when
// an activity ends, it usually pushed the end state to
// the animated shape in question, and ends the animation
diff --git a/slideshow/source/engine/slideview.cxx b/slideshow/source/engine/slideview.cxx
index 9b77578c3459..ffb6d39e0c86 100644
--- a/slideshow/source/engine/slideview.cxx
+++ b/slideshow/source/engine/slideview.cxx
@@ -272,7 +272,7 @@ class LayerSpriteContainer
// sprites, assign upper bound of individual sprite range as
// sprite prio (the layer itself gets assigned the lower bound
// of sprite 0's individual range):
- //
+
// | layer 0 | layer 1 | ...
// | sprite 0 | sprite 1 | sprite 0 | sprite 1 | ...
return maLayerPrioRange.getMinimum() + maLayerPrioRange.getRange()*(nSpriteNum+1)/(maSprites.size()+1);
diff --git a/slideshow/source/engine/smilfunctionparser.cxx b/slideshow/source/engine/smilfunctionparser.cxx
index b466a1ac4d41..47b4f8538725 100644
--- a/slideshow/source/engine/smilfunctionparser.cxx
+++ b/slideshow/source/engine/smilfunctionparser.cxx
@@ -356,16 +356,16 @@ namespace slideshow
// Workaround for MSVC compiler anomaly (stack trashing)
- //
+
// The default ureal_parser_policies implementation of parse_exp
// triggers a really weird error in MSVC7 (Version 13.00.9466), in
// that the real_parser_impl::parse_main() call of parse_exp()
// overwrites the frame pointer _on the stack_ (EBP of the calling
// function gets overwritten while lying on the stack).
- //
+
// For the time being, our parser thus can only read the 1.0E10
// notation, not the 1.0e10 one.
- //
+
// TODO(F1): Also handle the 1.0e10 case here.
template< typename T > struct custom_real_parser_policies : public ::boost::spirit::ureal_parser_policies<T>
{
diff --git a/slideshow/source/engine/sp_debug.cxx b/slideshow/source/engine/sp_debug.cxx
index 7dd5a2ea78a4..c481401c7077 100644
--- a/slideshow/source/engine/sp_debug.cxx
+++ b/slideshow/source/engine/sp_debug.cxx
@@ -18,16 +18,16 @@
*/
-//
+
// sp_collector.cpp
-//
+
// Copyright (c) 2002, 2003 Peter Dimov
-//
+
// Permission to copy, use, modify, sell and distribute this software
// is granted provided this copyright notice appears in all copies.
// This software is provided "as is" without express or implied
// warranty, and with no claim as to its suitability for any purpose.
-//
+
#if defined(BOOST_SP_ENABLE_DEBUG_HOOKS)
diff --git a/slideshow/source/engine/transitions/slidetransitionfactory.cxx b/slideshow/source/engine/transitions/slidetransitionfactory.cxx
index 057c96e3bf92..9281c4cd5ce1 100644
--- a/slideshow/source/engine/transitions/slidetransitionfactory.cxx
+++ b/slideshow/source/engine/transitions/slidetransitionfactory.cxx
@@ -862,7 +862,7 @@ NumberAnimationSharedPtr createSlideWipeTransition(
// normal, 'forward' slide wipe effect. Since the old
// content is still on screen (and does not move), we omit
// the 'leaving' slide.
- // =======================================================
+
return NumberAnimationSharedPtr(
new MovingSlideChange(
@@ -880,7 +880,7 @@ NumberAnimationSharedPtr createSlideWipeTransition(
// 'reversed' slide wipe effect. Reverse for slide wipes
// means, that the new slide is in the back, statically,
// and the old one is moving off in the foreground.
- // =======================================================
+
return NumberAnimationSharedPtr(
new MovingSlideChange( leavingSlide,
diff --git a/slideshow/source/engine/transitions/transitionfactorytab.cxx b/slideshow/source/engine/transitions/transitionfactorytab.cxx
index 92bc67389056..1cec25dca37b 100644
--- a/slideshow/source/engine/transitions/transitionfactorytab.cxx
+++ b/slideshow/source/engine/transitions/transitionfactorytab.cxx
@@ -2083,12 +2083,12 @@ static const TransitionInfo lcl_transitionInfo[] =
true // scale isotrophically to target size
},
- /////////////////////////////////////////////////////////
+
// NOTE: This entry MUST be the last, to keep
// createSlideTransition() from infinite recursion. Because
// getRandomTransitionInfo() below will exclude the last entry of
// the table from the random number generation.
- /////////////////////////////////////////////////////////
+
{
// specially handled
animations::TransitionType::RANDOM,
@@ -2101,9 +2101,9 @@ static const TransitionInfo lcl_transitionInfo[] =
true, // 'out' by parameter sweep inversion
true // scale isotrophically to target size
}
- /////////////////////////////////////////////////////////
+
// NOTE: DON'T add after this entry! See comment above!
- /////////////////////////////////////////////////////////
+
};
} // anon namespace
diff --git a/slideshow/source/engine/usereventqueue.cxx b/slideshow/source/engine/usereventqueue.cxx
index 5898f9171a1f..4a6c49164aed 100644
--- a/slideshow/source/engine/usereventqueue.cxx
+++ b/slideshow/source/engine/usereventqueue.cxx
@@ -639,8 +639,6 @@ void UserEventQueue::registerEvent(
}
-// Public methods
-// =====================================================
UserEventQueue::UserEventQueue( EventMultiplexer& rMultiplexer,
EventQueue& rEventQueue,