summaryrefslogtreecommitdiffstats
path: root/slideshow/source/inc/tools.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'slideshow/source/inc/tools.hxx')
-rw-r--r--slideshow/source/inc/tools.hxx29
1 files changed, 14 insertions, 15 deletions
diff --git a/slideshow/source/inc/tools.hxx b/slideshow/source/inc/tools.hxx
index 8075743d3ad4..811face5ca6c 100644
--- a/slideshow/source/inc/tools.hxx
+++ b/slideshow/source/inc/tools.hxx
@@ -37,8 +37,7 @@
#include "rgbcolor.hxx"
#include "hslcolor.hxx"
-#include <boost/shared_ptr.hpp>
-
+#include <memory>
#include <functional>
#include <cstdlib>
#include <string.h>
@@ -67,7 +66,7 @@ namespace slideshow
class Shape;
class ShapeAttributeLayer;
- typedef ::boost::shared_ptr< GDIMetaFile > GDIMetaFileSharedPtr;
+ typedef ::std::shared_ptr< GDIMetaFile > GDIMetaFileSharedPtr;
template <typename T>
inline ::std::size_t hash_value( T const * p )
@@ -123,49 +122,49 @@ namespace slideshow
/// extract unary double value from Any
bool extractValue( double& o_rValue,
const css::uno::Any& rSourceAny,
- const boost::shared_ptr<Shape>& rShape,
+ const std::shared_ptr<Shape>& rShape,
const basegfx::B2DVector& rSlideBounds );
/// extract int from Any
bool extractValue( sal_Int32& o_rValue,
const css::uno::Any& rSourceAny,
- const boost::shared_ptr<Shape>& rShape,
+ const std::shared_ptr<Shape>& rShape,
const basegfx::B2DVector& rSlideBounds );
/// extract enum/constant group value from Any
bool extractValue( sal_Int16& o_rValue,
const css::uno::Any& rSourceAny,
- const boost::shared_ptr<Shape>& rShape,
+ const std::shared_ptr<Shape>& rShape,
const basegfx::B2DVector& rSlideBounds );
/// extract color value from Any
bool extractValue( RGBColor& o_rValue,
const css::uno::Any& rSourceAny,
- const boost::shared_ptr<Shape>& rShape,
+ const std::shared_ptr<Shape>& rShape,
const basegfx::B2DVector& rSlideBounds );
/// extract color value from Any
bool extractValue( HSLColor& o_rValue,
const css::uno::Any& rSourceAny,
- const boost::shared_ptr<Shape>& rShape,
+ const std::shared_ptr<Shape>& rShape,
const basegfx::B2DVector& rSlideBounds );
/// extract plain string from Any
bool extractValue( OUString& o_rValue,
const css::uno::Any& rSourceAny,
- const boost::shared_ptr<Shape>& rShape,
+ const std::shared_ptr<Shape>& rShape,
const basegfx::B2DVector& rSlideBounds );
/// extract bool value from Any
bool extractValue( bool& o_rValue,
const css::uno::Any& rSourceAny,
- const boost::shared_ptr<Shape>& rShape,
+ const std::shared_ptr<Shape>& rShape,
const basegfx::B2DVector& rSlideBounds );
/// extract double 2-tuple from Any
bool extractValue( basegfx::B2DTuple& o_rPair,
const css::uno::Any& rSourceAny,
- const boost::shared_ptr<Shape>& rShape,
+ const std::shared_ptr<Shape>& rShape,
const basegfx::B2DVector& rSlideBounds );
/** Search a sequence of NamedValues for a given element.
@@ -191,7 +190,7 @@ namespace slideshow
*/
basegfx::B2DHomMatrix getShapeTransformation(
const basegfx::B2DRange& rBounds,
- const boost::shared_ptr<ShapeAttributeLayer>& pAttr );
+ const std::shared_ptr<ShapeAttributeLayer>& pAttr );
/** Get a shape's sprite transformation from the attribute set
@@ -211,7 +210,7 @@ namespace slideshow
basegfx::B2DHomMatrix getSpriteTransformation(
const basegfx::B2DVector& rPixelSize,
const basegfx::B2DVector& rOrigSize,
- const boost::shared_ptr<ShapeAttributeLayer>& pAttr );
+ const std::shared_ptr<ShapeAttributeLayer>& pAttr );
/** Calc update area for a shape.
@@ -234,7 +233,7 @@ namespace slideshow
basegfx::B2DRange getShapeUpdateArea(
const basegfx::B2DRange& rUnitBounds,
const basegfx::B2DHomMatrix& rShapeTransform,
- const boost::shared_ptr<ShapeAttributeLayer>& pAttr );
+ const std::shared_ptr<ShapeAttributeLayer>& pAttr );
/** Calc update area for a shape.
@@ -267,7 +266,7 @@ namespace slideshow
*/
basegfx::B2DRange getShapePosSize(
const basegfx::B2DRange& rOrigBounds,
- const boost::shared_ptr<ShapeAttributeLayer>& pAttr );
+ const std::shared_ptr<ShapeAttributeLayer>& pAttr );
/** Convert a plain UNO API 32 bit int to RGBColor
*/