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

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 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, MetricVector *_pVector, OUString *_pDisplayText) override
 
virtual void GetCaretPositions (const OUString &_rText, long *_pCaretXArray, sal_Int32 _nStartIndex, sal_Int32 _nLength) const override
 
virtual sal_Int32 GetTextBreak (const OUString &_rText, long _nMaxTextWidth, sal_Int32 _nStartIndex, sal_Int32 _nLength) const override
 
virtual bool DecomposeTextRectAction () const override
 

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

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

Definition at line 49 of file textlayout.hxx.

vcl::DefaultTextLayout::~DefaultTextLayout ( )
virtual

Definition at line 39 of file textlayout.cxx.

Member Function Documentation

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

Implements vcl::ITextLayout.

Definition at line 65 of file textlayout.cxx.

void vcl::DefaultTextLayout::DrawText ( const Point _rStartPoint,
const OUString &  _rText,
sal_Int32  _nStartIndex,
sal_Int32  _nLength,
MetricVector _pVector,
OUString *  _pDisplayText 
)
overridevirtual

Implements vcl::ITextLayout.

Definition at line 48 of file textlayout.cxx.

References OutputDevice::DrawText(), and m_rTargetDevice.

void vcl::DefaultTextLayout::GetCaretPositions ( const OUString &  _rText,
long *  _pCaretXArray,
sal_Int32  _nStartIndex,
sal_Int32  _nLength 
) const
overridevirtual

Implements vcl::ITextLayout.

Definition at line 54 of file textlayout.cxx.

References OutputDevice::GetCaretPositions(), and m_rTargetDevice.

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

Implements vcl::ITextLayout.

Definition at line 60 of file textlayout.cxx.

References OutputDevice::GetTextBreak(), and m_rTargetDevice.

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

Implements vcl::ITextLayout.

Definition at line 43 of file textlayout.cxx.

References OutputDevice::GetTextWidth(), and m_rTargetDevice.

Member Data Documentation

OutputDevice& vcl::DefaultTextLayout::m_rTargetDevice
private

Definition at line 80 of file textlayout.hxx.

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


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