namespace com::sun::star::beans { struct NamedValue; } namespace basegfx
{ class B2DRange; class B2DVector; class B2IVector; class B2DHomMatrix; class B2ISize;
}
class GDIMetaFile;
/* Definition of some animation tools */ namespace slideshow
{ namespace internal
{ class UnoView; typedef std::shared_ptr< UnoView > UnoViewSharedPtr; typedef std::shared_ptr< GDIMetaFile > GDIMetaFileSharedPtr;
template <typename T> inline ::std::size_t hash_value( T const * p )
{
::std::size_t d = static_cast< ::std::size_t >( reinterpret_cast< ::std::ptrdiff_t >(p) ); return d + (d >> 3);
}
template <typename T> struct hash
{
::std::size_t operator()( T const& val ) const { return hash_value(val);
}
};
template <typename T> inline ::std::size_t hash_value(
css::uno::Reference<T> const& x )
{ // normalize to object root, because _only_ XInterface is defined // to be stable during object lifetime:
css::uno::Reference< css::uno::XInterface> const xRoot( x, css::uno::UNO_QUERY ); return slideshow::internal::hash<void *>()(xRoot.get());
}
}
namespace slideshow
{ namespace internal
{ // Value extraction from Any // =========================
/// extract unary double value from Any bool extractValue( double& o_rValue, const css::uno::Any& rSourceAny, const ShapeSharedPtr& rShape, const basegfx::B2DVector& rSlideBounds );
/// extract int from Any bool extractValue( sal_Int32& o_rValue, const css::uno::Any& rSourceAny, const ShapeSharedPtr& rShape, const basegfx::B2DVector& rSlideBounds );
/// extract enum/constant group value from Any bool extractValue( sal_Int16& o_rValue, const css::uno::Any& rSourceAny, const ShapeSharedPtr& rShape, const basegfx::B2DVector& rSlideBounds );
/// extract color value from Any bool extractValue( RGBColor& o_rValue, const css::uno::Any& rSourceAny, const ShapeSharedPtr& rShape, const basegfx::B2DVector& rSlideBounds );
/// extract color value from Any bool extractValue( HSLColor& o_rValue, const css::uno::Any& rSourceAny, const ShapeSharedPtr& rShape, const basegfx::B2DVector& rSlideBounds );
/// extract plain string from Any bool extractValue( OUString& o_rValue, const css::uno::Any& rSourceAny, const ShapeSharedPtr& rShape, const basegfx::B2DVector& rSlideBounds );
/// extract bool value from Any bool extractValue( bool& o_rValue, const css::uno::Any& rSourceAny, const ShapeSharedPtr& rShape, const basegfx::B2DVector& rSlideBounds );
/// extract double 2-tuple from Any bool extractValue( basegfx::B2DTuple& o_rPair, const css::uno::Any& rSourceAny, const ShapeSharedPtr& rShape, const basegfx::B2DVector& rSlideBounds );
/** Search a sequence of NamedValues for a given element.
/** Convert a plain UNO API 32 bit int to RGBColor
*/
RGBColor unoColor2RGBColor( sal_Int32 ); /** Convert an IntSRGBA to plain UNO API 32 bit int
*/
sal_Int32 RGBAColor2UnoColor( cppcanvas::IntSRGBA );
/** Fill a plain rectangle on the given canvas with the given color
*/ void fillRect( const cppcanvas::CanvasSharedPtr& rCanvas, const basegfx::B2DRectangle& rRect,
cppcanvas::IntSRGBA aFillColor );
/// Get the content of the BoundRect shape property
basegfx::B2DRectangle getAPIShapeBounds( const css::uno::Reference< css::drawing::XShape >& xShape );
// TODO(Q1): this could possibly be implemented with a somewhat // more lightweight template, by having the actual worker receive // only a function pointer, and a thin templated wrapper around // that which converts member functions into that.
/** Apply given functor to every animation node child.
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.