25#include <com/sun/star/lang/XServiceInfo.hpp>
26#include <com/sun/star/rendering/XBitmapCanvas.hpp>
27#include <com/sun/star/rendering/XCustomSprite.hpp>
28#include <com/sun/star/rendering/XIntegerBitmap.hpp>
46 typedef ::cppu::WeakComponentImplHelper< css::rendering::XCustomSprite,
47 css::rendering::XBitmapCanvas,
48 css::rendering::XIntegerBitmap,
69 public SurfaceProvider
117 virtual void redraw( const ::cairo::CairoSharedPtr& pCairo,
118 bool bBufferedUpdate )
const override;
119 virtual void redraw( const ::cairo::CairoSharedPtr& pCairo,
120 const ::basegfx::B2DPoint& rOrigOutputPos,
121 bool bBufferedUpdate )
const override;
124 virtual bool repaint( const ::cairo::SurfaceSharedPtr& pSurface,
125 const css::rendering::ViewState& viewState,
126 const css::rendering::RenderState& renderState )
override;
129 virtual ::cairo::SurfaceSharedPtr
getSurface()
override;
130 virtual ::cairo::SurfaceSharedPtr
createSurface( const ::basegfx::B2ISize& rSize,
int aContent )
override;
virtual ::cairo::SurfaceSharedPtr changeSurface() override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual bool repaint(const ::cairo::SurfaceSharedPtr &pSurface, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
virtual OutputDevice * getOutputDevice() override
::basegfx::B2ISize maSize
virtual ::cairo::SurfaceSharedPtr getSurface() override
virtual void disposeThis() override
Object is being disposed.
SpriteCanvasRef mpSpriteCanvas
MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting)
virtual void redraw(const ::cairo::CairoSharedPtr &pCairo, const ::basegfx::B2DPoint &rOrigOutputPos, bool bBufferedUpdate) const override
CanvasCustomSprite(const css::geometry::RealSize2D &rSpriteSize, const SpriteCanvasRef &rRefDevice)
Create a custom sprite.
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void redraw(const ::cairo::CairoSharedPtr &pCairo, bool bBufferedUpdate) const override
::cairo::SurfaceSharedPtr mpBufferSurface
virtual OUString SAL_CALL getImplementationName() override
virtual ::cairo::SurfaceSharedPtr createSurface(const ::basegfx::B2ISize &rSize, int aContent) override
Helper class for canvas sprites.
Specialization of canvas::Sprite interface, to also provide redraw methods.
Base class, initializing its own baseclass with m_aMutex.
Helper template to handle XCustomSprite method forwarding to CanvasCustomSpriteHelper.
std::shared_ptr< Surface > SurfaceSharedPtr
::canvas::CanvasCustomSpriteBase< CanvasCustomSpriteSpriteBase_Base, SpriteHelper, CanvasHelper, ::osl::MutexGuard, ::cppu::OWeakObject > CanvasCustomSpriteBaseT
::cppu::WeakComponentImplHelper< css::rendering::XCustomSprite, css::rendering::XBitmapCanvas, css::rendering::XIntegerBitmap, css::lang::XServiceInfo > CanvasCustomSpriteBase_Base
#define DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS(classname, baseclass, implhelper)