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

#include <cairo_textlayout.hxx>

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

Public Member Functions

 TextLayout (const TextLayout &)=delete
 make noncopyable More...
 
const TextLayoutoperator= (const TextLayout &)=delete
 
 TextLayout (css::rendering::StringContext aText, sal_Int8 nDirection, sal_Int64 nRandomSeed, CanvasFont::Reference rFont, SurfaceProviderRef rRefDevice)
 
virtual void disposing (std::unique_lock< std::mutex > &rGuard) override
 Dispose all internal references. More...
 
virtual css::uno::Sequence< css::uno::Reference< css::rendering::XPolyPolygon2D > > SAL_CALL queryTextShapes () override
 
virtual css::uno::Sequence< css::geometry::RealRectangle2D > SAL_CALL queryInkMeasures () override
 
virtual css::uno::Sequence< css::geometry::RealRectangle2D > SAL_CALL queryMeasures () override
 
virtual css::uno::Sequence< double > SAL_CALL queryLogicalAdvancements () override
 
virtual void SAL_CALL applyLogicalAdvancements (const css::uno::Sequence< double > &aAdvancements) override
 
virtual css::uno::Sequence< sal_Bool > SAL_CALL queryKashidaPositions () override
 
virtual void SAL_CALL applyKashidaPositions (const css::uno::Sequence< sal_Bool > &aPositions) override
 
virtual css::geometry::RealRectangle2D SAL_CALL queryTextBounds () override
 
virtual double SAL_CALL justify (double nSize) override
 
virtual double SAL_CALL combinedJustify (const css::uno::Sequence< css::uno::Reference< css::rendering::XTextLayout > > &aNextLayouts, double nSize) override
 
virtual css::rendering::TextHit SAL_CALL getTextHit (const css::geometry::RealPoint2D &aHitPoint) override
 
virtual css::rendering::Caret SAL_CALL getCaret (sal_Int32 nInsertionIndex, sal_Bool bExcludeLigatures) override
 
