LibreOffice Module canvas (master)  1
Public Types | Public Member Functions | List of all members
canvas::BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > Class Template Reference

Helper template to handle XBitmapCanvas method forwarding to BitmapCanvasHelper. More...

#include <bitmapcanvasbase.hxx>

Inheritance diagram for canvas::BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >:
[legend]
Collaboration diagram for canvas::BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >:
[legend]

Public Types

typedef CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > BaseType
 
- Public Types inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
typedef Base BaseType
 
typedef Mutex MutexType
 
typedef UnambiguousBase UnambiguousBaseType
 

Public Member Functions

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, Mutex, UnambiguousBase >
 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
 

Additional Inherited Members

- Protected Member Functions inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
 ~CanvasBase ()
 
- Protected Attributes inherited from canvas::CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >
CanvasHelper maCanvasHelper
 
bool mbSurfaceDirty
 

Detailed Description

template<class Base, class CanvasHelper, class Mutex = ::osl::MutexGuard, class UnambiguousBase = css::uno::XInterface>
class canvas::BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >

Helper template to handle XBitmapCanvas method forwarding to BitmapCanvasHelper.

Use this helper to handle the XBitmapCanvas part of your implementation.

Template parameter:
Base Base class to use, most probably one of the WeakComponentImplHelperN templates with the appropriate interfaces. At least XBitmapCanvas should be among them (why else would you use this template, then?). Base class must have a Base( const Mutex& ) constructor (like the WeakComponentImplHelperN templates have).
Template parameter:
CanvasHelper Canvas helper implementation for the backend in question
Template parameter:
Mutex Lock strategy to use. Defaults to using the BaseMutex-provided lock. Every time one of the methods is entered, an object of type Mutex is created with m_aMutex as the sole parameter, and destroyed again when the method scope is left.
Template parameter:
UnambiguousBase Optional unambiguous base class for XInterface of Base. It's sometimes necessary to specify this parameter, e.g. if Base derives from multiple UNO interface (were each provides its own version of XInterface, making the conversion ambiguous)
See also
CanvasBase for further contractual requirements towards the CanvasHelper type, and some examples.

Definition at line 65 of file bitmapcanvasbase.hxx.

Member Typedef Documentation

template<class Base , class CanvasHelper , class Mutex = ::osl::MutexGuard, class UnambiguousBase = css::uno::XInterface>
typedef CanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase > canvas::BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::BaseType

Definition at line 69 of file bitmapcanvasbase.hxx.

Member Function Documentation

template<class Base , class CanvasHelper , class Mutex = ::osl::MutexGuard, class UnambiguousBase = css::uno::XInterface>
virtual css::uno::Reference< css::rendering::XBitmap > SAL_CALL canvas::BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::getScaledBitmap ( const css::geometry::RealSize2D &  newSize,
sal_Bool  beFast 
)
inlineoverridevirtual
template<class Base , class CanvasHelper , class Mutex = ::osl::MutexGuard, class UnambiguousBase = css::uno::XInterface>
virtual css::geometry::IntegerSize2D SAL_CALL canvas::BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::getSize ( )
inlineoverridevirtual
template<class Base , class CanvasHelper , class Mutex = ::osl::MutexGuard, class UnambiguousBase = css::uno::XInterface>
virtual sal_Bool SAL_CALL canvas::BitmapCanvasBase< Base, CanvasHelper, Mutex, UnambiguousBase >::hasAlpha ( )
inlineoverridevirtual

Definition at line 79 of file bitmapcanvasbase.hxx.


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