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

#include <dx_canvasbitmap.hxx>

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

Public Member Functions

 CanvasBitmap (const IBitmapSharedPtr &rSurface, const DeviceRef &rDevice)
 Create a canvas bitmap for the given surface. More...
 
virtual void disposeThis () override
 Dispose all internal references. 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 IBitmapSharedPtr getBitmap () const override
 
virtual css::uno::Any SAL_CALL getFastPropertyValue (sal_Int32 nHandle) override
 
virtual void SAL_CALL setFastPropertyValue (sal_Int32, const css::uno::Any &) override
 
- Public Member Functions inherited from canvas::IntegerBitmapBase< Base >
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 dxcanvas::BitmapProvider
virtual ~BitmapProvider ()
 
virtual IBitmapSharedPtr getBitmap () const =0
 

Private Attributes

DeviceRef mpDevice
 MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting) More...
 
IBitmapSharedPtr mpBitmap
 

Detailed Description

Definition at line 54 of file dx_canvasbitmap.hxx.

Constructor & Destructor Documentation

◆ CanvasBitmap()

dxcanvas::CanvasBitmap::CanvasBitmap ( const IBitmapSharedPtr rSurface,
const DeviceRef rDevice 
)

Create a canvas bitmap for the given surface.

Parameters
rSurfaceSurface to create API object for.
rDeviceReference device, with which bitmap should be compatible

Definition at line 38 of file dx_canvasbitmap.cxx.

References ENSURE_OR_THROW, mpBitmap, mpBitmap, and mpDevice.

Member Function Documentation

◆ disposeThis()

void dxcanvas::CanvasBitmap::disposeThis ( )
overridevirtual

Dispose all internal references.

Definition at line 50 of file dx_canvasbitmap.cxx.

References mpBitmap, and mpDevice.

◆ getBitmap()

virtual IBitmapSharedPtr dxcanvas::CanvasBitmap::getBitmap ( ) const
inlineoverridevirtual

Implements dxcanvas::BitmapProvider.

Definition at line 77 of file dx_canvasbitmap.hxx.

References mpBitmap.

◆ getFastPropertyValue()

uno::Any SAL_CALL dxcanvas::CanvasBitmap::getFastPropertyValue ( sal_Int32  nHandle)
overridevirtual

◆ getImplementationName()

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

Definition at line 239 of file dx_canvasbitmap.cxx.

◆ getSupportedServiceNames()

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

Definition at line 249 of file dx_canvasbitmap.cxx.

◆ setFastPropertyValue()

virtual void SAL_CALL dxcanvas::CanvasBitmap::setFastPropertyValue ( sal_Int32  ,
const css::uno::Any &   
)
inlineoverridevirtual

Definition at line 80 of file dx_canvasbitmap.hxx.

◆ supportsService()

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

Definition at line 244 of file dx_canvasbitmap.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ mpBitmap

IBitmapSharedPtr dxcanvas::CanvasBitmap::mpBitmap
private

Definition at line 87 of file dx_canvasbitmap.hxx.

Referenced by CanvasBitmap(), disposeThis(), getBitmap(), and getFastPropertyValue().

◆ mpDevice

DeviceRef dxcanvas::CanvasBitmap::mpDevice
private

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

Definition at line 86 of file dx_canvasbitmap.hxx.

Referenced by CanvasBitmap(), and disposeThis().


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