LibreOffice Module canvas (master) 1
Public Member Functions | Private Attributes | List of all members
dxcanvas::CanvasCustomSprite Class Reference

#include <dx_canvascustomsprite.hxx>

Inheritance diagram for dxcanvas::CanvasCustomSprite:
[legend]
Collaboration diagram for dxcanvas::CanvasCustomSprite:
[legend]

Public Member Functions

 CanvasCustomSprite (const css::geometry::RealSize2D &rSpriteSize, const SpriteCanvasRef &rRefDevice, const IDXRenderModuleSharedPtr &rRenderModule, const std::shared_ptr< canvas::ISurfaceProxyManager > &rSurfaceProxy, bool bShowSpriteBounds)
 Create a custom sprite. More...
 
virtual void disposeThis () override
 Object is being disposed. More...
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &ServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 
virtual void redraw () const override
 
- Public Member Functions inherited from canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >
 CanvasCustomSpriteBase ()
 
virtual void disposeThis () override
 Object is being disposed. More...
 
virtual void SAL_CALL clear () override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawBitmap (const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual void SAL_CALL setAlpha (double alpha) 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 transform (const css::geometry::AffineMatrix2D &aTransformation) override
 
virtual void SAL_CALL clip (const css::uno::Reference< css::rendering::XPolyPolygon2D > &aClip) override
 
virtual void SAL_CALL setPriority (double nPriority) override
 
virtual void SAL_CALL show () override
 
virtual void SAL_CALL hide () override
 
virtual css::uno::Reference< css::rendering::XCanvas > SAL_CALL getContentCanvas () override
 
virtual bool isAreaUpdateOpaque (const ::basegfx::B2DRange &rUpdateArea) const override
 
virtual bool isContentChanged () const override
 
virtual ::basegfx::B2DPoint getPosPixel () const override
 
virtual ::basegfx::B2DVector getSizePixel () const override
 
virtual ::basegfx::B2DRange getUpdateArea () const override
 
virtual double getPriority () const override
 
- Public Member Functions inherited from canvas::IntegerBitmapBase< BitmapCanvasBase2< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface > >
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getData (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
virtual void SAL_CALL setData (const css::uno::Sequence< sal_Int8 > &, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerRectangle2D &rect) override
 
virtual void SAL_CALL setPixel (const css::uno::Sequence< sal_Int8 > &, const css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getPixel (css::rendering::IntegerBitmapLayout &bitmapLayout, const css::geometry::IntegerPoint2D &pos) override
 
virtual css::rendering::IntegerBitmapLayout SAL_CALL getMemoryLayout () override
 
- Public Member Functions inherited from canvas::BitmapCanvasBase2< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface >
virtual void SAL_CALL copyRect (const css::uno::Reference< css::rendering::XBitmapCanvas > &sourceCanvas, const css::geometry::RealRectangle2D &sourceRect, const css::rendering::ViewState &sourceViewState, const css::rendering::RenderState &sourceRenderState, const css::geometry::RealRectangle2D &destRect, const css::rendering::ViewState &destViewState, const css::rendering::RenderState &destRenderState) override
 
- Public Member Functions inherited from canvas::BitmapCanvasBase< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface >
virtual css::geometry::IntegerSize2D SAL_CALL getSize () override
 
virtual sal_Bool SAL_CALL hasAlpha () override
 
virtual css::uno::Reference< css::rendering::XBitmap > SAL_CALL getScaledBitmap (const css::geometry::RealSize2D &newSize, sal_Bool beFast) override
 
- Public Member Functions inherited from canvas::CanvasBase< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface >
 CanvasBase ()
 Create CanvasBase. More...
 
virtual void disposeThis () override
 
virtual void SAL_CALL clear () override
 
virtual void SAL_CALL drawPoint (const css::geometry::RealPoint2D &aPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual void SAL_CALL drawLine (const css::geometry::RealPoint2D &aStartPoint, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual void SAL_CALL drawBezier (const css::geometry::RealBezierSegment2D &aBezierSegment, const css::geometry::RealPoint2D &aEndPoint, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL strokePolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL strokeTexturedPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::rendering::StrokeAttributes &strokeAttributes) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL strokeTextureMappedPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::uno::Reference< css::geometry::XMapping2D > &xMapping, const css::rendering::StrokeAttributes &strokeAttributes) override
 
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL queryStrokeShapes (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::rendering::StrokeAttributes &strokeAttributes) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL fillPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL fillTexturedPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL fillTextureMappedPolyPolygon (const css::uno::Reference< css::rendering::XPolyPolygon2D > &xPolyPolygon, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const css::uno::Sequence< css::rendering::Texture > &textures, const css::uno::Reference< css::geometry::XMapping2D > &xMapping) override
 
virtual css::uno::Reference< css::rendering::XCanvasFont > SAL_CALL createFont (const css::rendering::FontRequest &fontRequest, const css::uno::Sequence< css::beans::PropertyValue > &extraFontProperties, const css::geometry::Matrix2D &fontMatrix) override
 
virtual css::uno::Sequence< css::rendering::FontInfo > SAL_CALL queryAvailableFonts (const css::rendering::FontInfo &aFilter, const css::uno::Sequence< css::beans::PropertyValue > &aFontProperties) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawText (const css::rendering::StringContext &text, const css::uno::Reference< css::rendering::XCanvasFont > &xFont, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, sal_Int8 textDirection) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawTextLayout (const css::uno::Reference< css::rendering::XTextLayout > &laidOutText, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawBitmap (const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XCachedPrimitive > SAL_CALL drawBitmapModulated (const css::uno::Reference< css::rendering::XBitmap > &xBitmap, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual css::uno::Reference< css::rendering::XGraphicDevice > SAL_CALL getDevice () override
 

Private Attributes

SpriteCanvasRef mpSpriteCanvas
 MUST hold here, too, since BitmapCanvasHelper only contains a raw pointer (without refcounting) More...
 
DXSurfaceBitmapSharedPtr mpSurface
 

Additional Inherited Members

- Public Types inherited from canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >
typedef IntegerBitmapBase< BitmapCanvasBase2< Base, CanvasHelper, Mutex, UnambiguousBase > > BaseType
 
- Public Types inherited from canvas::BitmapCanvasBase< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface >
typedef CanvasBase< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface > BaseType
 
- Public Types inherited from canvas::CanvasBase< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface >
typedef Base BaseType
 
typedef ::osl::MutexGuard MutexType
 
typedef css::uno::XInterface UnambiguousBaseType
 
- Protected Member Functions inherited from canvas::CanvasBase< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface >
 ~CanvasBase ()
 
- Protected Attributes inherited from canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >
SpriteHelper maSpriteHelper
 
- Protected Attributes inherited from canvas::CanvasBase< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface >
CanvasHelper maCanvasHelper
 
bool mbSurfaceDirty
 

Detailed Description

Definition at line 81 of file dx_canvascustomsprite.hxx.

Constructor & Destructor Documentation

◆ CanvasCustomSprite()

dxcanvas::CanvasCustomSprite::CanvasCustomSprite ( const css::geometry::RealSize2D &  rSpriteSize,
const SpriteCanvasRef rRefDevice,
const IDXRenderModuleSharedPtr rRenderModule,
const std::shared_ptr< canvas::ISurfaceProxyManager > &  rSurfaceProxy,
bool  bShowSpriteBounds 
)

Create a custom sprite.

Parameters
rSpriteSizeSize of the sprite in pixel
rRefDeviceAssociated output device
rSpriteCanvasTarget canvas
rDeviceTarget DX device

Definition at line 40 of file dx_canvascustomsprite.cxx.

References ENSURE_OR_THROW, canvas::CanvasBase< Base, CanvasHelper, ::osl::MutexGuard, css::uno::XInterface >::maCanvasHelper, canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >::maSpriteHelper, mpSpriteCanvas, and mpSurface.

Member Function Documentation

◆ disposeThis()

void dxcanvas::CanvasCustomSprite::disposeThis ( )
overridevirtual

Object is being disposed.

Called from the cppu helper base, to notify disposal of this object. Already releases all internal references.

Derive: \n when overriding this method in derived classes,
always call the base class' method!

Reimplemented from canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >.

Definition at line 72 of file dx_canvascustomsprite.cxx.

References canvas::CanvasCustomSpriteBase< Base, SpriteHelper, CanvasHelper, Mutex, UnambiguousBase >::disposeThis(), m_aMutex, mpSpriteCanvas, and mpSurface.

◆ getImplementationName()

OUString SAL_CALL dxcanvas::CanvasCustomSprite::getImplementationName ( )
overridevirtual

Definition at line 83 of file dx_canvascustomsprite.cxx.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL dxcanvas::CanvasCustomSprite::getSupportedServiceNames ( )
overridevirtual

Definition at line 93 of file dx_canvascustomsprite.cxx.

◆ redraw()

void dxcanvas::CanvasCustomSprite::redraw ( ) const
overridevirtual

◆ supportsService()

sal_Bool SAL_CALL dxcanvas::CanvasCustomSprite::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 88 of file dx_canvascustomsprite.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ mpSpriteCanvas

SpriteCanvasRef dxcanvas::CanvasCustomSprite::mpSpriteCanvas
private

MUST hold here, too, since BitmapCanvasHelper only contains a raw pointer (without refcounting)

Definition at line 125 of file dx_canvascustomsprite.hxx.

Referenced by disposeThis().

◆ mpSurface

DXSurfaceBitmapSharedPtr dxcanvas::CanvasCustomSprite::mpSurface
private

Definition at line 126 of file dx_canvascustomsprite.hxx.

Referenced by CanvasCustomSprite(), and disposeThis().


The documentation for this class was generated from the following files: