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

#include <textdat2.hxx>

Public Member Functions

 TETextPortionList ()
 
 ~TETextPortionList ()
 
TETextPortionoperator[] (std::size_t nPos)
 
std::vector< TETextPortion >::iterator begin ()
 
std::vector< TETextPortion >::const_iterator begin () const
 
std::vector< TETextPortion >::iterator end ()
 
std::vector< TETextPortion >::const_iterator end () const
 
bool empty () const
 
std::size_t size () const
 
std::vector< TETextPortion >::iterator erase (const std::vector< TETextPortion >::iterator &aIter)
 
std::vector< TETextPortion >::iterator insert (const std::vector< TETextPortion >::iterator &aIter, const TETextPortion &rTP)
 
void push_back (const TETextPortion &aTP)
 
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< TETextPortionmaPortions
 

Detailed Description

Definition at line 72 of file textdat2.hxx.

Constructor & Destructor Documentation

◆ TETextPortionList()

TETextPortionList::TETextPortionList ( )

Definition at line 55 of file textdata.cxx.

◆ ~TETextPortionList()

TETextPortionList::~TETextPortionList ( )

Definition at line 59 of file textdata.cxx.

References Reset().

Member Function Documentation

◆ begin() [1/2]

std::vector< TETextPortion >::iterator TETextPortionList::begin ( )

Definition at line 69 of file textdata.cxx.

References maPortions.

Referenced by TextEngine::RecalcTextPortion(), and TextEngine::SplitTextPortion().

◆ begin() [2/2]

std::vector< TETextPortion >::const_iterator TETextPortionList::begin ( ) const

Definition at line 74 of file textdata.cxx.

References maPortions.

◆ DeleteFromPortion()

void TETextPortionList::DeleteFromPortion ( std::size_t  nDelFrom)

Definition at line 120 of file textdata.cxx.

References maPortions, and SAL_WARN_IF.

Referenced by TextEngine::CreateTextPortions().

◆ empty()

bool TETextPortionList::empty ( ) const

Definition at line 89 of file textdata.cxx.

References maPortions.

Referenced by TextEngine::CreateLines(), and TextEngine::CreateTextPortions().

◆ end() [1/2]

std::vector< TETextPortion >::iterator TETextPortionList::end ( )

Definition at line 79 of file textdata.cxx.

References maPortions.

◆ end() [2/2]

std::vector< TETextPortion >::const_iterator TETextPortionList::end ( ) const

Definition at line 84 of file textdata.cxx.

References maPortions.

◆ erase()

std::vector< TETextPortion >::iterator TETextPortionList::erase ( const std::vector< TETextPortion >::iterator &  aIter)

Definition at line 99 of file textdata.cxx.

References maPortions.

Referenced by TextEngine::RecalcTextPortion().

◆ FindPortion()

std::size_t TETextPortionList::FindPortion ( sal_Int32  nCharPos,
sal_Int32 &  rPortionStart,
bool  bPreferStartingPortion = false 
)

◆ insert()

std::vector< TETextPortion >::iterator TETextPortionList::insert ( const std::vector< TETextPortion >::iterator &  aIter,
const TETextPortion rTP 
)

Definition at line 104 of file textdata.cxx.

References maPortions.

Referenced by TextEngine::RecalcTextPortion(), and TextEngine::SplitTextPortion().

◆ operator[]()

TETextPortion & TETextPortionList::operator[] ( std::size_t  nPos)

Definition at line 64 of file textdata.cxx.

References maPortions, and nPos.

◆ push_back()

void TETextPortionList::push_back ( const TETextPortion aTP)

Definition at line 110 of file textdata.cxx.

References maPortions.

Referenced by TextEngine::CreateAndInsertEmptyLine(), and TextEngine::CreateTextPortions().

◆ Reset()

void TETextPortionList::Reset ( void  )

Definition at line 115 of file textdata.cxx.

References maPortions.

Referenced by TextEngine::CreateLines(), and ~TETextPortionList().

◆ size()

std::size_t TETextPortionList::size ( ) const

Member Data Documentation

◆ maPortions

std::vector<TETextPortion> TETextPortionList::maPortions
private

◆ npos

constexpr auto TETextPortionList::npos = std::numeric_limits<std::size_t>::max()
staticconstexpr

Definition at line 78 of file textdat2.hxx.

Referenced by TextEngine::CreateLines().


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