tdf#123936 Formatting files in module slideshow with clang-format
Change-Id: I108be5e01ed319f42912a6762ebceb97795113ca Reviewed-on: https://gerrit.libreoffice.org/c/core/+/105708 Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com> Tested-by: Jenkins
This commit is contained in:
committed by
Christian Lohmaier
parent
15d080d2ca
commit
156da5b553
@@ -25,22 +25,23 @@
|
||||
#include "parametricpolypolygon.hxx"
|
||||
#include "transitiontools.hxx"
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
/// Generate a barn door wipe or double barn door wipe:
|
||||
class BarnDoorWipe : public ParametricPolyPolygon
|
||||
{
|
||||
public:
|
||||
explicit BarnDoorWipe( bool doubled = false )
|
||||
: m_unitRect( createUnitRect() ), m_doubled(doubled) {}
|
||||
virtual ::basegfx::B2DPolyPolygon operator()( double x ) override;
|
||||
explicit BarnDoorWipe(bool doubled = false)
|
||||
: m_unitRect(createUnitRect())
|
||||
, m_doubled(doubled)
|
||||
{
|
||||
}
|
||||
virtual ::basegfx::B2DPolyPolygon operator()(double x) override;
|
||||
|
||||
private:
|
||||
const ::basegfx::B2DPolygon m_unitRect;
|
||||
const bool m_doubled;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_TRANSITIONS_BARNDOORWIPE_HXX
|
||||
|
||||
@@ -23,19 +23,16 @@
|
||||
#include <basegfx/polygon/b2dpolygon.hxx>
|
||||
#include "parametricpolypolygon.hxx"
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
/// Generates a clockWiseTwelve clock wipe:
|
||||
class ClockWipe : public ParametricPolyPolygon
|
||||
{
|
||||
public:
|
||||
/// 0,1 to 1,1 to 1,0 to 0,-1 to -1,0 to 0,1:
|
||||
static ::basegfx::B2DPolygon calcCenteredClock( double t, double e = 1.0 );
|
||||
virtual ::basegfx::B2DPolyPolygon operator () ( double t ) override;
|
||||
static ::basegfx::B2DPolygon calcCenteredClock(double t, double e = 1.0);
|
||||
virtual ::basegfx::B2DPolyPolygon operator()(double t) override;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_TRANSITIONS_CLOCKWIPE_HXX
|
||||
|
||||
@@ -24,18 +24,15 @@
|
||||
|
||||
#include "parametricpolypolygon.hxx"
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
/// Generates a double diamond wipe:
|
||||
class DoubleDiamondWipe : public ParametricPolyPolygon
|
||||
{
|
||||
public:
|
||||
DoubleDiamondWipe() {}
|
||||
virtual ::basegfx::B2DPolyPolygon operator()( double x ) override;
|
||||
virtual ::basegfx::B2DPolyPolygon operator()(double x) override;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_TRANSITIONS_DOUBLEDIAMONDWIPE_HXX
|
||||
|
||||
@@ -17,25 +17,22 @@
|
||||
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
||||
*/
|
||||
|
||||
|
||||
#include <basegfx/matrix/b2dhommatrix.hxx>
|
||||
#include <basegfx/matrix/b2dhommatrixtools.hxx>
|
||||
#include "iriswipe.hxx"
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
::basegfx::B2DPolyPolygon IrisWipe::operator () ( double t )
|
||||
namespace slideshow::internal
|
||||
{
|
||||
::basegfx::B2DPolyPolygon IrisWipe::operator()(double t)
|
||||
{
|
||||
const double d = ::basegfx::pruneScaleValue(t);
|
||||
basegfx::B2DHomMatrix aTransform(basegfx::utils::createTranslateB2DHomMatrix(-0.5, -0.5));
|
||||
aTransform = basegfx::utils::createScaleTranslateB2DHomMatrix(d, d, 0.5, 0.5) * aTransform;
|
||||
|
||||
::basegfx::B2DPolyPolygon res( m_unitRect );
|
||||
res.transform( aTransform );
|
||||
::basegfx::B2DPolyPolygon res(m_unitRect);
|
||||
res.transform(aTransform);
|
||||
return res;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|
||||
|
||||
@@ -24,20 +24,21 @@
|
||||
#include "parametricpolypolygon.hxx"
|
||||
#include "transitiontools.hxx"
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
/// Generate an iris wipe
|
||||
class IrisWipe : public ParametricPolyPolygon
|
||||
{
|
||||
public:
|
||||
IrisWipe() : m_unitRect( createUnitRect() ) {}
|
||||
virtual ::basegfx::B2DPolyPolygon operator()( double x ) override;
|
||||
IrisWipe()
|
||||
: m_unitRect(createUnitRect())
|
||||
{
|
||||
}
|
||||
virtual ::basegfx::B2DPolyPolygon operator()(double x) override;
|
||||
|
||||
private:
|
||||
const ::basegfx::B2DPolyPolygon m_unitRect;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_TRANSITIONS_IRISWIPE_HXX
|
||||
|
||||
@@ -26,23 +26,20 @@
|
||||
|
||||
#include "parametricpolypolygon.hxx"
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
class RandomWipe : public ParametricPolyPolygon
|
||||
{
|
||||
public:
|
||||
RandomWipe( sal_Int32 nElements,
|
||||
bool randomBars /* true: generates a horizontal random bar wipe,
|
||||
false: generates a dissolve wipe */ );
|
||||
virtual ::basegfx::B2DPolyPolygon operator () ( double t ) override;
|
||||
RandomWipe(sal_Int32 nElements, bool randomBars /* true: generates a horizontal random bar wipe,
|
||||
false: generates a dissolve wipe */);
|
||||
virtual ::basegfx::B2DPolyPolygon operator()(double t) override;
|
||||
|
||||
private:
|
||||
::std::unique_ptr< ::basegfx::B2DPoint []> m_positions;
|
||||
::std::unique_ptr<::basegfx::B2DPoint[]> m_positions;
|
||||
sal_Int32 m_nElements;
|
||||
::basegfx::B2DPolygon m_rect;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_TRANSITIONS_RANDOMWIPE_HXX
|
||||
|
||||
@@ -24,15 +24,13 @@
|
||||
|
||||
#include <sal/types.h>
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
struct TransitionInfo;
|
||||
|
||||
TransitionInfo const * getTransitionInfo(
|
||||
sal_Int16 nTransitionType, sal_Int16 nTransitionSubType);
|
||||
|
||||
TransitionInfo const * getRandomTransitionInfo();
|
||||
TransitionInfo const* getTransitionInfo(sal_Int16 nTransitionType, sal_Int16 nTransitionSubType);
|
||||
|
||||
TransitionInfo const* getRandomTransitionInfo();
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
@@ -23,20 +23,16 @@
|
||||
#include <basegfx/polygon/b2dpolygon.hxx>
|
||||
#include <basegfx/polygon/b2dpolypolygon.hxx>
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
/// Create a unit rect.
|
||||
::basegfx::B2DPolygon createUnitRect();
|
||||
|
||||
/// Flips on X-axis:
|
||||
::basegfx::B2DPolyPolygon flipOnXAxis(
|
||||
::basegfx::B2DPolyPolygon const & polypoly );
|
||||
::basegfx::B2DPolyPolygon flipOnXAxis(::basegfx::B2DPolyPolygon const& polypoly);
|
||||
|
||||
/// Flips on Y-axis:
|
||||
::basegfx::B2DPolyPolygon flipOnYAxis(
|
||||
::basegfx::B2DPolyPolygon const & polypoly );
|
||||
|
||||
::basegfx::B2DPolyPolygon flipOnYAxis(::basegfx::B2DPolyPolygon const& polypoly);
|
||||
}
|
||||
|
||||
#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_TRANSITIONS_TRANSITIONTOOLS_HXX
|
||||
|
||||
@@ -24,18 +24,15 @@
|
||||
|
||||
#include "parametricpolypolygon.hxx"
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
/// Generate a vee wipe
|
||||
class VeeWipe : public ParametricPolyPolygon
|
||||
{
|
||||
public:
|
||||
VeeWipe() {}
|
||||
virtual ::basegfx::B2DPolyPolygon operator()( double x ) override;
|
||||
virtual ::basegfx::B2DPolyPolygon operator()(double x) override;
|
||||
};
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif // INCLUDED_SLIDESHOW_SOURCE_ENGINE_TRANSITIONS_VEEWIPE_HXX
|
||||
|
||||
@@ -24,11 +24,10 @@
|
||||
#include <com/sun/star/animations/XAnimationNode.hpp>
|
||||
#include <memory>
|
||||
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
class AnimationNode;
|
||||
typedef ::std::shared_ptr< AnimationNode > AnimationNodeSharedPtr;
|
||||
typedef ::std::shared_ptr<AnimationNode> AnimationNodeSharedPtr;
|
||||
|
||||
/** This interface is used to mirror every XAnimateNode object
|
||||
in the presentation core.
|
||||
@@ -38,26 +37,26 @@ class AnimationNode : public Disposable
|
||||
public:
|
||||
/** The current state of this AnimationNode
|
||||
*/
|
||||
enum NodeState {
|
||||
enum NodeState
|
||||
{
|
||||
/// Invalid state, node is disposed or otherwise invalid
|
||||
INVALID =0,
|
||||
INVALID = 0,
|
||||
/// Unresolved start time
|
||||
UNRESOLVED =1,
|
||||
UNRESOLVED = 1,
|
||||
/// Resolved start time, node will start eventually
|
||||
RESOLVED =2,
|
||||
RESOLVED = 2,
|
||||
/// Node is active
|
||||
ACTIVE =4,
|
||||
ACTIVE = 4,
|
||||
/// Node is frozen (no longer active, but changes remain in place)
|
||||
FROZEN =8,
|
||||
FROZEN = 8,
|
||||
/// Node has completed an active lifecycle,
|
||||
/// and any effect is removed from the document
|
||||
ENDED =16
|
||||
ENDED = 16
|
||||
};
|
||||
|
||||
/** Query the corresponding XAnimationNode.
|
||||
*/
|
||||
virtual css::uno::Reference< css::animations::XAnimationNode >
|
||||
getXAnimationNode() const = 0;
|
||||
virtual css::uno::Reference<css::animations::XAnimationNode> getXAnimationNode() const = 0;
|
||||
|
||||
/** Init this node
|
||||
|
||||
@@ -125,15 +124,13 @@ public:
|
||||
|
||||
@param rNotifee AnimationNode to notify
|
||||
*/
|
||||
virtual bool registerDeactivatingListener(
|
||||
const AnimationNodeSharedPtr& rNotifee ) = 0;
|
||||
virtual bool registerDeactivatingListener(const AnimationNodeSharedPtr& rNotifee) = 0;
|
||||
|
||||
/** Called to notify another AnimationNode's deactivation
|
||||
|
||||
@param rNotifier The instance who calls this method.
|
||||
*/
|
||||
virtual void notifyDeactivating(
|
||||
const AnimationNodeSharedPtr& rNotifier ) = 0;
|
||||
virtual void notifyDeactivating(const AnimationNodeSharedPtr& rNotifier) = 0;
|
||||
|
||||
/** Called by the container to remove the animation effect
|
||||
to make the painted shape correct if it restart because
|
||||
|
||||
@@ -24,14 +24,17 @@
|
||||
#include <memory>
|
||||
#include <vector>
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
/** Definition of Event interface
|
||||
*/
|
||||
class Event : public Disposable
|
||||
{
|
||||
public:
|
||||
Event (const OUString& rsDescription) : msDescription(rsDescription) {}
|
||||
Event(const OUString& rsDescription)
|
||||
: msDescription(rsDescription)
|
||||
{
|
||||
}
|
||||
|
||||
/** Execute the event.
|
||||
|
||||
@@ -61,7 +64,7 @@ public:
|
||||
@return the time instant in seconds, on which this
|
||||
event is to be fired.
|
||||
*/
|
||||
virtual double getActivationTime( double nCurrentTime ) const = 0;
|
||||
virtual double getActivationTime(double nCurrentTime) const = 0;
|
||||
|
||||
const OUString& GetDescription() const { return msDescription; }
|
||||
|
||||
@@ -69,8 +72,8 @@ private:
|
||||
const OUString msDescription;
|
||||
};
|
||||
|
||||
typedef ::std::shared_ptr< Event > EventSharedPtr;
|
||||
typedef ::std::vector< EventSharedPtr > VectorOfEvents;
|
||||
typedef ::std::shared_ptr<Event> EventSharedPtr;
|
||||
typedef ::std::vector<EventSharedPtr> VectorOfEvents;
|
||||
|
||||
} // namespace presentation::internal
|
||||
|
||||
|
||||
@@ -22,8 +22,8 @@
|
||||
|
||||
#include <sal/types.h>
|
||||
|
||||
namespace slideshow::internal {
|
||||
|
||||
namespace slideshow::internal
|
||||
{
|
||||
/** Some frame rate related data.
|
||||
*/
|
||||
class FrameRate
|
||||
|
||||
@@ -11609,7 +11609,6 @@ slideshow/source/engine/smilfunctionparser.cxx
|
||||
slideshow/source/engine/soundplayer.cxx
|
||||
slideshow/source/engine/tools.cxx
|
||||
slideshow/source/engine/transitions/barndoorwipe.cxx
|
||||
slideshow/source/engine/transitions/barndoorwipe.hxx
|
||||
slideshow/source/engine/transitions/barwipepolypolygon.cxx
|
||||
slideshow/source/engine/transitions/barwipepolypolygon.hxx
|
||||
slideshow/source/engine/transitions/boxwipe.cxx
|
||||
@@ -11619,11 +11618,9 @@ slideshow/source/engine/transitions/checkerboardwipe.hxx
|
||||
slideshow/source/engine/transitions/clippingfunctor.cxx
|
||||
slideshow/source/engine/transitions/clippingfunctor.hxx
|
||||
slideshow/source/engine/transitions/clockwipe.cxx
|
||||
slideshow/source/engine/transitions/clockwipe.hxx
|
||||
slideshow/source/engine/transitions/combtransition.cxx
|
||||
slideshow/source/engine/transitions/combtransition.hxx
|
||||
slideshow/source/engine/transitions/doublediamondwipe.cxx
|
||||
slideshow/source/engine/transitions/doublediamondwipe.hxx
|
||||
slideshow/source/engine/transitions/ellipsewipe.cxx
|
||||
slideshow/source/engine/transitions/ellipsewipe.hxx
|
||||
slideshow/source/engine/transitions/fanwipe.cxx
|
||||
@@ -11632,15 +11629,12 @@ slideshow/source/engine/transitions/figurewipe.cxx
|
||||
slideshow/source/engine/transitions/figurewipe.hxx
|
||||
slideshow/source/engine/transitions/fourboxwipe.cxx
|
||||
slideshow/source/engine/transitions/fourboxwipe.hxx
|
||||
slideshow/source/engine/transitions/iriswipe.cxx
|
||||
slideshow/source/engine/transitions/iriswipe.hxx
|
||||
slideshow/source/engine/transitions/parametricpolypolygon.hxx
|
||||
slideshow/source/engine/transitions/parametricpolypolygonfactory.cxx
|
||||
slideshow/source/engine/transitions/parametricpolypolygonfactory.hxx
|
||||
slideshow/source/engine/transitions/pinwheelwipe.cxx
|
||||
slideshow/source/engine/transitions/pinwheelwipe.hxx
|
||||
slideshow/source/engine/transitions/randomwipe.cxx
|
||||
slideshow/source/engine/transitions/randomwipe.hxx
|
||||
slideshow/source/engine/transitions/shapetransitionfactory.cxx
|
||||
slideshow/source/engine/transitions/slidechangebase.cxx
|
||||
slideshow/source/engine/transitions/slidechangebase.hxx
|
||||
@@ -11652,11 +11646,8 @@ slideshow/source/engine/transitions/spiralwipe.hxx
|
||||
slideshow/source/engine/transitions/sweepwipe.cxx
|
||||
slideshow/source/engine/transitions/sweepwipe.hxx
|
||||
slideshow/source/engine/transitions/transitionfactorytab.cxx
|
||||
slideshow/source/engine/transitions/transitionfactorytab.hxx
|
||||
slideshow/source/engine/transitions/transitiontools.cxx
|
||||
slideshow/source/engine/transitions/transitiontools.hxx
|
||||
slideshow/source/engine/transitions/veewipe.cxx
|
||||
slideshow/source/engine/transitions/veewipe.hxx
|
||||
slideshow/source/engine/transitions/waterfallwipe.cxx
|
||||
slideshow/source/engine/transitions/waterfallwipe.hxx
|
||||
slideshow/source/engine/transitions/zigzagwipe.cxx
|
||||
@@ -11675,7 +11666,6 @@ slideshow/source/inc/animation.hxx
|
||||
slideshow/source/inc/animationactivity.hxx
|
||||
slideshow/source/inc/animationeventhandler.hxx
|
||||
slideshow/source/inc/animationfactory.hxx
|
||||
slideshow/source/inc/animationnode.hxx
|
||||
slideshow/source/inc/animationnodefactory.hxx
|
||||
slideshow/source/inc/attributableshape.hxx
|
||||
slideshow/source/inc/attributemap.hxx
|
||||
@@ -11689,13 +11679,11 @@ slideshow/source/inc/disposable.hxx
|
||||
slideshow/source/inc/doctreenode.hxx
|
||||
slideshow/source/inc/doctreenodesupplier.hxx
|
||||
slideshow/source/inc/enumanimation.hxx
|
||||
slideshow/source/inc/event.hxx
|
||||
slideshow/source/inc/eventhandler.hxx
|
||||
slideshow/source/inc/eventmultiplexer.hxx
|
||||
slideshow/source/inc/eventqueue.hxx
|
||||
slideshow/source/inc/expressionnode.hxx
|
||||
slideshow/source/inc/expressionnodefactory.hxx
|
||||
slideshow/source/inc/framerate.hxx
|
||||
slideshow/source/inc/hslcolor.hxx
|
||||
slideshow/source/inc/hslcoloranimation.hxx
|
||||
slideshow/source/inc/hyperlinkarea.hxx
|
||||
|
||||
Reference in New Issue
Block a user