LibreOffice Module vcl (master) 1
|
#include <ctrl.hxx>
Public Member Functions | |
ControlLayoutData () | |
~ControlLayoutData () | |
tools::Rectangle | GetCharacterBounds (tools::Long nIndex) const |
tools::Long | GetIndexForPoint (const Point &rPoint) const |
tools::Long | GetLineCount () const |
::Pair | GetLineStartEnd (tools::Long nLine) const |
tools::Long | ToRelativeLineIndex (tools::Long nIndex) const |
ToRelativeLineIndex changes a layout data index to a count relative to its line. More... | |
Public Attributes | |
OUString | m_aDisplayText |
std::vector< tools::Rectangle > | m_aUnicodeBoundRects |
std::vector< tools::Long > | m_aLineIndices |
VclPtr< const Control > | m_pParent |
ControlLayoutData::~ControlLayoutData | ( | ) |
Definition at line 371 of file ctrl.cxx.
References Control::ImplClearLayoutData(), and m_pParent.
tools::Rectangle ControlLayoutData::GetCharacterBounds | ( | tools::Long | nIndex | ) | const |
Definition at line 108 of file ctrl.cxx.
References m_aUnicodeBoundRects, o3tl::make_unsigned(), and nIndex.
tools::Long ControlLayoutData::GetIndexForPoint | ( | const Point & | rPoint | ) | const |
tools::Long ControlLayoutData::GetLineCount | ( | ) | const |
Definition at line 144 of file ctrl.cxx.
References m_aDisplayText, and m_aLineIndices.
Pair ControlLayoutData::GetLineStartEnd | ( | tools::Long | nLine | ) | const |
Definition at line 152 of file ctrl.cxx.
References Pair::A(), Pair::B(), m_aDisplayText, and m_aLineIndices.
tools::Long ControlLayoutData::ToRelativeLineIndex | ( | tools::Long | nIndex | ) | const |
ToRelativeLineIndex changes a layout data index to a count relative to its line.
This is equivalent to getting the line start/end pairs with GetLineStartEnd until the index lies within [start,end] of a line
nIndex | the absolute index inside the display text to be changed to a relative index |
Definition at line 182 of file ctrl.cxx.
References m_aDisplayText, m_aLineIndices, and nIndex.
OUString vcl::ControlLayoutData::m_aDisplayText |
Definition at line 43 of file ctrl.hxx.
Referenced by GetLineCount(), GetLineStartEnd(), and ToRelativeLineIndex().
std::vector< tools::Long > vcl::ControlLayoutData::m_aLineIndices |
Definition at line 48 of file ctrl.hxx.
Referenced by TabControl::GetCharacterBounds(), TabControl::GetIndexForPoint(), GetLineCount(), GetLineStartEnd(), and ToRelativeLineIndex().
std::vector< tools::Rectangle > vcl::ControlLayoutData::m_aUnicodeBoundRects |
Definition at line 46 of file ctrl.hxx.
Referenced by GetCharacterBounds(), and GetIndexForPoint().
Definition at line 50 of file ctrl.hxx.
Referenced by ~ControlLayoutData().