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

#include <cairo_canvasfont.hxx>

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

Public Types

typedef rtl::Reference< CanvasFontReference
 

Public Member Functions

 CanvasFont (const CanvasFont &)=delete
 make noncopyable More...
 
const CanvasFontoperator= (const CanvasFont &)=delete
 
 CanvasFont (const css::rendering::FontRequest &fontRequest, const css::uno::Sequence< css::beans::PropertyValue > &extraFontProperties, const css::geometry::Matrix2D &rFontMatrix, SurfaceProviderRef rDevice)
 
virtual void disposing (std::unique_lock< std::mutex > &rGuard) override
 Dispose all internal references. More...
 
virtual css::uno::Reference< css::rendering::XTextLayout > SAL_CALL createTextLayout (const css::rendering::StringContext &aText, sal_Int8 nDirection, sal_Int64 nRandomSeed) override
 
virtual css::rendering::FontRequest SAL_CALL getFontRequest () override
 
virtual css::rendering::FontMetrics SAL_CALL getFontMetrics () override
 
virtual css::uno::Sequence< double > SAL_CALL getAvailableSizes () override
 
virtual css::uno::Sequence< css::beans::PropertyValue > SAL_CALL getExtraFontProperties () override
 
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
 
vcl::Font const & getVCLFont () const
 
sal_uInt32 getEmphasisMark () const
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelper< typename... Ifc >
virtual void SAL_CALL acquire () noexcept override
 
virtual void SAL_CALL release () noexcept override
 
virtual void SAL_CALL dispose () noexcept final override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) final override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual css::uno::Sequence< css::uno::Type > SAL_CALL getTypes () override
 
virtual css::uno::Sequence< sal_Int8 > SAL_CALL getImplementationId () override
 
- Public Member Functions inherited from comphelper::WeakComponentImplHelperBase
virtual ~WeakComponentImplHelperBase () override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual void SAL_CALL removeEventListener (css::uno::Reference< css::lang::XEventListener > const &rxListener) override
 
virtual css::uno::Any SAL_CALL queryInterface (css::uno::Type const &rType) override
 
virtual void disposing (std::unique_lock< std::mutex > &)
 
- Public Member Functions inherited from comphelper::UnoImplBase
virtual ~UnoImplBase ()
 

Private Attributes

::canvas::vcltools::VCLObject< vcl::FontmaFont
 
css::rendering::FontRequest maFontRequest
 
SurfaceProviderRef mpRefDevice
 
sal_uInt32 mnEmphasisMark
 

Additional Inherited Members

- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 
- Protected Attributes inherited from comphelper::WeakComponentImplHelperBase
comphelper::OInterfaceContainerHelper4< css::lang::XEventListener > maEventListeners
 
- Protected Attributes inherited from comphelper::UnoImplBase
std::mutex m_aMutex
 
bool m_bDisposed
 

Detailed Description

Definition at line 43 of file cairo_canvasfont.hxx.

Member Typedef Documentation

◆ Reference

Definition at line 46 of file cairo_canvasfont.hxx.

Constructor & Destructor Documentation

◆ CanvasFont() [1/2]

cairocanvas::CanvasFont::CanvasFont ( const CanvasFont )
delete

make noncopyable

◆ CanvasFont() [2/2]

cairocanvas::CanvasFont::CanvasFont ( const css::rendering::FontRequest &  fontRequest,
const css::uno::Sequence< css::beans::PropertyValue > &  extraFontProperties,
const css::geometry::Matrix2D &  rFontMatrix,
SurfaceProviderRef  rDevice 
)

Member Function Documentation

◆ createTextLayout()

virtual css::uno::Reference< css::rendering::XTextLayout > SAL_CALL cairocanvas::CanvasFont::createTextLayout ( const css::rendering::StringContext &  aText,
sal_Int8  nDirection,
sal_Int64  nRandomSeed 
)
overridevirtual

◆ disposing()

void cairocanvas::CanvasFont::disposing ( std::unique_lock< std::mutex > &  rGuard)
overridevirtual

Dispose all internal references.

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 93 of file cairo_canvasfont.cxx.

◆ getAvailableSizes()

uno::Sequence< double > SAL_CALL cairocanvas::CanvasFont::getAvailableSizes ( )
overridevirtual

Definition at line 130 of file cairo_canvasfont.cxx.

◆ getEmphasisMark()

sal_uInt32 cairocanvas::CanvasFont::getEmphasisMark ( ) const
inline

Definition at line 73 of file cairo_canvasfont.hxx.

References mnEmphasisMark.

Referenced by cairocanvas::setupTextOutput().

◆ getExtraFontProperties()

uno::Sequence< beans::PropertyValue > SAL_CALL cairocanvas::CanvasFont::getExtraFontProperties ( )
overridevirtual

Definition at line 136 of file cairo_canvasfont.cxx.

◆ getFontMetrics()

rendering::FontMetrics SAL_CALL cairocanvas::CanvasFont::getFontMetrics ( )
overridevirtual

Definition at line 124 of file cairo_canvasfont.cxx.

◆ getFontRequest()

rendering::FontRequest SAL_CALL cairocanvas::CanvasFont::getFontRequest ( )
overridevirtual

Definition at line 117 of file cairo_canvasfont.cxx.

◆ getImplementationName()

OUString SAL_CALL cairocanvas::CanvasFont::getImplementationName ( )
overridevirtual

Definition at line 142 of file cairo_canvasfont.cxx.

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL cairocanvas::CanvasFont::getSupportedServiceNames ( )
overridevirtual

Definition at line 152 of file cairo_canvasfont.cxx.

◆ getVCLFont()

vcl::Font const & cairocanvas::CanvasFont::getVCLFont ( ) const

Definition at line 157 of file cairo_canvasfont.cxx.

Referenced by cairocanvas::setupTextOutput().

◆ operator=()

const CanvasFont & cairocanvas::CanvasFont::operator= ( const CanvasFont )
delete

◆ supportsService()

sal_Bool SAL_CALL cairocanvas::CanvasFont::supportsService ( const OUString &  ServiceName)
overridevirtual

Definition at line 147 of file cairo_canvasfont.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ maFont

::canvas::vcltools::VCLObject<vcl::Font> cairocanvas::CanvasFont::maFont
private

Definition at line 76 of file cairo_canvasfont.hxx.

◆ maFontRequest

css::rendering::FontRequest cairocanvas::CanvasFont::maFontRequest
private

Definition at line 77 of file cairo_canvasfont.hxx.

◆ mnEmphasisMark

sal_uInt32 cairocanvas::CanvasFont::mnEmphasisMark
private

Definition at line 79 of file cairo_canvasfont.hxx.

Referenced by getEmphasisMark().

◆ mpRefDevice

SurfaceProviderRef cairocanvas::CanvasFont::mpRefDevice
private

Definition at line 78 of file cairo_canvasfont.hxx.


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