LibreOffice Module vcl (master) 1
Public 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 tools::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, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText) override
 
virtual tools::Long GetTextArray (const OUString &_rText, KernArray *_pDXAry, 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
 
tools::Rectangle DrawText (const tools::Rectangle &_rRect, const OUString &_rText, DrawTextFlags _nStyle, std::vector< tools::Rectangle > *_pVector, OUString *_pDisplayText, const Size *i_pDeviceSize)
 
tools::Rectangle GetTextRect (const tools::Rectangle &_rRect, const OUString &_rText, DrawTextFlags _nStyle, Size *o_pDeviceSize)
 
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
 
OutputDevicem_rReferenceDevice
 
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 71 of file textlayout.cxx.

Constructor & Destructor Documentation

◆ ReferenceDeviceTextLayout()

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

◆ ~ReferenceDeviceTextLayout()

vcl::ReferenceDeviceTextLayout::~ReferenceDeviceTextLayout ( )
virtual

Definition at line 143 of file textlayout.cxx.

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

Member Function Documentation

◆ DecomposeTextRectAction()

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

Implements vcl::ITextLayout.

Definition at line 225 of file textlayout.cxx.

◆ DrawText() [1/2]

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

◆ DrawText() [2/2]

tools::Rectangle vcl::ReferenceDeviceTextLayout::DrawText ( const tools::Rectangle _rRect,
const OUString &  _rText,
DrawTextFlags  _nStyle,
std::vector< tools::Rectangle > *  _pVector,
OUString *  _pDisplayText,
const Size i_pDeviceSize 
)

◆ GetTextArray()

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

Implements vcl::ITextLayout.

Definition at line 162 of file textlayout.cxx.

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

Referenced by DrawText(), and GetTextWidth().

◆ GetTextBreak()

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

Implements vcl::ITextLayout.

Definition at line 217 of file textlayout.cxx.

References OutputDevice::GetTextBreak(), and m_rReferenceDevice.

◆ GetTextRect()

tools::Rectangle vcl::ReferenceDeviceTextLayout::GetTextRect ( const tools::Rectangle _rRect,
const OUString &  _rText,
DrawTextFlags  _nStyle,
Size o_pDeviceSize 
)

◆ GetTextWidth()

tools::Long vcl::ReferenceDeviceTextLayout::GetTextWidth ( const OUString &  rStr,
sal_Int32  nIndex,
sal_Int32  nLen 
) const
overridevirtual

Implements vcl::ITextLayout.

Definition at line 191 of file textlayout.cxx.

References GetTextArray().

Member Data Documentation

◆ m_aCompleteTextRect

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

Definition at line 95 of file textlayout.cxx.

Referenced by DrawText().

◆ m_bRTLEnabled

const bool vcl::ReferenceDeviceTextLayout::m_bRTLEnabled
private

Definition at line 93 of file textlayout.cxx.

Referenced by DrawText(), and GetTextRect().

◆ m_rReferenceDevice

OutputDevice& vcl::ReferenceDeviceTextLayout::m_rReferenceDevice
private

◆ m_rTargetDevice

OutputDevice& vcl::ReferenceDeviceTextLayout::m_rTargetDevice
private

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