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,
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;
Target interface for XCachedPrimitive implementations.
SpriteCanvasRef mpSpriteCanvas
MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting) ...
CanvasCustomSprite(const css::geometry::RealSize2D &rSpriteSize, const SpriteCanvasRef &rRefDevice)
Create a custom sprite.
Target interface for XCachedPrimitive implementations.
::cairo::SurfaceSharedPtr mpBufferSurface
#define DECLARE_UNO3_XCOMPONENT_AGG_DEFAULTS(classname, baseclass, implhelper)
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
Base class, initializing its own baseclass with m_aMutex.
::cppu::WeakComponentImplHelper< css::rendering::XCustomSprite, css::rendering::XBitmapCanvas, css::rendering::XIntegerBitmap, css::lang::XServiceInfo > CanvasCustomSpriteBase_Base
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
Helper class for canvas sprites.
::basegfx::B2ISize maSize
std::shared_ptr< Surface > SurfaceSharedPtr
virtual OutputDevice * getOutputDevice() override
Specialization of canvas::Sprite interface, to also provide redraw methods.
::canvas::CanvasCustomSpriteBase< CanvasCustomSpriteSpriteBase_Base, SpriteHelper, CanvasHelper,::osl::MutexGuard,::cppu::OWeakObject > CanvasCustomSpriteBaseT
virtual OUString SAL_CALL getImplementationName() override
virtual void disposeThis() override
Object is being disposed.
virtual bool repaint(const ::cairo::SurfaceSharedPtr &pSurface, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
virtual ::cairo::SurfaceSharedPtr changeSurface() override
virtual ::cairo::SurfaceSharedPtr createSurface(const ::basegfx::B2ISize &rSize, int aContent) override
virtual void redraw(const ::cairo::CairoSharedPtr &pCairo, bool bBufferedUpdate) const override
virtual ::cairo::SurfaceSharedPtr getSurface() override