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< 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
 

Detailed Description

Definition at line 72 of file textdat2.hxx.

Constructor & Destructor Documentation

TETextPortionList::TETextPortionList ( )

Definition at line 54 of file textdata.cxx.

TETextPortionList::~TETextPortionList ( )

Definition at line 58 of file textdata.cxx.

References Reset().

Member Function Documentation

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 
)
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().

void TETextPortionList::Reset ( void  )

Definition at line 114 of file textdata.cxx.

References maPortions.

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

std::size_t TETextPortionList::size ( ) const

Member Data Documentation

std::vector<std::unique_ptr<TETextPortion> > TETextPortionList::maPortions
private
constexpr auto TETextPortionList::npos = std::numeric_limits<std::size_t>::max()
static

Definition at line 78 of file textdat2.hxx.

Referenced by TextEngine::CreateLines().


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