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

Product of this component's factory. More...

#include <dx_canvas.hxx>

Inheritance diagram for dxcanvas::BitmapCanvas:
Collaboration diagram for dxcanvas::BitmapCanvas:

Public Member Functions

 BitmapCanvas (const css::uno::Sequence< css::uno::Any > &aArguments, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
void initialize ()
virtual void disposeThis () override
 Dispose all internal references. More...
virtual OUString SAL_CALL getServiceName () override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
virtual OUString SAL_CALL getImplementationName () override
virtual sal_Bool SAL_CALL supportsService (const OUString &) override
virtual IBitmapSharedPtr getBitmap () const 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

css::uno::Sequence< css::uno::Any > maArguments
css::uno::Reference< css::uno::XComponentContext > mxComponentContext
IBitmapSharedPtr mpTarget

Detailed Description

Product of this component's factory.

The Canvas object combines the actual Window canvas with the XGraphicDevice interface. This is because there's a one-to-one relation between them, anyway, since each window can have exactly one canvas and one associated XGraphicDevice. And to avoid messing around with circular references, this is implemented as one single object.

Definition at line 137 of file dx_canvas.hxx.

Constructor & Destructor Documentation

◆ BitmapCanvas()

dxcanvas::BitmapCanvas::BitmapCanvas ( const css::uno::Sequence< css::uno::Any > &  aArguments,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext 

Definition at line 142 of file dx_canvas.cxx.

References aArguments, and mxComponentContext.

Member Function Documentation

◆ disposeThis()

void dxcanvas::BitmapCanvas::disposeThis ( )

Dispose all internal references.

Definition at line 202 of file dx_canvas.cxx.

References m_aMutex, mpTarget, and mxComponentContext.

◆ getBitmap()

IBitmapSharedPtr dxcanvas::BitmapCanvas::getBitmap ( ) const

Implements dxcanvas::BitmapProvider.

Definition at line 232 of file dx_canvas.cxx.

References mpTarget.

◆ getImplementationName()

OUString dxcanvas::BitmapCanvas::getImplementationName ( )

Definition at line 223 of file dx_canvas.cxx.

◆ getServiceName()

OUString SAL_CALL dxcanvas::BitmapCanvas::getServiceName ( )

Definition at line 213 of file dx_canvas.cxx.

◆ getSupportedServiceNames()

css::uno::Sequence< OUString > dxcanvas::BitmapCanvas::getSupportedServiceNames ( )

Definition at line 219 of file dx_canvas.cxx.

◆ initialize()

void dxcanvas::BitmapCanvas::initialize ( )

Definition at line 150 of file dx_canvas.cxx.

References aSeq, ENSURE_ARG_OR_THROW, maArguments, mpTarget, and SAL_INFO.

◆ supportsService()

sal_Bool dxcanvas::BitmapCanvas::supportsService ( const OUString &  sServiceName)

Definition at line 227 of file dx_canvas.cxx.

References sServiceName, and cppu::supportsService().

Member Data Documentation

◆ maArguments

css::uno::Sequence< css::uno::Any > dxcanvas::BitmapCanvas::maArguments

Definition at line 167 of file dx_canvas.hxx.

Referenced by initialize().

◆ mpTarget

IBitmapSharedPtr dxcanvas::BitmapCanvas::mpTarget

Definition at line 169 of file dx_canvas.hxx.

Referenced by disposeThis(), getBitmap(), and initialize().

◆ mxComponentContext

css::uno::Reference< css::uno::XComponentContext > dxcanvas::BitmapCanvas::mxComponentContext

Definition at line 168 of file dx_canvas.hxx.

Referenced by disposeThis().

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