LibreOffice Module editeng (master) 1
|
#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 ParaPortion * | SafeGetObject (sal_Int32 nPos) const |
ParaPortion * | SafeGetObject (sal_Int32 nPos) |
sal_Int32 | GetPos (const ParaPortion *p) const |
ParaPortion * | operator[] (sal_Int32 nPos) |
const ParaPortion * | operator[] (sal_Int32 nPos) const |
std::unique_ptr< ParaPortion > | Release (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 |
Definition at line 660 of file editdoc.hxx.
ParaPortionList::ParaPortionList | ( | ) |
Definition at line 681 of file editdoc.cxx.
ParaPortionList::~ParaPortionList | ( | ) |
Definition at line 685 of file editdoc.cxx.
void ParaPortionList::Append | ( | std::unique_ptr< ParaPortion > | p | ) |
Definition at line 736 of file editdoc.cxx.
References maPortions, and p.
Referenced by ImpEditEngine::ImpMoveParagraphs().
sal_Int32 ParaPortionList::Count | ( | ) | const |
Definition at line 741 of file editdoc.cxx.
References maPortions, SAL_MAX_INT32, and SAL_WARN.
Referenced by ImpEditEngine::CalcTextWidth(), ImpEditEngine::CalcVertLineSpacing(), ImpEditEngine::CheckAutoPageSize(), ImpEditEngine::CheckPageOverflow(), DbgCheck(), ImpEditEngine::FormatAndLayout(), ImpEditEngine::FormatDoc(), ImpEditEngine::FormatFullDoc(), ImpEditEngine::ImpConnectParagraphs(), ImpEditEngine::ImplUpdateOverflowingParaNum(), ImpEditEngine::ImpMoveParagraphs(), ImpEditEngine::MoveParagraphs(), ImpEditEngine::Paint(), ImpEditEngine::SetTextRanger(), and ImpEditEngine::UpdateSelections().
|
static |
Definition at line 795 of file editdoc.cxx.
References Count(), EditDoc::Count(), ParaPortion::GetNode(), EditDoc::GetObject(), i, and SafeGetObject().
Referenced by ImpEditEngine::ImpMoveParagraphs().
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.
sal_Int32 ParaPortionList::GetPos | ( | const ParaPortion * | p | ) | const |
Definition at line 689 of file editdoc.cxx.
References maPortions, nLastCache, and p.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::GetNextVisPortion(), ImpEditEngine::GetPrevVisPortion(), and ImpEditEngine::ImpMoveParagraphs().
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().
void ParaPortionList::Insert | ( | sal_Int32 | nPos, |
std::unique_ptr< ParaPortion > | p | ||
) |
Definition at line 726 of file editdoc.cxx.
References o3tl::make_unsigned(), maPortions, nPos, p, and SAL_WARN.
Referenced by ImpEditEngine::ImpMoveParagraphs(), ImpEditEngine::InitDoc(), and ImpEditEngine::InsertContent().
ParaPortion * ParaPortionList::operator[] | ( | sal_Int32 | nPos | ) |
Definition at line 694 of file editdoc.cxx.
References o3tl::make_unsigned(), maPortions, and nPos.
const ParaPortion * ParaPortionList::operator[] | ( | sal_Int32 | nPos | ) | const |
Definition at line 699 of file editdoc.cxx.
References o3tl::make_unsigned(), maPortions, and nPos.
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().
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().
void ParaPortionList::Reset | ( | void | ) |
Definition at line 752 of file editdoc.cxx.
References maPortions.
Referenced by ImpEditEngine::InitDoc().
ParaPortion * ParaPortionList::SafeGetObject | ( | sal_Int32 | nPos | ) |
Definition at line 788 of file editdoc.cxx.
References o3tl::make_unsigned(), maPortions, and nPos.
const ParaPortion * ParaPortionList::SafeGetObject | ( | sal_Int32 | nPos | ) | const |
Definition at line 783 of file editdoc.cxx.
References o3tl::make_unsigned(), maPortions, and nPos.
Referenced by ImpEditEngine::Command(), ImpEditEngine::CursorEndOfDoc(), ImpEditEngine::CursorVisualLeftRight(), ImpEditEngine::CursorVisualStartEnd(), DbgCheck(), ImpEditView::dragOver(), ImpEditEngine::GetI18NScriptType(), ImpEditEngine::GetItemScriptType(), ImpEditEngine::GetLineBoundaries(), ImpEditEngine::GetLineCount(), ImpEditEngine::GetLineHeight(), ImpEditEngine::GetLineLen(), ImpEditEngine::GetNextVisPortion(), ImpEditEngine::GetParaHeight(), ImpEditEngine::GetRightToLeft(), ImpEditEngine::HasDifferentRTLLevels(), ImpEditEngine::HasScriptType(), ImpEditEngine::ImpMoveParagraphs(), ImpEditEngine::InitScriptTypes(), ImpEditEngine::InitWritingDirections(), ImpEditEngine::IsScriptChange(), ImpEditEngine::MoveParagraphs(), ImpEditEngine::ParaAttribsChanged(), and ImpEditEngine::ShowParagraph().
|
private |
Definition at line 663 of file editdoc.hxx.
Referenced by Append(), Count(), FindParagraph(), GetPos(), GetYOffset(), Insert(), operator[](), Release(), Remove(), Reset(), and SafeGetObject().
|
mutableprivate |
Definition at line 662 of file editdoc.hxx.
Referenced by GetPos().