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

#include <editdoc.hxx>

Public Member Functions

 ParaPortionList ()
 
 ~ParaPortionList ()
 
void Reset ()
 
tools::Long GetYOffset (const ParaPortion *pPPortion) const
 
sal_Int32 FindParagraph (tools::Long nYOffset) const
 
const ParaPortionSafeGetObject (sal_Int32 nPos) const
 
ParaPortionSafeGetObject (sal_Int32 nPos)
 
sal_Int32 GetPos (const ParaPortion *p) const
 
ParaPortionoperator[] (sal_Int32 nPos)
 
const ParaPortionoperator[] (sal_Int32 nPos) const
 
std::unique_ptr< ParaPortionRelease (sal_Int32 nPos)
 
void Remove (sal_Int32 nPos)
 
void Insert (sal_Int32 nPos, std::unique_ptr< ParaPortion > p)
 
void Append (std::unique_ptr< ParaPortion > p)
 
sal_Int32 Count () const
 

Static Public Member Functions

static void DbgCheck (ParaPortionList const &, EditDoc const &rDoc)
 

Private Attributes

sal_Int32 nLastCache
 
std::vector< std::unique_ptr< ParaPortion > > maPortions
 

Detailed Description

Definition at line 660 of file editdoc.hxx.

Constructor & Destructor Documentation

◆ ParaPortionList()

ParaPortionList::ParaPortionList ( )

Definition at line 681 of file editdoc.cxx.

◆ ~ParaPortionList()

ParaPortionList::~ParaPortionList ( )

Definition at line 685 of file editdoc.cxx.

Member Function Documentation

◆ Append()

void ParaPortionList::Append ( std::unique_ptr< ParaPortion p)

Definition at line 736 of file editdoc.cxx.

References maPortions, and p.

Referenced by ImpEditEngine::ImpMoveParagraphs().

◆ Count()

sal_Int32 ParaPortionList::Count ( ) const

◆ DbgCheck()

void ParaPortionList::DbgCheck ( ParaPortionList const &  rParas,
EditDoc const &  rDoc 
)
static

◆ FindParagraph()

sal_Int32 ParaPortionList::FindParagraph ( tools::Long  nYOffset) const

Definition at line 771 of file editdoc.cxx.

References EE_PARA_NOT_FOUND, i, maPortions, n, and SAL_MAX_INT32.

◆ GetPos()

sal_Int32 ParaPortionList::GetPos ( const ParaPortion p) const

◆ GetYOffset()

tools::Long ParaPortionList::GetYOffset ( const ParaPortion pPPortion) const

Definition at line 757 of file editdoc.cxx.

References ParaPortion::GetHeight(), and maPortions.

Referenced by ImpEditView::dragOver().

◆ Insert()

void ParaPortionList::Insert ( sal_Int32  nPos,
std::unique_ptr< ParaPortion p 
)

◆ operator[]() [1/2]

ParaPortion * ParaPortionList::operator[] ( sal_Int32  nPos)

Definition at line 694 of file editdoc.cxx.

References o3tl::make_unsigned(), maPortions, and nPos.

◆ operator[]() [2/2]

const ParaPortion * ParaPortionList::operator[] ( sal_Int32  nPos) const

Definition at line 699 of file editdoc.cxx.

References o3tl::make_unsigned(), maPortions, and nPos.

◆ Release()

std::unique_ptr< ParaPortion > ParaPortionList::Release ( sal_Int32  nPos)

Definition at line 704 of file editdoc.cxx.

References o3tl::make_unsigned(), maPortions, nPos, p, and SAL_WARN.

Referenced by ImpEditEngine::ImpMoveParagraphs().

◆ Remove()

void ParaPortionList::Remove ( sal_Int32  nPos)

Definition at line 716 of file editdoc.cxx.

References o3tl::make_unsigned(), maPortions, nPos, and SAL_WARN.

Referenced by ImpEditEngine::ImpConnectParagraphs().

◆ Reset()

void ParaPortionList::Reset ( void  )

Definition at line 752 of file editdoc.cxx.

References maPortions.

Referenced by ImpEditEngine::InitDoc().

◆ SafeGetObject() [1/2]

ParaPortion * ParaPortionList::SafeGetObject ( sal_Int32  nPos)

Definition at line 788 of file editdoc.cxx.

References o3tl::make_unsigned(), maPortions, and nPos.

◆ SafeGetObject() [2/2]

const ParaPortion * ParaPortionList::SafeGetObject ( sal_Int32  nPos) const

Member Data Documentation

◆ maPortions

std::vector<std::unique_ptr<ParaPortion> > ParaPortionList::maPortions
private

◆ nLastCache

sal_Int32 ParaPortionList::nLastCache
mutableprivate

Definition at line 662 of file editdoc.hxx.

Referenced by GetPos().


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