LibreOffice Module vcl (master) 1
Public Member Functions | Private Attributes | List of all members
vcl::DefaultTextLayout Class Referencefinal

is an implementation of the ITextLayout interface which simply delegates its calls to the respective methods of an OutputDevice instance, without any inbetween magic. More...

#include <textlayout.hxx>

Inheritance diagram for vcl::DefaultTextLayout:
[legend]
Collaboration diagram for vcl::DefaultTextLayout:
[legend]

Public Member Functions

 DefaultTextLayout (OutputDevice &_rTargetDevice)
 
virtual ~DefaultTextLayout ()
 
virtual tools::Long GetTextWidth (const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength) const override
 
virtual void DrawText (const Point &_rStartPoint, const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText) override
 
virtual tools::Long GetTextArray (const OUString &_rText, KernArray *_pDXArray, sal_Int32 _nStartIndex, sal_Int32 _nLength, bool bCaret=false) const override
 
virtual sal_Int32 GetTextBreak (const OUString &_rText, tools::Long _nMaxTextWidth, sal_Int32 _nStartIndex, sal_Int32 _nLength) const override
 
virtual bool DecomposeTextRectAction () const override
 
virtual tools::Long GetTextWidth (const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength) const =0
 
virtual void DrawText (const Point &_rStartPoint, const OUString &_rText, sal_Int32 _nStartIndex, sal_Int32 _nLength, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText)=0
 
virtual tools::Long GetTextArray (const OUString &_rText, KernArray *_pDXArray, sal_Int32 _nStartIndex, sal_Int32 _nLength, bool bCaret=false) const =0
 
virtual sal_Int32 GetTextBreak (const OUString &_rText, tools::Long _nMaxTextWidth, sal_Int32 _nStartIndex, sal_Int32 _nLength) const =0
 
virtual bool DecomposeTextRectAction () const =0
 

Private Attributes

OutputDevicem_rTargetDevice
 

Additional Inherited Members

- Protected Member Functions inherited from vcl::ITextLayout
 ~ITextLayout () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

is an implementation of the ITextLayout interface which simply delegates its calls to the respective methods of an OutputDevice instance, without any inbetween magic.

Definition at line 46 of file textlayout.hxx.

Constructor & Destructor Documentation

◆ DefaultTextLayout()

vcl::DefaultTextLayout::DefaultTextLayout ( OutputDevice _rTargetDevice)
inline

Definition at line 49 of file textlayout.hxx.

◆ ~DefaultTextLayout()

vcl::DefaultTextLayout::~DefaultTextLayout ( )
virtual

Definition at line 40 of file textlayout.cxx.

Member Function Documentation

◆ DecomposeTextRectAction()

bool vcl::DefaultTextLayout::DecomposeTextRectAction ( ) const
overridevirtual

Implements vcl::ITextLayout.

Definition at line 66 of file textlayout.cxx.

◆ DrawText()

void vcl::DefaultTextLayout::DrawText ( const Point _rStartPoint,
const OUString &  _rText,
sal_Int32  _nStartIndex,
sal_Int32  _nLength,
std::vector< tools::Rectangle > *  _pVector,
OUString *  _pDisplayText 
)
overridevirtual

Implements vcl::ITextLayout.

Definition at line 49 of file textlayout.cxx.

References OutputDevice::DrawText(), and m_rTargetDevice.

◆ GetTextArray()

tools::Long vcl::DefaultTextLayout::GetTextArray ( const OUString &  _rText,
KernArray _pDXArray,
sal_Int32  _nStartIndex,
sal_Int32  _nLength,
bool  bCaret = false 
) const
overridevirtual

Implements vcl::ITextLayout.

Definition at line 55 of file textlayout.cxx.

References OutputDevice::GetTextArray(), and m_rTargetDevice.

◆ GetTextBreak()

sal_Int32 vcl::DefaultTextLayout::GetTextBreak ( const OUString &  _rText,
tools::Long  _nMaxTextWidth,
sal_Int32  _nStartIndex,
sal_Int32  _nLength 
) const
overridevirtual

Implements vcl::ITextLayout.

Definition at line 61 of file textlayout.cxx.

References OutputDevice::GetTextBreak(), and m_rTargetDevice.

◆ GetTextWidth()

tools::Long vcl::DefaultTextLayout::GetTextWidth ( const OUString &  _rText,
sal_Int32  _nStartIndex,
sal_Int32  _nLength 
) const
overridevirtual

Implements vcl::ITextLayout.

Definition at line 44 of file textlayout.cxx.

References OutputDevice::GetTextWidth(), and m_rTargetDevice.

Member Data Documentation

◆ m_rTargetDevice

OutputDevice& vcl::DefaultTextLayout::m_rTargetDevice
private

Definition at line 81 of file textlayout.hxx.

Referenced by DrawText(), GetTextArray(), GetTextBreak(), and GetTextWidth().


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