LibreOffice Module editeng (master) 1
|
#include <editdoc.hxx>
Public Types | |
typedef std::vector< sal_Int32 > | CharPosArrayType |
Public Member Functions | |
EditLine () | |
EditLine (const EditLine &) | |
~EditLine () | |
bool | IsIn (sal_Int32 nIndex) const |
bool | IsIn (sal_Int32 nIndex, bool bInclEnd) const |
void | SetStart (sal_Int32 n) |
sal_Int32 | GetStart () const |
sal_Int32 & | GetStart () |
void | SetEnd (sal_Int32 n) |
sal_Int32 | GetEnd () const |
sal_Int32 & | GetEnd () |
void | SetStartPortion (sal_Int32 n) |
sal_Int32 | GetStartPortion () const |
sal_Int32 & | GetStartPortion () |
void | SetEndPortion (sal_Int32 n) |
sal_Int32 | GetEndPortion () const |
sal_Int32 & | GetEndPortion () |
void | SetHeight (sal_uInt16 nH, sal_uInt16 nTxtH=0) |
sal_uInt16 | GetHeight () const |
sal_uInt16 | GetTxtHeight () const |
void | SetTextWidth (sal_Int32 n) |
sal_Int32 | GetTextWidth () const |
void | SetMaxAscent (sal_uInt16 n) |
sal_uInt16 | GetMaxAscent () const |
void | SetHangingPunctuation (bool b) |
bool | IsHangingPunctuation () const |
sal_Int32 | GetLen () const |
sal_Int32 | GetStartPosX () const |
void | SetStartPosX (sal_Int32 start) |
Size | CalcTextSize (ParaPortion &rParaPortion) |
bool | IsInvalid () const |
bool | IsValid () const |
void | SetInvalid () |
void | SetValid () |
bool | IsEmpty () const |
CharPosArrayType & | GetCharPosArray () |
const CharPosArrayType & | GetCharPosArray () const |
std::vector< sal_Bool > & | GetKashidaArray () |
const std::vector< sal_Bool > & | GetKashidaArray () const |
EditLine * | Clone () const |
EditLine & | operator= (const EditLine &rLine) |
Private Attributes | |
CharPosArrayType | aPositions |
std::vector< sal_Bool > | aKashidaPositions |
sal_Int32 | nTxtWidth |
sal_Int32 | nStartPosX |
sal_Int32 | nStart |
sal_Int32 | nEnd |
sal_Int32 | nStartPortion |
sal_Int32 | nEndPortion |
sal_uInt16 | nHeight |
sal_uInt16 | nTxtHeight |
sal_uInt16 | nMaxAscent |
bool | bHangingPunctuation:1 |
bool | bInvalid:1 |
Friends | |
bool | operator== (const EditLine &r1, const EditLine &r2) |
Definition at line 481 of file editdoc.hxx.
typedef std::vector<sal_Int32> EditLine::CharPosArrayType |
Definition at line 484 of file editdoc.hxx.
EditLine::EditLine | ( | ) |
Definition at line 925 of file editdoc.cxx.
Referenced by Clone().
EditLine::EditLine | ( | const EditLine & | r | ) |
Definition at line 941 of file editdoc.cxx.
EditLine::~EditLine | ( | ) |
Definition at line 956 of file editdoc.cxx.
Size EditLine::CalcTextSize | ( | ParaPortion & | rParaPortion | ) |
Definition at line 1019 of file editdoc.cxx.
References Size::AdjustWidth(), TextPortionList::Count(), DBG_ASSERT, FIELD, TextPortion::GetKind(), TextPortion::GetSize(), ParaPortion::GetTextPortions(), Size::Height(), HYPHENATOR, LINEBREAK, n, nEndPortion, nStartPortion, SetHeight(), Size::setHeight(), TAB, TEXT, and Size::Width().
Referenced by ImpEditEngine::CreateLines().
EditLine * EditLine::Clone | ( | ) | const |
Definition at line 961 of file editdoc.cxx.
References aPositions, EditLine(), nEnd, nEndPortion, nHeight, nMaxAscent, nStart, nStartPortion, nStartPosX, nTxtHeight, and nTxtWidth.
Referenced by ImpEditEngine::CreateTextObject(), and ImpEditEngine::InsertTextObject().
|
inline |
Definition at line 554 of file editdoc.hxx.
References aPositions.
Referenced by ImpEditEngine::CreateLines(), ImpEditEngine::GetChar(), ImpEditEngine::ImpAdjustBlocks(), ImpEditEngine::ImpBreakLine(), ImpEditEngine::ImplExpandCompressedPortions(), ImpEditEngine::Paint(), and ImpEditEngine::SplitTextPortion().
|
inline |
Definition at line 555 of file editdoc.hxx.
References aPositions.
|
inline |
Definition at line 518 of file editdoc.hxx.
References nEnd.
|
inline |
Definition at line 517 of file editdoc.hxx.
References nEnd.
Referenced by ImpEditEngine::Command(), ParaPortion::CorrectValuesBehindLastFormattedLine(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), ImpEditEngine::CursorDown(), ImpEditEngine::CursorEndOfLine(), ImpEditEngine::CursorVisualLeftRight(), ImpEditEngine::CursorVisualStartEnd(), EditEngine::DumpData(), EditLineList::FindLine(), ImpEditEngine::GetLineBoundaries(), and ImpEditEngine::ImpAdjustBlocks().
|
inline |
Definition at line 526 of file editdoc.hxx.
References nEndPortion.
|
inline |
Definition at line 525 of file editdoc.hxx.
References nEndPortion.
Referenced by ParaPortion::CorrectValuesBehindLastFormattedLine(), ImpEditEngine::CreateLines(), EditEngine::DumpData(), ImpEditEngine::ImplExpandCompressedPortions(), and ImpEditEngine::Paint().
|
inline |
Definition at line 529 of file editdoc.hxx.
References nHeight.
Referenced by ImpEditEngine::CalcVertLineSpacing(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), EditEngine::DumpData(), ImpEditEngine::GetLineHeight(), EditEngine::GetParagraphInfos(), ImpEditEngine::ImplUpdateOverflowingLineNum(), and ImpEditEngine::Paint().
|
inline |
Definition at line 557 of file editdoc.hxx.
References aKashidaPositions.
Referenced by ImpEditEngine::ImpAdjustBlocks(), and ImpEditEngine::Paint().
|
inline |
Definition at line 558 of file editdoc.hxx.
References aKashidaPositions.
|
inline |
Definition at line 541 of file editdoc.hxx.
Referenced by ImpEditEngine::CreateLines(), and ImpEditEngine::GetLineLen().
|
inline |
Definition at line 536 of file editdoc.hxx.
References nMaxAscent.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), EditEngine::DumpData(), EditEngine::GetParagraphInfos(), and ImpEditEngine::Paint().
|
inline |
Definition at line 514 of file editdoc.hxx.
References nStart.
|
inline |
Definition at line 513 of file editdoc.hxx.
References nStart.
Referenced by ImpEditEngine::CalcLineWidth(), ParaPortion::CorrectValuesBehindLastFormattedLine(), ImpEditEngine::CreateLines(), ImpEditEngine::CursorDown(), ImpEditEngine::CursorEndOfLine(), ImpEditEngine::CursorStartOfLine(), ImpEditEngine::CursorUp(), ImpEditEngine::CursorVisualLeftRight(), ImpEditEngine::CursorVisualStartEnd(), EditEngine::DumpData(), ImpEditEngine::GetChar(), ImpEditEngine::GetLineBoundaries(), ImpEditEngine::ImpAdjustBlocks(), ImpEditEngine::ImpBreakLine(), ImpEditEngine::ImplExpandCompressedPortions(), ImpEditEngine::Paint(), and ImpEditEngine::SplitTextPortion().
|
inline |
Definition at line 522 of file editdoc.hxx.
References nStartPortion.
|
inline |
Definition at line 521 of file editdoc.hxx.
References nStartPortion.
Referenced by ImpEditEngine::CalcLineWidth(), ParaPortion::CorrectValuesBehindLastFormattedLine(), ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), EditEngine::DumpData(), ImpEditEngine::GetChar(), ImpEditEngine::ImplExpandCompressedPortions(), and ImpEditEngine::Paint().
|
inline |
Definition at line 543 of file editdoc.hxx.
References nStartPosX.
Referenced by ImpEditEngine::CreateLines(), EditEngine::GetDocPosTopLeft(), EditEngine::GetFirstLineStartX(), and ImpEditEngine::Paint().
|
inline |
Definition at line 533 of file editdoc.hxx.
References nTxtWidth.
Referenced by ImpEditEngine::ImpAdjustBlocks().
|
inline |
Definition at line 530 of file editdoc.hxx.
References nTxtHeight.
Referenced by ImpEditEngine::CreateLines(), and EditEngine::GetParagraphInfos().
|
inline |
Definition at line 552 of file editdoc.hxx.
Referenced by ImpEditEngine::ImpAdjustBlocks().
|
inline |
Definition at line 539 of file editdoc.hxx.
References bHangingPunctuation.
Referenced by ImpEditEngine::CreateLines().
|
inline |
Definition at line 506 of file editdoc.hxx.
|
inline |
Definition at line 509 of file editdoc.hxx.
|
inline |
Definition at line 547 of file editdoc.hxx.
References bInvalid.
|
inline |
Definition at line 548 of file editdoc.hxx.
References bInvalid.
Definition at line 995 of file editdoc.cxx.
References nEnd, nEndPortion, nStart, and nStartPortion.
|
inline |
Definition at line 516 of file editdoc.hxx.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), and ImpEditEngine::ImpBreakLine().
|
inline |
Definition at line 524 of file editdoc.hxx.
References n, and nEndPortion.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), ImpEditEngine::CreateLines(), and ImpEditEngine::ImpBreakLine().
|
inline |
Definition at line 538 of file editdoc.hxx.
References bHangingPunctuation.
Referenced by ImpEditEngine::ImpBreakLine().
void EditLine::SetHeight | ( | sal_uInt16 | nH, |
sal_uInt16 | nTxtH = 0 |
||
) |
Definition at line 1005 of file editdoc.cxx.
References nHeight, and nTxtHeight.
Referenced by CalcTextSize(), ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().
|
inline |
Definition at line 549 of file editdoc.hxx.
References bInvalid.
Referenced by ImpEditEngine::CreateLines(), and ImpEditEngine::InsertTextObject().
|
inline |
Definition at line 535 of file editdoc.hxx.
References n, and nMaxAscent.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().
|
inline |
Definition at line 512 of file editdoc.hxx.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().
|
inline |
Definition at line 520 of file editdoc.hxx.
References n, and nStartPortion.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().
void EditLine::SetStartPosX | ( | sal_Int32 | start | ) |
Definition at line 1011 of file editdoc.cxx.
References nStartPosX, and start.
Referenced by ImpEditEngine::CreateAndInsertEmptyLine(), and ImpEditEngine::CreateLines().
|
inline |
Definition at line 532 of file editdoc.hxx.
Referenced by ImpEditEngine::CreateLines(), and ImpEditEngine::ImpAdjustBlocks().
|
inline |
Definition at line 550 of file editdoc.hxx.
References bInvalid.
Referenced by ParaPortion::CorrectValuesBehindLastFormattedLine(), and ImpEditEngine::CreateLines().
Definition at line 978 of file editdoc.cxx.
|
private |
Definition at line 488 of file editdoc.hxx.
Referenced by GetKashidaArray().
|
private |
Definition at line 487 of file editdoc.hxx.
Referenced by Clone(), and GetCharPosArray().
|
private |
Definition at line 498 of file editdoc.hxx.
Referenced by IsHangingPunctuation(), and SetHangingPunctuation().
|
private |
Definition at line 499 of file editdoc.hxx.
Referenced by IsInvalid(), IsValid(), SetInvalid(), and SetValid().
|
private |
Definition at line 492 of file editdoc.hxx.
Referenced by Clone(), GetEnd(), GetLen(), IsEmpty(), IsIn(), operator=(), and SetEnd().
|
private |
Definition at line 494 of file editdoc.hxx.
Referenced by CalcTextSize(), Clone(), GetEndPortion(), operator=(), and SetEndPortion().
|
private |
Definition at line 495 of file editdoc.hxx.
Referenced by Clone(), GetHeight(), and SetHeight().
|
private |
Definition at line 497 of file editdoc.hxx.
Referenced by Clone(), GetMaxAscent(), and SetMaxAscent().
|
private |
Definition at line 491 of file editdoc.hxx.
Referenced by Clone(), GetLen(), GetStart(), IsEmpty(), IsIn(), operator=(), and SetStart().
|
private |
Definition at line 493 of file editdoc.hxx.
Referenced by CalcTextSize(), Clone(), GetStartPortion(), operator=(), and SetStartPortion().
|
private |
Definition at line 490 of file editdoc.hxx.
Referenced by Clone(), GetStartPosX(), and SetStartPosX().
|
private |
Definition at line 496 of file editdoc.hxx.
Referenced by Clone(), GetTxtHeight(), and SetHeight().
|
private |
Definition at line 489 of file editdoc.hxx.
Referenced by Clone(), GetTextWidth(), and SetTextWidth().