14#include <com/sun/star/rendering/XCustomSprite.hpp>
15#include <com/sun/star/rendering/XPolyPolygon2D.hpp>
27 typedef ::cppu::WeakComponentImplHelper< css::rendering::XCustomSprite,
61 virtual void SAL_CALL
setAlpha(
double alpha )
override;
62 virtual void SAL_CALL
move(
const css::geometry::RealPoint2D& aNewPos,
const css::rendering::ViewState& viewState,
const css::rendering::RenderState& renderState )
override;
63 virtual void SAL_CALL
transform(
const css::geometry::AffineMatrix2D& aTransformation )
override;
64 virtual void SAL_CALL
clip(
const css::uno::Reference< css::rendering::XPolyPolygon2D >& aClip )
override;
65 virtual void SAL_CALL
setPriority(
double nPriority )
override;
66 virtual void SAL_CALL
show()
override;
67 virtual void SAL_CALL
hide()
override;
70 virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL
getContentCanvas()
override;
82 const css::geometry::RealSize2D
maSize;
84 css::uno::Reference< css::rendering::XPolyPolygon2D >
mxClip;
Helper template to handle XCanvas method forwarding to CanvasHelper.
virtual void SAL_CALL setPriority(double nPriority) override
SpriteCanvasRef mpSpriteCanvas
MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting)
css::geometry::AffineMatrix2D maTransformation
virtual void SAL_CALL transform(const css::geometry::AffineMatrix2D &aTransformation) override
CanvasCustomSprite(const css::geometry::RealSize2D &rSpriteSize, const SpriteCanvasRef &rRefDevice, SpriteDeviceHelper &rDeviceHelper)
Create a custom sprite.
virtual void SAL_CALL show() override
virtual void disposeThis() override
virtual void SAL_CALL move(const css::geometry::RealPoint2D &aNewPos, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
virtual void SAL_CALL clip(const css::uno::Reference< css::rendering::XPolyPolygon2D > &aClip) override
virtual void SAL_CALL hide() override
double getPriority() const
virtual void SAL_CALL setAlpha(double alpha) override
::basegfx::B2DPoint maPosition
const css::geometry::RealSize2D maSize
virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL getContentCanvas() override
css::uno::Reference< css::rendering::XPolyPolygon2D > mxClip
bool renderSprite() const
Render sprite content at sprite position.
Helper class for basic canvas functionality.
::cppu::WeakComponentImplHelper< css::rendering::XCustomSprite, css::rendering::XCanvas > CanvasCustomSpriteBase_Base
::canvas::CanvasBase< ::canvas::BaseMutexHelper< CanvasCustomSpriteBase_Base >, CanvasHelper, ::osl::MutexGuard, ::cppu::OWeakObject > CanvasCustomSpriteBaseT