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

#include <paralist.hxx>

Collaboration diagram for ParagraphList:
[legend]

Public Member Functions

void Clear ()
 
sal_Int32 GetParagraphCount () const
 
ParagraphGetParagraph (sal_Int32 nPos) const
 
sal_Int32 GetAbsPos (Paragraph const *pParent) const
 
void Append (std::unique_ptr< Paragraph > pPara)
 
void Insert (std::unique_ptr< Paragraph > pPara, sal_Int32 nAbsPos)
 
void Remove (sal_Int32 nPara)
 
void MoveParagraphs (sal_Int32 nStart, sal_Int32 nDest, sal_Int32 nCount)
 
ParagraphGetParent (Paragraph const *pParagraph) const
 
bool HasChildren (Paragraph const *pParagraph) const
 
bool HasHiddenChildren (Paragraph const *pParagraph) const
 
bool HasVisibleChildren (Paragraph const *pParagraph) const
 
sal_Int32 GetChildCount (Paragraph const *pParagraph) const
 
void Expand (Paragraph const *pParent)
 
void Collapse (Paragraph const *pParent)
 
void SetVisibleStateChangedHdl (const Link< Paragraph &, void > &rLink)
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

Link< Paragraph &, void > aVisibleStateChangedHdl
 
std::vector< std::unique_ptr< Paragraph > > maEntries
 

Detailed Description

Definition at line 35 of file paralist.hxx.

Member Function Documentation

◆ Append()

void ParagraphList::Append ( std::unique_ptr< Paragraph pPara)

Definition at line 98 of file paralist.cxx.

References EE_PARA_MAX_COUNT, maEntries, and SAL_WARN_IF.

Referenced by Insert().

◆ Clear()

void ParagraphList::Clear ( )

Definition at line 93 of file paralist.cxx.

References maEntries.

◆ Collapse()

void ParagraphList::Collapse ( Paragraph const *  pParent)

◆ dumpAsXml()

void ParagraphList::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 248 of file paralist.cxx.

References maEntries.

◆ Expand()

void ParagraphList::Expand ( Paragraph const *  pParent)

◆ GetAbsPos()

sal_Int32 ParagraphList::GetAbsPos ( Paragraph const *  pParent) const

◆ GetChildCount()

sal_Int32 ParagraphList::GetChildCount ( Paragraph const *  pParagraph) const

Definition at line 178 of file paralist.cxx.

References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), and n.

Referenced by Collapse(), and Expand().

◆ GetParagraph()

Paragraph * ParagraphList::GetParagraph ( sal_Int32  nPos) const
inline

◆ GetParagraphCount()

sal_Int32 ParagraphList::GetParagraphCount ( ) const
inline

Definition at line 40 of file paralist.hxx.

References maEntries, SAL_MAX_INT32, and SAL_WARN.

◆ GetParent()

Paragraph * ParagraphList::GetParent ( Paragraph const *  pParagraph) const

Definition at line 191 of file paralist.cxx.

References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), and n.

◆ HasChildren()

bool ParagraphList::HasChildren ( Paragraph const *  pParagraph) const

Definition at line 157 of file paralist.cxx.

References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), and n.

◆ HasHiddenChildren()

bool ParagraphList::HasHiddenChildren ( Paragraph const *  pParagraph) const

Definition at line 164 of file paralist.cxx.

References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), Paragraph::IsVisible(), and n.

◆ HasVisibleChildren()

bool ParagraphList::HasVisibleChildren ( Paragraph const *  pParagraph) const

Definition at line 171 of file paralist.cxx.

References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), Paragraph::IsVisible(), and n.

◆ Insert()

void ParagraphList::Insert ( std::unique_ptr< Paragraph pPara,
sal_Int32  nAbsPos 
)

◆ MoveParagraphs()

void ParagraphList::MoveParagraphs ( sal_Int32  nStart,
sal_Int32  nDest,
sal_Int32  nCount 
)

Definition at line 127 of file paralist.cxx.

References i, maEntries, and o3tl::make_unsigned().

◆ Remove()

void ParagraphList::Remove ( sal_Int32  nPara)

Definition at line 116 of file paralist.cxx.

References maEntries, o3tl::make_unsigned(), and SAL_WARN.

◆ SetVisibleStateChangedHdl()

void ParagraphList::SetVisibleStateChangedHdl ( const Link< Paragraph &, void > &  rLink)
inline

Definition at line 72 of file paralist.hxx.

References aVisibleStateChangedHdl.

Member Data Documentation

◆ aVisibleStateChangedHdl

Link<Paragraph&,void> ParagraphList::aVisibleStateChangedHdl
private

Definition at line 78 of file paralist.hxx.

Referenced by Collapse(), Expand(), and SetVisibleStateChangedHdl().

◆ maEntries

std::vector<std::unique_ptr<Paragraph> > ParagraphList::maEntries
private

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