LibreOffice Module vcl (master)
1
|
#include <textdat2.hxx>
Public Member Functions | |
TETextPortionList () | |
~TETextPortionList () | |
TETextPortion * | operator[] (std::size_t nPos) |
std::vector< std::unique_ptr< TETextPortion > >::iterator | begin () |
std::vector< std::unique_ptr< TETextPortion > >::const_iterator | begin () const |
std::vector< std::unique_ptr< TETextPortion > >::iterator | end () |
std::vector< std::unique_ptr< TETextPortion > >::const_iterator | end () const |
bool | empty () const |
std::size_t | size () const |
std::vector< std::unique_ptr< TETextPortion > >::iterator | erase (const std::vector< std::unique_ptr< TETextPortion >>::iterator &aIter) |
std::vector< std::unique_ptr< TETextPortion > >::iterator | insert (const std::vector< std::unique_ptr< TETextPortion >>::iterator &aIter, std::unique_ptr< TETextPortion > pTP) |
void | push_back (std::unique_ptr< TETextPortion > pTP) |
void | Reset () |
std::size_t | FindPortion (sal_Int32 nCharPos, sal_Int32 &rPortionStart, bool bPreferStartingPortion=false) |
void | DeleteFromPortion (std::size_t nDelFrom) |
Static Public Attributes | |
static constexpr auto | npos = std::numeric_limits<std::size_t>::max() |
Private Attributes | |
std::vector< std::unique_ptr< TETextPortion > > | maPortions |
Definition at line 72 of file textdat2.hxx.
TETextPortionList::TETextPortionList | ( | ) |
Definition at line 54 of file textdata.cxx.
TETextPortionList::~TETextPortionList | ( | ) |
Definition at line 58 of file textdata.cxx.
References Reset().
std::vector< std::unique_ptr< TETextPortion > >::iterator TETextPortionList::begin | ( | ) |
Definition at line 68 of file textdata.cxx.
References maPortions.
Referenced by TextEngine::RecalcTextPortion(), and TextEngine::SplitTextPortion().
std::vector< std::unique_ptr< TETextPortion > >::const_iterator TETextPortionList::begin | ( | ) | const |
Definition at line 73 of file textdata.cxx.
References maPortions.
void TETextPortionList::DeleteFromPortion | ( | std::size_t | nDelFrom | ) |
Definition at line 119 of file textdata.cxx.
References maPortions, and SAL_WARN_IF.
Referenced by TextEngine::CreateTextPortions().
bool TETextPortionList::empty | ( | ) | const |
Definition at line 88 of file textdata.cxx.
References maPortions.
Referenced by TextEngine::CreateLines(), and TextEngine::CreateTextPortions().
std::vector< std::unique_ptr< TETextPortion > >::iterator TETextPortionList::end | ( | ) |
Definition at line 78 of file textdata.cxx.
References maPortions.
std::vector< std::unique_ptr< TETextPortion > >::const_iterator TETextPortionList::end | ( | ) | const |
Definition at line 83 of file textdata.cxx.
References maPortions.
std::vector< std::unique_ptr< TETextPortion > >::iterator TETextPortionList::erase | ( | const std::vector< std::unique_ptr< TETextPortion >>::iterator & | aIter | ) |
Definition at line 98 of file textdata.cxx.
References maPortions.
Referenced by TextEngine::RecalcTextPortion().
std::size_t TETextPortionList::FindPortion | ( | sal_Int32 | nCharPos, |
sal_Int32 & | rPortionStart, | ||
bool | bPreferStartingPortion = false |
||
) |
Definition at line 125 of file textdata.cxx.
References TETextPortion::GetLen(), and maPortions.
Referenced by TextEngine::ImpGetOutputOffset(), TextEngine::ImpGetXPos(), TextView::ImpShowCursor(), and TextEngine::RecalcTextPortion().
std::vector< std::unique_ptr< TETextPortion > >::iterator TETextPortionList::insert | ( | const std::vector< std::unique_ptr< TETextPortion >>::iterator & | aIter, |
std::unique_ptr< TETextPortion > | pTP | ||
) |
Definition at line 103 of file textdata.cxx.
References maPortions.
Referenced by TextEngine::RecalcTextPortion(), and TextEngine::SplitTextPortion().
TETextPortion * TETextPortionList::operator[] | ( | std::size_t | nPos | ) |
Definition at line 63 of file textdata.cxx.
References maPortions.
void TETextPortionList::push_back | ( | std::unique_ptr< TETextPortion > | pTP | ) |
Definition at line 109 of file textdata.cxx.
References maPortions.
Referenced by TextEngine::CreateAndInsertEmptyLine(), and TextEngine::CreateTextPortions().
Definition at line 114 of file textdata.cxx.
References maPortions.
Referenced by TextEngine::CreateLines(), and ~TETextPortionList().
std::size_t TETextPortionList::size | ( | ) | const |
Definition at line 93 of file textdata.cxx.
References maPortions.
Referenced by TextEngine::CreateAndInsertEmptyLine(), TextEngine::CreateLines(), TextEngine::CreateTextPortions(), TextEngine::GetTextPortionRange(), TextEngine::ImpGetXPos(), TextEngine::ImpPaint(), TextEngine::RecalcTextPortion(), and TextEngine::SplitTextPortion().
|
private |
Definition at line 75 of file textdat2.hxx.
Referenced by begin(), DeleteFromPortion(), empty(), end(), erase(), FindPortion(), insert(), operator[](), push_back(), Reset(), and size().
|
static |
Definition at line 78 of file textdat2.hxx.
Referenced by TextEngine::CreateLines().