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

#include <ogl_textlayout.hxx>

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

Public Member Functions

 TextLayout (const css::rendering::StringContext &aText, sal_Int8 nDirection, sal_Int64 nRandomSeed, const CanvasFont::ImplRef &rFont)
 
 TextLayout (const TextLayout &)=delete
 make noncopyable More...
 
const TextLayoutoperator= (const TextLayout &)=delete
 
virtual void SAL_CALL disposing () 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::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
 

Private Attributes

css::rendering::StringContext maText
 
css::uno::Sequence< double > maLogicalAdvancements
 
CanvasFont::ImplRef mpFont
 
sal_Int8 mnTextDirection
 

Additional Inherited Members

- Protected Attributes inherited from cppu::BaseMutex
mutable::osl::Mutex m_aMutex
 

Detailed Description

Definition at line 29 of file ogl_textlayout.hxx.

Constructor & Destructor Documentation

oglcanvas::TextLayout::TextLayout ( const css::rendering::StringContext &  aText,
sal_Int8  nDirection,
sal_Int64  nRandomSeed,
const CanvasFont::ImplRef rFont 
)
oglcanvas::TextLayout::TextLayout ( const TextLayout )
delete

make noncopyable

Member Function Documentation

virtual void SAL_CALL oglcanvas::TextLayout::applyLogicalAdvancements ( const css::uno::Sequence< double > &  aAdvancements)
overridevirtual
virtual double SAL_CALL oglcanvas::TextLayout::combinedJustify ( const css::uno::Sequence< css::uno::Reference< css::rendering::XTextLayout > > &  aNextLayouts,
double  nSize 
)
overridevirtual
void SAL_CALL oglcanvas::TextLayout::disposing ( )
overridevirtual

Dispose all internal references.

Definition at line 35 of file ogl_textlayout.cxx.

References mpFont.

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

Definition at line 153 of file ogl_textlayout.cxx.

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

Definition at line 124 of file ogl_textlayout.cxx.

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

Definition at line 166 of file ogl_textlayout.cxx.

References cppu::BaseMutex::m_aMutex, and mpFont.

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

Definition at line 159 of file ogl_textlayout.cxx.

References cppu::BaseMutex::m_aMutex, and mnTextDirection.

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

Definition at line 131 of file ogl_textlayout.cxx.

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

Definition at line 173 of file ogl_textlayout.cxx.

References cppu::BaseMutex::m_aMutex, and maText.

virtual css::rendering::TextHit SAL_CALL oglcanvas::TextLayout::getTextHit ( const css::geometry::RealPoint2D &  aHitPoint)
overridevirtual
double SAL_CALL oglcanvas::TextLayout::justify ( double  nSize)
overridevirtual

Definition at line 105 of file ogl_textlayout.cxx.

const TextLayout& oglcanvas::TextLayout::operator= ( const TextLayout )
delete
uno::Sequence< geometry::RealRectangle2D > SAL_CALL oglcanvas::TextLayout::queryInkMeasures ( )
overridevirtual

Definition at line 47 of file ogl_textlayout.cxx.

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

Definition at line 59 of file ogl_textlayout.cxx.

References cppu::BaseMutex::m_aMutex, and maLogicalAdvancements.

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

Definition at line 146 of file ogl_textlayout.cxx.

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

Definition at line 53 of file ogl_textlayout.cxx.

geometry::RealRectangle2D SAL_CALL oglcanvas::TextLayout::queryTextBounds ( )
overridevirtual
uno::Sequence< uno::Reference< rendering::XPolyPolygon2D > > SAL_CALL oglcanvas::TextLayout::queryTextShapes ( )
overridevirtual

Definition at line 41 of file ogl_textlayout.cxx.

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

Definition at line 139 of file ogl_textlayout.cxx.

Member Data Documentation

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

Definition at line 66 of file ogl_textlayout.hxx.

Referenced by queryLogicalAdvancements(), and queryTextBounds().

css::rendering::StringContext oglcanvas::TextLayout::maText
private

Definition at line 65 of file ogl_textlayout.hxx.

Referenced by getText(), and queryTextBounds().

sal_Int8 oglcanvas::TextLayout::mnTextDirection
private

Definition at line 68 of file ogl_textlayout.hxx.

Referenced by getMainTextDirection().

CanvasFont::ImplRef oglcanvas::TextLayout::mpFont
private

Definition at line 67 of file ogl_textlayout.hxx.

Referenced by disposing(), getFont(), and queryTextBounds().


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