LibreOffice Module editeng (master) 1
|
#include <paralist.hxx>
Public Member Functions | |
void | Clear () |
sal_Int32 | GetParagraphCount () const |
Paragraph * | GetParagraph (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) |
Paragraph * | GetParent (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 |
Definition at line 35 of file paralist.hxx.
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().
void ParagraphList::Clear | ( | ) |
Definition at line 93 of file paralist.cxx.
References maEntries.
void ParagraphList::Collapse | ( | Paragraph const * | pParent | ) |
Definition at line 219 of file paralist.cxx.
References aVisibleStateChangedHdl, Paragraph::bVisible, Link< typename Arg, typename Ret >::Call(), GetAbsPos(), GetChildCount(), GetParagraph(), Paragraph::IsVisible(), n, and nPos.
void ParagraphList::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 248 of file paralist.cxx.
References maEntries.
void ParagraphList::Expand | ( | Paragraph const * | pParent | ) |
Definition at line 203 of file paralist.cxx.
References aVisibleStateChangedHdl, Paragraph::bVisible, Link< typename Arg, typename Ret >::Call(), GetAbsPos(), GetChildCount(), GetParagraph(), Paragraph::IsVisible(), n, and nPos.
sal_Int32 ParagraphList::GetAbsPos | ( | Paragraph const * | pParent | ) | const |
Definition at line 235 of file paralist.cxx.
References EE_PARA_NOT_FOUND, maEntries, and pos.
Referenced by Collapse(), Expand(), GetChildCount(), GetParent(), HasChildren(), HasHiddenChildren(), and HasVisibleChildren().
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().
|
inline |
Definition at line 51 of file paralist.hxx.
References maEntries, o3tl::make_unsigned(), and nPos.
Referenced by Collapse(), Expand(), GetChildCount(), GetParent(), HasChildren(), HasHiddenChildren(), and HasVisibleChildren().
|
inline |
Definition at line 40 of file paralist.hxx.
References maEntries, SAL_MAX_INT32, and SAL_WARN.
Definition at line 191 of file paralist.cxx.
References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), and n.
bool ParagraphList::HasChildren | ( | Paragraph const * | pParagraph | ) | const |
Definition at line 157 of file paralist.cxx.
References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), and n.
bool ParagraphList::HasHiddenChildren | ( | Paragraph const * | pParagraph | ) | const |
Definition at line 164 of file paralist.cxx.
References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), Paragraph::IsVisible(), and n.
bool ParagraphList::HasVisibleChildren | ( | Paragraph const * | pParagraph | ) | const |
Definition at line 171 of file paralist.cxx.
References GetAbsPos(), Paragraph::GetDepth(), GetParagraph(), Paragraph::IsVisible(), and n.
void ParagraphList::Insert | ( | std::unique_ptr< Paragraph > | pPara, |
sal_Int32 | nAbsPos | ||
) |
Definition at line 104 of file paralist.cxx.
References Append(), EE_PARA_APPEND, EE_PARA_MAX_COUNT, maEntries, o3tl::make_unsigned(), and SAL_WARN_IF.
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().
void ParagraphList::Remove | ( | sal_Int32 | nPara | ) |
Definition at line 116 of file paralist.cxx.
References maEntries, o3tl::make_unsigned(), and SAL_WARN.
Definition at line 72 of file paralist.hxx.
References aVisibleStateChangedHdl.
Definition at line 78 of file paralist.hxx.
Referenced by Collapse(), Expand(), and SetVisibleStateChangedHdl().
|
private |
Definition at line 79 of file paralist.hxx.
Referenced by Append(), Clear(), dumpAsXml(), GetAbsPos(), GetParagraph(), GetParagraphCount(), Insert(), MoveParagraphs(), and Remove().