LibreOffice Module vcl (master)  1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
vcl::ReferenceDeviceTextLayout Class Reference
Inheritance diagram for vcl::ReferenceDeviceTextLayout:
[legend]
Collaboration diagram for vcl::ReferenceDeviceTextLayout:
[legend]

Public Member Functions

 ReferenceDeviceTextLayout (const Control &_rControl, OutputDevice &_rTargetDevice, OutputDevice &_rReferenceDevice)
 
virtual ~ReferenceDeviceTextLayout ()
 
virtual long GetTextWidth (const OUString &rStr, sal_Int32 nIndex, sal_Int32 nLen) 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
 
tools::Rectangle DrawText (const tools::Rectangle &_rRect, const OUString &_rText, DrawTextFlags _nStyle, MetricVector *_pVector, OUString *_pDisplayText, const Size *i_pDeviceSize)
 
tools::Rectangle GetTextRect (const tools::Rectangle &_rRect, const OUString &_rText, DrawTextFlags _nStyle, Size *o_pDeviceSize)
 

Private Member Functions

long GetTextArray (const OUString &_rText, long *_pDXAry, sal_Int32 _nStartIndex, sal_Int32 _nLength) const
 

Private Attributes

OutputDevicem_rTargetDevice
 
OutputDevicem_rReferenceDevice
 
Font const m_aUnzoomedPointFont
 
const bool m_bRTLEnabled
 
tools::Rectangle m_aCompleteTextRect
 

Additional Inherited Members

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

Detailed Description

Definition at line 70 of file textlayout.cxx.

Constructor & Destructor Documentation

vcl::ReferenceDeviceTextLayout::ReferenceDeviceTextLayout ( const Control _rControl,
OutputDevice _rTargetDevice,
OutputDevice _rReferenceDevice 
)
vcl::ReferenceDeviceTextLayout::~ReferenceDeviceTextLayout ( )
virtual

Definition at line 144 of file textlayout.cxx.

References m_rReferenceDevice, m_rTargetDevice, and OutputDevice::Pop().

Member Function Documentation

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

Implements vcl::ITextLayout.

Definition at line 239 of file textlayout.cxx.

void vcl::ReferenceDeviceTextLayout::DrawText ( const Point _rStartPoint,
const OUString &  _rText,
sal_Int32  _nStartIndex,
sal_Int32  _nLength,
MetricVector _pVector,
OUString *  _pDisplayText 
)
overridevirtual
tools::Rectangle vcl::ReferenceDeviceTextLayout::DrawText ( const tools::Rectangle _rRect,
const OUString &  _rText,
DrawTextFlags  _nStyle,
MetricVector _pVector,
OUString *  _pDisplayText,
const Size i_pDeviceSize 
)
void vcl::ReferenceDeviceTextLayout::GetCaretPositions ( const OUString &  _rText,
long *  _pCaretXArray,
sal_Int32  _nStartIndex,
sal_Int32  _nLength 
) const
overridevirtual

Implements vcl::ITextLayout.

Definition at line 221 of file textlayout.cxx.

References OutputDevice::GetCaretPositions(), and m_rReferenceDevice.

long vcl::ReferenceDeviceTextLayout::GetTextArray ( const OUString &  _rText,
long *  _pDXAry,
sal_Int32  _nStartIndex,
sal_Int32  _nLength 
) const
private

Definition at line 163 of file textlayout.cxx.

References OutputDevice::GetTextArray(), i, m_rReferenceDevice, OUStringToOString(), and SAL_INFO.

Referenced by DrawText(), and GetTextWidth().

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

Implements vcl::ITextLayout.

Definition at line 231 of file textlayout.cxx.

References OutputDevice::GetTextBreak(), and m_rReferenceDevice.

tools::Rectangle vcl::ReferenceDeviceTextLayout::GetTextRect ( const tools::Rectangle _rRect,
const OUString &  _rText,
DrawTextFlags  _nStyle,
Size o_pDeviceSize 
)
long vcl::ReferenceDeviceTextLayout::GetTextWidth ( const OUString &  rStr,
sal_Int32  nIndex,
sal_Int32  nLen 
) const
overridevirtual

Implements vcl::ITextLayout.

Definition at line 192 of file textlayout.cxx.

References GetTextArray().

Member Data Documentation

tools::Rectangle vcl::ReferenceDeviceTextLayout::m_aCompleteTextRect
private

Definition at line 96 of file textlayout.cxx.

Referenced by DrawText().

Font const vcl::ReferenceDeviceTextLayout::m_aUnzoomedPointFont
private

Definition at line 93 of file textlayout.cxx.

Referenced by ReferenceDeviceTextLayout().

const bool vcl::ReferenceDeviceTextLayout::m_bRTLEnabled
private

Definition at line 94 of file textlayout.cxx.

Referenced by DrawText(), and GetTextRect().

OutputDevice& vcl::ReferenceDeviceTextLayout::m_rReferenceDevice
private
OutputDevice& vcl::ReferenceDeviceTextLayout::m_rTargetDevice
private

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