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

#include <canvasbitmap.hxx>

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

Public Member Functions

 CanvasBitmap (const ::Size &rSize, bool bAlphaBitmap, css::rendering::XGraphicDevice &rDevice, const OutDevProviderSharedPtr &rOutDevProvider)
 Must be called with locked Solar mutex. More...
 
 CanvasBitmap (const BitmapEx &rBitmap, css::rendering::XGraphicDevice &rDevice, const OutDevProviderSharedPtr &rOutDevProvider)
 Must be called with locked Solar mutex. 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 bool repaint (const GraphicObjectSharedPtr &rGrf, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState, const ::Point &rPt, const ::Size &rSz, const GraphicAttr &rAttr) const override
 
BitmapEx getBitmap () const
 Not threadsafe! Returned object is shared! More...
 
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 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 vclcanvas::RepaintTarget
virtual ~RepaintTarget ()
 

Private Attributes

css::uno::Reference< css::rendering::XGraphicDevice > mxDevice
 MUST hold here, too, since CanvasHelper only contains a raw pointer (without refcounting) More...
 

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

Definition at line 59 of file canvasbitmap.hxx.

Constructor & Destructor Documentation

vclcanvas::CanvasBitmap::CanvasBitmap ( const ::Size rSize,
bool  bAlphaBitmap,
css::rendering::XGraphicDevice &  rDevice,
const OutDevProviderSharedPtr rOutDevProvider 
)

Must be called with locked Solar mutex.

Parameters
rSizeSize in pixel of the bitmap to generate
bAlphaBitmapWhen true, bitmap will have an alpha channel
rDeviceReference device, with which bitmap should be compatible
vclcanvas::CanvasBitmap::CanvasBitmap ( const BitmapEx rBitmap,
css::rendering::XGraphicDevice &  rDevice,
const OutDevProviderSharedPtr rOutDevProvider 
)

Must be called with locked Solar mutex.

Member Function Documentation

BitmapEx vclcanvas::CanvasBitmap::getBitmap ( ) const

Not threadsafe! Returned object is shared!

Definition at line 92 of file canvasbitmap.cxx.

Referenced by vclcanvas::tools::bitmapExFromXBitmap(), and getFastPropertyValue().

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

Definition at line 115 of file canvasbitmap.cxx.

References getBitmap().

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

Definition at line 77 of file canvasbitmap.cxx.

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

Definition at line 87 of file canvasbitmap.cxx.

virtual bool vclcanvas::CanvasBitmap::repaint ( const GraphicObjectSharedPtr rGrf,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState,
const ::Point rPt,
const ::Size rSz,
const GraphicAttr rAttr 
) const
overridevirtual
virtual void SAL_CALL vclcanvas::CanvasBitmap::setFastPropertyValue ( sal_Int32  ,
const css::uno::Any &   
)
inlineoverridevirtual

Definition at line 111 of file canvasbitmap.hxx.

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

Definition at line 82 of file canvasbitmap.cxx.

References cppu::supportsService().

Member Data Documentation

css::uno::Reference<css::rendering::XGraphicDevice> vclcanvas::CanvasBitmap::mxDevice
private

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

Definition at line 117 of file canvasbitmap.hxx.


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