virtual sal_Int32 SAL_CALL getNextInsertionIndex (sal_Int32 nStartIndex, sal_Int32 nCaretAdvancement, sal_Bool bExcludeLigatures) override
 
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL queryVisualHighlighting (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual css::uno::Reference< css::rendering::XPolyPolygon2D > SAL_CALL queryLogicalHighlighting (sal_Int32 nStartIndex, sal_Int32 nEndIndex) override
 
virtual double SAL_CALL getBaselineOffset () override
 
virtual sal_Int8 SAL_CALL getMainTextDirection () override
 
virtual css::uno::Reference< css::rendering::XCanvasFont > SAL_CALL getFont () override
 
virtual css::rendering::StringContext SAL_CALL getText () 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
 
void draw (OutputDevice &rOutDev, const Point &rOutpos, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) const
 
KernArray setupTextOffsets (const css::uno::Sequence< double > &inputOffsets, const css::rendering::ViewState &viewState, const css::rendering::RenderState &renderState) 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 ()
 

Protected Member Functions

virtual ~TextLayout () override
 
- Protected Member Functions inherited from comphelper::WeakComponentImplHelperBase
void throwIfDisposed (std::unique_lock< std::mutex > &)
 

Private Attributes

css::rendering::StringContext maText
 
css::uno::Sequence< double > maLogicalAdvancements
 
css::uno::Sequence< sal_BoolmaKashidaPositions
 
CanvasFont::Reference mpFont
 
SurfaceProviderRef mpRefDevice
 
sal_Int8 mnTextDirection
 

Additional Inherited Members

- 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 41 of file cairo_textlayout.hxx.

Constructor & Destructor Documentation

◆ TextLayout() [1/2]

cairocanvas::TextLayout::TextLayout ( const TextLayout )
delete

make noncopyable

◆ TextLayout() [2/2]

cairocanvas::TextLayout::TextLayout ( css::rendering::StringContext  aText,
sal_Int8  nDirection,
sal_Int64  nRandomSeed,
CanvasFont::Reference  rFont,
SurfaceProviderRef  rRefDevice 
)

◆ ~TextLayout()

cairocanvas::TextLayout::~TextLayout ( )
overrideprotectedvirtual

Definition at line 85 of file cairo_textlayout.cxx.

Member Function Documentation

◆ applyKashidaPositions()

virtual void SAL_CALL cairocanvas::TextLayout::applyKashidaPositions ( const css::uno::Sequence< sal_Bool > &  aPositions)
overridevirtual

◆ applyLogicalAdvancements()

virtual void SAL_CALL cairocanvas::TextLayout::applyLogicalAdvancements ( const css::uno::Sequence< double > &  aAdvancements)
overridevirtual

◆ combinedJustify()

virtual double SAL_CALL cairocanvas::TextLayout::combinedJustify ( const css::uno::Sequence< css::uno::Reference< css::rendering::XTextLayout > > &  aNextLayouts,
double  nSize 
)
overridevirtual

◆ disposing()

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

Dispose all internal references.

Reimplemented from comphelper::WeakComponentImplHelperBase.

Definition at line 89 of file cairo_textlayout.cxx.

References mpFont.

◆ draw()

void cairocanvas::TextLayout::draw ( OutputDevice rOutDev,
const Point rOutpos,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState 
) const

◆ getBaselineOffset()

double SAL_CALL cairocanvas::TextLayout::getBaselineOffset ( )
overridevirtual

Definition at line 239 of file cairo_textlayout.cxx.

◆ getCaret()

rendering::Caret SAL_CALL cairocanvas::TextLayout::getCaret ( sal_Int32  nInsertionIndex,
sal_Bool  bExcludeLigatures 
)
overridevirtual

Definition at line 210 of file cairo_textlayout.cxx.

◆ getFont()

uno::Reference< rendering::XCanvasFont > SAL_CALL cairocanvas::TextLayout::getFont ( )
overridevirtual

Definition at line 252 of file cairo_textlayout.cxx.

References m_aMutex, and mpFont.

◆ getImplementationName()

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

Definition at line 351 of file cairo_textlayout.cxx.

◆ getMainTextDirection()

sal_Int8 SAL_CALL cairocanvas::TextLayout::getMainTextDirection ( )
overridevirtual

Definition at line 245 of file cairo_textlayout.cxx.

References m_aMutex.

◆ getNextInsertionIndex()

sal_Int32 SAL_CALL cairocanvas::TextLayout::getNextInsertionIndex ( sal_Int32  nStartIndex,
sal_Int32  nCaretAdvancement,
sal_Bool  bExcludeLigatures 
)
overridevirtual

Definition at line 217 of file cairo_textlayout.cxx.

◆ getSupportedServiceNames()

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

Definition at line 361 of file cairo_textlayout.cxx.

◆ getText()

rendering::StringContext SAL_CALL cairocanvas::TextLayout::getText ( )
overridevirtual

Definition at line 259 of file cairo_textlayout.cxx.

References m_aMutex, and maText.

◆ getTextHit()

virtual css::rendering::TextHit SAL_CALL cairocanvas::TextLayout::getTextHit ( const css::geometry::RealPoint2D &  aHitPoint)
overridevirtual

◆ justify()

double SAL_CALL cairocanvas::TextLayout::justify ( double  nSize)
overridevirtual

Definition at line 191 of file cairo_textlayout.cxx.

◆ operator=()

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

◆ queryInkMeasures()

uno::Sequence< geometry::RealRectangle2D > SAL_CALL cairocanvas::TextLayout::queryInkMeasures ( )
overridevirtual

Definition at line 102 of file cairo_textlayout.cxx.

◆ queryKashidaPositions()

uno::Sequence< sal_Bool > SAL_CALL cairocanvas::TextLayout::queryKashidaPositions ( )
overridevirtual

Definition at line 134 of file cairo_textlayout.cxx.

References m_aMutex.

◆ queryLogicalAdvancements()

uno::Sequence< double > SAL_CALL cairocanvas::TextLayout::queryLogicalAdvancements ( )
overridevirtual

Definition at line 114 of file cairo_textlayout.cxx.

References m_aMutex.

◆ queryLogicalHighlighting()

uno::Reference< rendering::XPolyPolygon2D > SAL_CALL cairocanvas::TextLayout::queryLogicalHighlighting ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

Definition at line 232 of file cairo_textlayout.cxx.

◆ queryMeasures()

uno::Sequence< geometry::RealRectangle2D > SAL_CALL cairocanvas::TextLayout::queryMeasures ( )
overridevirtual

Definition at line 108 of file cairo_textlayout.cxx.

◆ queryTextBounds()

geometry::RealRectangle2D SAL_CALL cairocanvas::TextLayout::queryTextBounds ( )
overridevirtual

Definition at line 154 of file cairo_textlayout.cxx.

References m_aMutex, maText, and mpFont.

◆ queryTextShapes()

uno::Sequence< uno::Reference< rendering::XPolyPolygon2D > > SAL_CALL cairocanvas::TextLayout::queryTextShapes ( )
overridevirtual

Definition at line 96 of file cairo_textlayout.cxx.

◆ queryVisualHighlighting()

uno::Reference< rendering::XPolyPolygon2D > SAL_CALL cairocanvas::TextLayout::queryVisualHighlighting ( sal_Int32  nStartIndex,
sal_Int32  nEndIndex 
)
overridevirtual

Definition at line 225 of file cairo_textlayout.cxx.

◆ setupTextOffsets()

KernArray cairocanvas::TextLayout::setupTextOffsets ( const css::uno::Sequence< double > &  inputOffsets,
const css::rendering::ViewState viewState,
const css::rendering::RenderState &  renderState 
) const

◆ supportsService()

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

Definition at line 356 of file cairo_textlayout.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ maKashidaPositions

css::uno::Sequence< sal_Bool > cairocanvas::TextLayout::maKashidaPositions
private

Definition at line 99 of file cairo_textlayout.hxx.

◆ maLogicalAdvancements

css::uno::Sequence< double > cairocanvas::TextLayout::maLogicalAdvancements
private

Definition at line 98 of file cairo_textlayout.hxx.

◆ maText

css::rendering::StringContext cairocanvas::TextLayout::maText
private

Definition at line 97 of file cairo_textlayout.hxx.

◆ mnTextDirection

sal_Int8 cairocanvas::TextLayout::mnTextDirection
private

Definition at line 102 of file cairo_textlayout.hxx.

◆ mpFont

CanvasFont::Reference cairocanvas::TextLayout::mpFont
private

Definition at line 100 of file cairo_textlayout.hxx.

◆ mpRefDevice

SurfaceProviderRef cairocanvas::TextLayout::mpRefDevice
private

Definition at line 101 of file cairo_textlayout.hxx.


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