LibreOffice Module editeng (master) 1
Public Member Functions | Private Types | Private Attributes | List of all members
TextPortionList Class Reference

#include <editdoc.hxx>

Public Member Functions

 TextPortionList ()
 
 ~TextPortionList ()
 
void Reset ()
 
sal_Int32 FindPortion (sal_Int32 nCharPos, sal_Int32 &rPortionStart, bool bPreferStartingPortion=false) const
 
sal_Int32 GetStartPos (sal_Int32 nPortion)
 
void DeleteFromPortion (sal_Int32 nDelFrom)
 
sal_Int32 Count () const
 
const TextPortionoperator[] (sal_Int32 nPos) const
 
TextPortionoperator[] (sal_Int32 nPos)
 
void Append (TextPortion *p)
 
void Insert (sal_Int32 nPos, TextPortion *p)
 
void Remove (sal_Int32 nPos)
 
sal_Int32 GetPos (const TextPortion *p) const
 

Private Types

typedef std::vector< std::unique_ptr< TextPortion > > PortionsType
 

Private Attributes

PortionsType maPortions
 

Detailed Description

Definition at line 453 of file editdoc.hxx.

Member Typedef Documentation

◆ PortionsType

typedef std::vector<std::unique_ptr<TextPortion> > TextPortionList::PortionsType
private

Definition at line 455 of file editdoc.hxx.

Constructor & Destructor Documentation

◆ TextPortionList()

TextPortionList::TextPortionList ( )

Definition at line 370 of file editdoc.cxx.

◆ ~TextPortionList()

TextPortionList::~TextPortionList ( )

Definition at line 374 of file editdoc.cxx.

References Reset().

Member Function Documentation

◆ Append()

void TextPortionList::Append ( TextPortion p)

◆ Count()

sal_Int32 TextPortionList::Count ( ) const

◆ DeleteFromPortion()

void TextPortionList::DeleteFromPortion ( sal_Int32  nDelFrom)

Definition at line 384 of file editdoc.cxx.

References maPortions.

Referenced by ImpEditEngine::CreateTextPortions().

◆ FindPortion()

sal_Int32 TextPortionList::FindPortion ( sal_Int32  nCharPos,
sal_Int32 &  rPortionStart,
bool  bPreferStartingPortion = false 
) const

◆ GetPos()

sal_Int32 TextPortionList::GetPos ( const TextPortion p) const

Definition at line 437 of file editdoc.cxx.

References maPortions, and p.

Referenced by ImpEditEngine::ImplExpandCompressedPortions().

◆ GetStartPos()

sal_Int32 TextPortionList::GetStartPos ( sal_Int32  nPortion)

◆ Insert()

void TextPortionList::Insert ( sal_Int32  nPos,
TextPortion p 
)

◆ operator[]() [1/2]

TextPortion & TextPortionList::operator[] ( sal_Int32  nPos)

Definition at line 402 of file editdoc.cxx.

References maPortions, and nPos.

◆ operator[]() [2/2]

const TextPortion & TextPortionList::operator[] ( sal_Int32  nPos) const

Definition at line 397 of file editdoc.cxx.

References maPortions, and nPos.

◆ Remove()

void TextPortionList::Remove ( sal_Int32  nPos)

Definition at line 417 of file editdoc.cxx.

References maPortions, and nPos.

Referenced by ImpEditEngine::CreateLines(), and ImpEditEngine::RecalcTextPortion().

◆ Reset()

void TextPortionList::Reset ( void  )

Member Data Documentation

◆ maPortions

PortionsType TextPortionList::maPortions
private

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