LibreOffice Module editeng (master) 1
|
#include <editdoc.hxx>
Public Member Functions | |
ParaPortion (ContentNode *pNode) | |
~ParaPortion () | |
sal_Int32 | GetLineNumber (sal_Int32 nIndex) const |
EditLineList & | GetLines () |
const EditLineList & | GetLines () const |
bool | IsInvalid () const |
bool | IsSimpleInvalid () const |
void | SetValid () |
bool | MustRepaint () const |
void | SetMustRepaint (bool bRP) |
sal_Int32 | GetBulletX () const |
void | SetBulletX (sal_Int32 n) |
void | MarkInvalid (sal_Int32 nStart, sal_Int32 nDiff) |
void | MarkSelectionInvalid (sal_Int32 nStart) |
void | SetVisible (bool bVisible) |
bool | IsVisible () const |
bool | IsEmpty () |
tools::Long | GetHeight () const |
sal_Int32 | GetFirstLineOffset () const |
void | ResetHeight () |
ContentNode * | GetNode () const |
TextPortionList & | GetTextPortions () |
const TextPortionList & | GetTextPortions () const |
sal_Int32 | GetInvalidPosStart () const |
short | GetInvalidDiff () const |
void | CorrectValuesBehindLastFormattedLine (sal_Int32 nLastFormattedLine) |
Static Public Member Functions | |
static bool | DbgCheckTextPortions (ParaPortion const &) |
Private Member Functions | |
ParaPortion (const ParaPortion &)=delete | |
Private Attributes | |
EditLineList | aLineList |
TextPortionList | aTextPortionList |
ContentNode * | pNode |
tools::Long | nHeight |
ScriptTypePosInfos | aScriptInfos |
WritingDirectionInfos | aWritingDirectionInfos |
sal_Int32 | nInvalidPosStart |
sal_Int32 | nFirstLineOffset |
sal_Int32 | nBulletX |
sal_Int32 | nInvalidDiff |
bool | bInvalid: 1 |
bool | bSimple: 1 |
bool | bVisible: 1 |
bool | bForceRepaint: 1 |
Friends | |
class | ImpEditEngine |
Definition at line 590 of file editdoc.hxx.
|
privatedelete |
ParaPortion::ParaPortion | ( | ContentNode * | pNode | ) |
Definition at line 509 of file editdoc.cxx.
References bVisible, and nFirstLineOffset.
ParaPortion::~ParaPortion | ( | ) |
Definition at line 523 of file editdoc.cxx.
void ParaPortion::CorrectValuesBehindLastFormattedLine | ( | sal_Int32 | nLastFormattedLine | ) |
Definition at line 601 of file editdoc.cxx.
References aLineList, EditLineList::Count(), DBG_ASSERT, EditLine::GetEnd(), EditLine::GetEndPortion(), EditLine::GetStart(), EditLine::GetStartPortion(), ContentNode::Len(), pNode, and EditLine::SetValid().
Referenced by ImpEditEngine::CreateLines().
|
static |
Definition at line 506 of file editdbg.cxx.
References aTextPortionList, TextPortionList::Count(), ContentNode::Len(), and pNode.
Referenced by ImpEditEngine::CreateTextPortions(), and ImpEditEngine::RecalcTextPortion().
|
inline |
Definition at line 630 of file editdoc.hxx.
References nBulletX.
Referenced by ImpEditEngine::CalcParaWidth(), ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().
|
inline |
Definition at line 642 of file editdoc.hxx.
References bVisible, and nFirstLineOffset.
Referenced by ImpEditEngine::CalcVertLineSpacing(), ImpEditEngine::CreateTextObject(), ImpEditView::IsBulletArea(), and ImpEditEngine::Paint().
|
inline |
Definition at line 641 of file editdoc.hxx.
References bVisible, and nHeight.
Referenced by ImpEditEngine::CreateTextObject(), ImpEditView::dragOver(), ImpEditEngine::FinishCreateLines(), ImpEditEngine::FormatDoc(), ImpEditEngine::GetParaHeight(), ParaPortionList::GetYOffset(), ImpEditEngine::ImplUpdateOverflowingParaNum(), ImpEditEngine::MoveParagraphs(), ImpEditEngine::Paint(), EditEngine::SetControlWord(), and ImpEditEngine::ShowParagraph().
|
inline |
Definition at line 650 of file editdoc.hxx.
References nInvalidDiff.
Referenced by ImpEditEngine::CreateLines().
|
inline |
Definition at line 649 of file editdoc.hxx.
References nInvalidPosStart.
Referenced by ImpEditEngine::CreateLines().
sal_Int32 ParaPortion::GetLineNumber | ( | sal_Int32 | nIndex | ) | const |
Definition at line 580 of file editdoc.cxx.
References aLineList, bVisible, EditLineList::Count(), DBG_ASSERT, nIndex, and SAL_WARN_IF.
Referenced by ImpEditEngine::CursorDown(), ImpEditEngine::CursorEndOfLine(), ImpEditEngine::CursorStartOfLine(), and ImpEditEngine::CursorUp().
|
inline |
Definition at line 620 of file editdoc.hxx.
References aLineList.
Referenced by ImpEditEngine::CalcParaWidth(), ImpEditEngine::CalcVertLineSpacing(), ImpEditEngine::Command(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), ImpEditEngine::CreateTextObject(), ImpEditEngine::CursorDown(), ImpEditEngine::CursorEndOfLine(), ImpEditEngine::CursorStartOfLine(), ImpEditEngine::CursorUp(), ImpEditEngine::CursorVisualLeftRight(), ImpEditEngine::CursorVisualStartEnd(), EditEngine::DumpData(), ImpEditEngine::FormatDoc(), EditEngine::GetDocPosTopLeft(), EditEngine::GetFirstLineStartX(), ImpEditEngine::GetLineBoundaries(), ImpEditEngine::GetLineCount(), ImpEditEngine::GetLineHeight(), ImpEditEngine::GetLineLen(), EditEngine::GetParagraphInfos(), ImpEditEngine::ImpConnectParagraphs(), ImpEditEngine::ImplUpdateOverflowingLineNum(), ImpEditEngine::InsertTextObject(), ImpEditEngine::Paint(), and ImpEditEngine::SetTextRanger().
|
inline |
Definition at line 621 of file editdoc.hxx.
References aLineList.
|
inline |
Definition at line 645 of file editdoc.hxx.
References pNode.
Referenced by ImpEditEngine::CalcLineWidth(), ImpEditEngine::CalcParaWidth(), ImpEditEngine::CalcVertLineSpacing(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), ImpEditEngine::CreateTextObject(), ImpEditEngine::CreateTextPortions(), ImpEditEngine::CursorDown(), ImpEditEngine::CursorEndOfDoc(), ImpEditEngine::CursorUp(), ParaPortionList::DbgCheck(), EditEngine::DumpData(), EditEngine::GetDocPosTopLeft(), ImpEditEngine::GetItemScriptType(), ImpEditEngine::GetNextVisNode(), ImpEditEngine::GetPrevVisNode(), ImpEditEngine::ImpAdjustBlocks(), ImpEditEngine::ImpBreakLine(), ImpEditEngine::ImplExpandCompressedPortions(), ImpEditEngine::InitScriptTypes(), ImpEditEngine::InitWritingDirections(), ImpEditEngine::InsertTextObject(), ImpEditEngine::InvalidateFromParagraph(), ImpEditEngine::Paint(), ImpEditEngine::RecalcTextPortion(), EditView::SetSelection(), ImpEditEngine::ShowParagraph(), ImpEditEngine::SplitTextPortion(), and ImpEditEngine::UpdateSelections().
|
inline |
Definition at line 646 of file editdoc.hxx.
References aTextPortionList.
Referenced by ImpEditEngine::CalcLineWidth(), EditLine::CalcTextSize(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), ImpEditEngine::CreateTextObject(), ImpEditEngine::CreateTextPortions(), ImpEditEngine::CursorVisualLeftRight(), ImpEditEngine::CursorVisualStartEnd(), EditEngine::DumpData(), ImpEditEngine::FinishCreateLines(), ImpEditEngine::GetChar(), EditEngine::GetPortions(), ImpEditEngine::HasDifferentRTLLevels(), ImpEditEngine::ImpAdjustBlocks(), ImpEditEngine::ImpBreakLine(), ImpEditEngine::ImplExpandCompressedPortions(), ImpEditView::ImplGetEditCursor(), ImpEditEngine::InsertTextObject(), IsEmpty(), ImpEditEngine::Paint(), ImpEditEngine::RecalcTextPortion(), EditEngine::ShouldCreateBigTextObject(), ImpEditView::ShowCursor(), ImpEditEngine::SplitTextPortion(), and ImpEditEngine::WriteRTF().
|
inline |
Definition at line 647 of file editdoc.hxx.
References aTextPortionList.
|
inline |
Definition at line 639 of file editdoc.hxx.
References TextPortionList::Count(), and GetTextPortions().
|
inline |
Definition at line 623 of file editdoc.hxx.
References bInvalid.
Referenced by ImpEditEngine::CreateLines(), EditEngine::DumpData(), ImpEditEngine::FormatDoc(), ImpEditEngine::Paint(), ImpEditEngine::ParaAttribsChanged(), and ImpEditEngine::ShowParagraph().
|
inline |
Definition at line 624 of file editdoc.hxx.
References bSimple.
Referenced by ImpEditEngine::CreateLines().
|
inline |
Definition at line 637 of file editdoc.hxx.
References bVisible.
Referenced by ImpEditEngine::CalcParaWidth(), ImpEditEngine::CreateLines(), ImpEditEngine::CursorEndOfDoc(), ImpEditEngine::FormatDoc(), ImpEditEngine::GetNextVisPortion(), ImpEditEngine::GetPrevVisPortion(), ImpEditEngine::Paint(), EditView::SetSelection(), and ImpEditEngine::ShowParagraph().
void ParaPortion::MarkInvalid | ( | sal_Int32 | nStart, |
sal_Int32 | nDiff | ||
) |
Definition at line 527 of file editdoc.cxx.
References aScriptInfos, aWritingDirectionInfos, bInvalid, bSimple, DBG_ASSERT, nInvalidDiff, and nInvalidPosStart.
Referenced by ImpEditEngine::InsertTextObject(), and ImpEditEngine::InvalidateFromParagraph().
void ParaPortion::MarkSelectionInvalid | ( | sal_Int32 | nStart | ) |
Definition at line 563 of file editdoc.cxx.
References aScriptInfos, aWritingDirectionInfos, bInvalid, bSimple, nInvalidDiff, and nInvalidPosStart.
Referenced by ImpEditEngine::CheckAutoPageSize(), ImpEditEngine::Command(), ImpEditEngine::FormatDoc(), ImpEditEngine::ImpConnectParagraphs(), ImpEditEngine::InsertTextObject(), ImpEditEngine::InvalidateFromParagraph(), ImpEditEngine::ParaAttribsChanged(), EditEngine::QuickMarkInvalid(), ImpEditEngine::SetTextRanger(), and ImpEditEngine::TransliterateText().
|
inline |
Definition at line 627 of file editdoc.hxx.
References bForceRepaint.
Referenced by ImpEditEngine::FormatDoc().
|
inline |
Definition at line 643 of file editdoc.hxx.
References nFirstLineOffset, and nHeight.
Referenced by ImpEditEngine::InvalidateFromParagraph().
|
inline |
Definition at line 631 of file editdoc.hxx.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().
|
inline |
Definition at line 628 of file editdoc.hxx.
References bForceRepaint.
Referenced by ImpEditEngine::FormatDoc(), EditEngine::QuickMarkToBeRepainted(), and ImpEditEngine::ShowParagraph().
|
inline |
Definition at line 625 of file editdoc.hxx.
References bInvalid, and bSimple.
Referenced by ImpEditEngine::FinishCreateLines(), and ImpEditEngine::InsertTextObject().
void ParaPortion::SetVisible | ( | bool | bVisible | ) |
Definition at line 596 of file editdoc.cxx.
References bVisible.
Referenced by ImpEditEngine::ShowParagraph().
|
friend |
Definition at line 592 of file editdoc.hxx.
|
private |
Definition at line 594 of file editdoc.hxx.
Referenced by CorrectValuesBehindLastFormattedLine(), GetLineNumber(), and GetLines().
|
private |
Definition at line 599 of file editdoc.hxx.
Referenced by ImpEditEngine::CreateTextPortions(), ImpEditEngine::GetI18NScriptType(), ImpEditEngine::GetItemScriptType(), ImpEditEngine::HasScriptType(), ImpEditEngine::InitScriptTypes(), ImpEditEngine::IsScriptChange(), MarkInvalid(), and MarkSelectionInvalid().
|
private |
Definition at line 595 of file editdoc.hxx.
Referenced by DbgCheckTextPortions(), and GetTextPortions().
|
private |
Definition at line 600 of file editdoc.hxx.
Referenced by ImpEditEngine::CreateTextPortions(), ImpEditEngine::GetRightToLeft(), ImpEditEngine::InitScriptTypes(), ImpEditEngine::InitWritingDirections(), MarkInvalid(), and MarkSelectionInvalid().
|
private |
Definition at line 610 of file editdoc.hxx.
Referenced by ImpEditEngine::InsertTextObject(), MustRepaint(), and SetMustRepaint().
|
private |
Definition at line 607 of file editdoc.hxx.
Referenced by IsInvalid(), MarkInvalid(), MarkSelectionInvalid(), and SetValid().
|
private |
Definition at line 608 of file editdoc.hxx.
Referenced by IsSimpleInvalid(), MarkInvalid(), MarkSelectionInvalid(), and SetValid().
|
private |
Definition at line 609 of file editdoc.hxx.
Referenced by GetFirstLineOffset(), GetHeight(), GetLineNumber(), IsVisible(), and SetVisible().
|
private |
Definition at line 604 of file editdoc.hxx.
Referenced by GetBulletX(), and SetBulletX().
|
private |
Definition at line 603 of file editdoc.hxx.
Referenced by GetFirstLineOffset(), ImpEditEngine::InsertTextObject(), and ResetHeight().
|
private |
Definition at line 597 of file editdoc.hxx.
Referenced by GetHeight(), ImpEditEngine::InsertTextObject(), ResetHeight(), and ImpEditEngine::ShowParagraph().
|
private |
Definition at line 605 of file editdoc.hxx.
Referenced by GetInvalidDiff(), MarkInvalid(), and MarkSelectionInvalid().
|
private |
Definition at line 602 of file editdoc.hxx.
Referenced by GetInvalidPosStart(), MarkInvalid(), and MarkSelectionInvalid().
|
private |
Definition at line 596 of file editdoc.hxx.
Referenced by CorrectValuesBehindLastFormattedLine(), DbgCheckTextPortions(), and GetNode().