LibreOffice Module editeng (master) 1
|
#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 TextPortion & | operator[] (sal_Int32 nPos) const |
TextPortion & | operator[] (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 |
Definition at line 453 of file editdoc.hxx.
|
private |
Definition at line 455 of file editdoc.hxx.
TextPortionList::TextPortionList | ( | ) |
Definition at line 370 of file editdoc.cxx.
TextPortionList::~TextPortionList | ( | ) |
Definition at line 374 of file editdoc.cxx.
References Reset().
void TextPortionList::Append | ( | TextPortion * | p | ) |
Definition at line 407 of file editdoc.cxx.
References maPortions, and p.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), ImpEditEngine::CreateTextObject(), ImpEditEngine::CreateTextPortions(), and ImpEditEngine::InsertTextObject().
sal_Int32 TextPortionList::Count | ( | ) | const |
Definition at line 392 of file editdoc.cxx.
References maPortions.
Referenced by EditLine::CalcTextSize(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), ImpEditEngine::CreateTextObject(), ImpEditEngine::CreateTextPortions(), ParaPortion::DbgCheckTextPortions(), EditEngine::DumpData(), ImpEditEngine::FinishCreateLines(), EditEngine::GetPortions(), ImpEditEngine::InsertTextObject(), ParaPortion::IsEmpty(), ImpEditEngine::Paint(), ImpEditEngine::RecalcTextPortion(), EditEngine::ShouldCreateBigTextObject(), ImpEditEngine::SplitTextPortion(), and ImpEditEngine::WriteRTF().
void TextPortionList::DeleteFromPortion | ( | sal_Int32 | nDelFrom | ) |
Definition at line 384 of file editdoc.cxx.
References maPortions.
Referenced by ImpEditEngine::CreateTextPortions().
sal_Int32 TextPortionList::FindPortion | ( | sal_Int32 | nCharPos, |
sal_Int32 & | rPortionStart, | ||
bool | bPreferStartingPortion = false |
||
) | const |
Definition at line 448 of file editdoc.cxx.
References TextPortion::GetLen(), i, maPortions, and n.
Referenced by ImpEditEngine::CursorVisualLeftRight(), ImpEditEngine::CursorVisualStartEnd(), ImpEditEngine::ImpAdjustBlocks(), ImpEditView::ImplGetEditCursor(), ImpEditView::ShowCursor(), and ImpEditEngine::WriteRTF().
sal_Int32 TextPortionList::GetPos | ( | const TextPortion * | p | ) | const |
Definition at line 437 of file editdoc.cxx.
References maPortions, and p.
Referenced by ImpEditEngine::ImplExpandCompressedPortions().
sal_Int32 TextPortionList::GetStartPos | ( | sal_Int32 | nPortion | ) |
Definition at line 472 of file editdoc.cxx.
References TextPortion::GetLen(), i, maPortions, and nPos.
Referenced by ImpEditEngine::ImplExpandCompressedPortions(), and ImpEditEngine::SplitTextPortion().
void TextPortionList::Insert | ( | sal_Int32 | nPos, |
TextPortion * | p | ||
) |
Definition at line 412 of file editdoc.cxx.
References maPortions, nPos, and p.
Referenced by ImpEditEngine::ImpBreakLine(), ImpEditEngine::RecalcTextPortion(), and ImpEditEngine::SplitTextPortion().
TextPortion & TextPortionList::operator[] | ( | sal_Int32 | nPos | ) |
Definition at line 402 of file editdoc.cxx.
References maPortions, and nPos.
const TextPortion & TextPortionList::operator[] | ( | sal_Int32 | nPos | ) | const |
Definition at line 397 of file editdoc.cxx.
References maPortions, and nPos.
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().
void TextPortionList::Reset | ( | void | ) |
Definition at line 379 of file editdoc.cxx.
References maPortions.
Referenced by ImpEditEngine::CreateLines(), ImpEditEngine::InsertTextObject(), and ~TextPortionList().
|
private |
Definition at line 456 of file editdoc.hxx.
Referenced by Append(), Count(), DeleteFromPortion(), FindPortion(), GetPos(), GetStartPos(), Insert(), operator[](), Remove(), and Reset().