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

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

#include <cairo_canvas.hxx>

Inheritance diagram for cairocanvas::Canvas:
[legend]
Collaboration diagram for cairocanvas::Canvas:
[legend]

Public Member Functions

 Canvas (const css::uno::Sequence< css::uno::Any > &aArguments, const css::uno::Reference< css::uno::XComponentContext > &rxContext)
 
void initialize ()
 
virtual ~Canvas () override
 For resource tracking. More...
 
virtual void disposeThis () override
 Dispose all internal references. More...
 
virtual OUString SAL_CALL getServiceName () override
 
virtual bool repaint (const ::cairo::SurfaceSharedPtr &pSurface, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) override
 
virtual ::cairo::SurfaceSharedPtr getSurface () override
 
virtual ::cairo::SurfaceSharedPtr createSurface (const ::basegfx::B2ISize &rSize, int aContent) override
 
virtual ::cairo::SurfaceSharedPtr createSurface (::Bitmap &rBitmap) override
 
virtual ::cairo::SurfaceSharedPtr changeSurface () override
 
virtual OutputDevicegetOutputDevice () 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 Base
 Base (uno_Environment *pEnv, cppu::Enterable *pEnterable)
 
void acquireWeak ()
 
void releaseWeak ()
 
void harden (uno_Environment **ppHardEnv)
 
void acquire ()
 
void release ()
 
void registerProxyInterface (void **ppProxy, uno_freeProxyFunc freeProxy, OUString const &oid, typelib_InterfaceTypeDescription *pTypeDescr)
 
void revokeInterface (void *pInterface)
 
void getObjectIdentifier (void *pInterface, OUString *pOid)
 
void getRegisteredInterface (void **, OUString const &oid, typelib_InterfaceTypeDescription *)
 
void getRegisteredInterfaces (void ***, sal_Int32 *pnLen, uno_memAlloc memAlloc)
 
void computeObjectIdentifier (void *pInterface, OUString *pOid)
 
void acquireInterface (void *pInterface)
 
void releaseInterface (void *pInterface)
 
virtual void v_enter () override
 
virtual void v_leave () override
 
virtual void v_callInto_v (uno_EnvCallee *pCallee, va_list *pParam) override
 
virtual void v_callOut_v (uno_EnvCallee *pCallee, va_list *pParam) override
 
virtual bool v_isValid (OUString *pReason) override
 
- Public Member Functions inherited from cppu::Enterable
virtual bool v_isValid (rtl::OUString *pReason)=0
 
virtual ~Enterable ()
 
 Enterable ()
 
void enter ()
 
void leave ()
 
void callInto_v (uno_EnvCallee *pCallee, va_list *pParam)
 
void callOut_v (uno_EnvCallee *pCallee, va_list *pParam)
 
void callInto (uno_EnvCallee *pCallee,...)
 
void callOut (uno_EnvCallee *pCallee,...)
 
int isValid (rtl::OUString *pReason)
 
- Public Member Functions inherited from cairocanvas::RepaintTarget
virtual ~RepaintTarget ()
 

Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from Base
virtual ~Base () override
 
- Protected Attributes inherited from Base
oslInterlockedCount m_nRef
 
uno_Environmentm_pEnv
 
std::unique_ptr< cppu::Enterablem_pEnterable
 
EnvFun_Pm_env_acquire
 
EnvFun_Pm_env_release
 
EnvFun_PP_Pm_env_harden
 
EnvFun_Pm_env_acquireWeak
 
EnvFun_Pm_env_releaseWeak
 
ExtEnv_registerProxyInterfacem_env_registerProxyInterface
 
ExtEnv_revokeInterfacem_env_revokeInterface
 
ExtEnv_getObjectIdentifierm_env_getObjectIdentifier
 
ExtEnv_getRegisteredInterfacem_env_getRegisteredInterface
 
ExtEnv_getRegisteredInterfacesm_env_getRegisteredInterfaces
 
ExtEnv_computeObjectIdentifierm_env_computeObjectIdentifier
 
ExtEnv_acquireInterfacem_env_acquireInterface
 
ExtEnv_releaseInterfacem_env_releaseInterface
 

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 104 of file cairo_canvas.hxx.

Constructor & Destructor Documentation

cairocanvas::Canvas::Canvas ( const css::uno::Sequence< css::uno::Any > &  aArguments,
const css::uno::Reference< css::uno::XComponentContext > &  rxContext 
)
cairocanvas::Canvas::~Canvas ( )
overridevirtual

For resource tracking.

Definition at line 108 of file cairo_canvas.cxx.

References SAL_INFO.

Member Function Documentation

SurfaceSharedPtr cairocanvas::Canvas::changeSurface ( )
override

Definition at line 157 of file cairo_canvas.cxx.

SurfaceSharedPtr cairocanvas::Canvas::createSurface ( const ::basegfx::B2ISize rSize,
int  aContent 
)
override

Definition at line 138 of file cairo_canvas.cxx.

SurfaceSharedPtr cairocanvas::Canvas::createSurface ( ::Bitmap rBitmap)
override

Definition at line 143 of file cairo_canvas.cxx.

References aData, Bitmap::GetSizePixel(), and Bitmap::GetSystemData().

void cairocanvas::Canvas::disposeThis ( )
overridevirtual

Dispose all internal references.

Definition at line 113 of file cairo_canvas.cxx.

References m_aMutex.

OutputDevice * cairocanvas::Canvas::getOutputDevice ( )
overridevirtual

Definition at line 163 of file cairo_canvas.cxx.

OUString SAL_CALL cairocanvas::Canvas::getServiceName ( )
overridevirtual

Definition at line 121 of file cairo_canvas.cxx.

References CANVAS_SERVICE_NAME.

SurfaceSharedPtr cairocanvas::Canvas::getSurface ( )
override

Definition at line 133 of file cairo_canvas.cxx.

void cairocanvas::Canvas::initialize ( )
virtual bool cairocanvas::Canvas::repaint ( const ::cairo::SurfaceSharedPtr pSurface,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState 
)
overridevirtual

Member Data Documentation

css::uno::Sequence< css::uno::Any > cairocanvas::Canvas::maArguments
private

Definition at line 142 of file cairo_canvas.hxx.

Referenced by initialize().


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