LibreOffice Module slideshow (master) 1
Classes | Namespaces | Typedefs | Functions | Variables
tools.hxx File Reference
#include <com/sun/star/uno/Sequence.hxx>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/uno/Reference.hxx>
#include <com/sun/star/animations/XAnimationNode.hpp>
#include <com/sun/star/container/XEnumerationAccess.hpp>
#include <com/sun/star/container/XEnumeration.hpp>
#include <comphelper/random.hxx>
#include <sal/log.hxx>
#include <cppcanvas/color.hxx>
#include "shapeattributelayer.hxx"
#include "shape.hxx"
#include "rgbcolor.hxx"
#include "hslcolor.hxx"
#include <memory>
Include dependency graph for tools.hxx:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  slideshow::internal::hash< T >
 

Namespaces

namespace  com
 
namespace  com::sun
 
namespace  com::sun::star
 
namespace  com::sun::star::beans
 
namespace  basegfx
 
namespace  cppcanvas
 
namespace  slideshow
 
namespace  slideshow::internal
 
namespace  com::sun::star::uno
 

Typedefs

typedef std::shared_ptr< GDIMetaFileslideshow::internal::GDIMetaFileSharedPtr
 

Functions

template<typename T >
inline ::std::size_t slideshow::internal::hash_value (T const *p)
 
template<typename T >
inline ::std::size_t com::sun::star::uno::hash_value (css::uno::Reference< T > const &x)
 
bool slideshow::internal::extractValue (double &o_rValue, const css::uno::Any &rSourceAny, const ShapeSharedPtr &rShape, const basegfx::B2DVector &rSlideBounds)
 extract unary double value from Any More...
 
bool slideshow::internal::extractValue (sal_Int32 &o_rValue, const css::uno::Any &rSourceAny, const ShapeSharedPtr &rShape, const basegfx::B2DVector &rSlideBounds)
 extract int from Any More...
 
bool slideshow::internal::extractValue (sal_Int16 &o_rValue, const css::uno::Any &rSourceAny, const ShapeSharedPtr &rShape, const basegfx::B2DVector &rSlideBounds)
 extract enum/constant group value from Any More...
 
bool slideshow::internal::extractValue (RGBColor &o_rValue, const css::uno::Any &rSourceAny, const ShapeSharedPtr &rShape, const basegfx::B2DVector &rSlideBounds)
 extract color value from Any More...
 
bool slideshow::internal::extractValue (HSLColor &o_rValue, const css::uno::Any &rSourceAny, const ShapeSharedPtr &rShape, const basegfx::B2DVector &rSlideBounds)
 extract color value from Any More...
 
bool slideshow::internal::extractValue (OUString &o_rValue, const css::uno::Any &rSourceAny, const ShapeSharedPtr &rShape, const basegfx::B2DVector &rSlideBounds)
 extract plain string from Any More...
 
bool slideshow::internal::extractValue (bool &o_rValue, const css::uno::Any &rSourceAny, const ShapeSharedPtr &rShape, const basegfx::B2DVector &rSlideBounds)
 extract bool value from Any More...
 
bool slideshow::internal::extractValue (basegfx::B2DTuple &o_rPair, const css::uno::Any &rSourceAny, const ShapeSharedPtr &rShape, const basegfx::B2DVector &rSlideBounds)
 extract double 2-tuple from Any More...
 
bool slideshow::internal::findNamedValue (css::uno::Sequence< css::beans::NamedValue > const &rSequence, const css::beans::NamedValue &rSearchKey)
 Search a sequence of NamedValues for a given element. More...
 
basegfx::B2DRange slideshow::internal::calcRelativeShapeBounds (const basegfx::B2DVector &rPageSize, const basegfx::B2DRange &rShapeBounds)
 
basegfx::B2DHomMatrix slideshow::internal::getShapeTransformation (const basegfx::B2DRectangle &rBounds, const ShapeAttributeLayerSharedPtr &pAttr)
 Get the shape transformation from the attribute set. More...
 
basegfx::B2DHomMatrix slideshow::internal::getSpriteTransformation (const basegfx::B2DVector &rPixelSize, const basegfx::B2DVector &rOrigSize, const ShapeAttributeLayerSharedPtr &pAttr)
 Get a shape's sprite transformation from the attribute set. More...
 
basegfx::B2DRectangle slideshow::internal::getShapeUpdateArea (const basegfx::B2DRectangle &rUnitBounds, const basegfx::B2DHomMatrix &rShapeTransform, const ShapeAttributeLayerSharedPtr &pAttr)
 Calc update area for a shape. More...
 
basegfx::B2DRange slideshow::internal::getShapeUpdateArea (const basegfx::B2DRange &rUnitBounds, const basegfx::B2DRange &rShapeBounds)
 Calc update area for a shape. More...
 
basegfx::B2DRectangle slideshow::internal::getShapePosSize (const basegfx::B2DRectangle &rOrigBounds, const ShapeAttributeLayerSharedPtr &pAttr)
 Calc output position and size of shape, according to given attribute layer. More...
 
sal_Int32 slideshow::internal::RGBAColor2UnoColor (cppcanvas::IntSRGBA)
 Convert an IntSRGBA to plain UNO API 32 bit int. More...
 
void slideshow::internal::fillRect (const cppcanvas::CanvasSharedPtr &rCanvas, const basegfx::B2DRectangle &rRect, cppcanvas::IntSRGBA aFillColor)
 Fill a plain rectangle on the given canvas with the given color. More...
 
void slideshow::internal::initSlideBackground (const cppcanvas::CanvasSharedPtr &rCanvas, const basegfx::B2ISize &rSize)
 Init canvas with default background (white) More...
 
inline ::std::size_t slideshow::internal::getRandomOrdinal (const ::std::size_t n)
 Gets a random ordinal [0,n) More...
 
template<typename ValueType >
bool slideshow::internal::getPropertyValue (ValueType &rValue, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
 
template<typename ValueType >
bool slideshow::internal::getPropertyValue (css::uno::Reference< ValueType > &rIfc, css::uno::Reference< css::beans::XPropertySet > const &xPropSet, OUString const &propName)
 
basegfx::B2DRectangle slideshow::internal::getAPIShapeBounds (const css::uno::Reference< css::drawing::XShape > &xShape)
 Get the content of the BoundRect shape property. More...
 
basegfx::B2IVector slideshow::internal::getSlideSizePixel (const basegfx::B2DVector &rSlideSize, const UnoViewSharedPtr &pView)
 
template<typename Functor >
bool slideshow::for_each_childNode (const css::uno::Reference< css::animations::XAnimationNode > &xNode, Functor &rFunctor)
 Apply given functor to every animation node child. More...
 

Variables

RGBColor slideshow::internal::unoColor2RGBColor (sal_Int32)
 Convert a plain UNO API 32 bit int to RGBColor. More...