LibreOffice Module vcl (master) 1
|
#include <textdoc.hxx>
Public Member Functions | |
TextNode (OUString aText) | |
TextNode (const TextNode &)=delete | |
void | operator= (const TextNode &)=delete |
const OUString & | GetText () const |
const TextCharAttrib & | GetCharAttrib (sal_uInt16 nPos) const |
const TextCharAttribList & | GetCharAttribs () const |
TextCharAttribList & | GetCharAttribs () |
void | InsertText (sal_Int32 nPos, std::u16string_view rText) |
void | InsertText (sal_Int32 nPos, sal_Unicode c) |
void | RemoveText (sal_Int32 nPos, sal_Int32 nChars) |
std::unique_ptr< TextNode > | Split (sal_Int32 nPos) |
void | Append (const TextNode &rNode) |
Private Member Functions | |
void | ExpandAttribs (sal_Int32 nIndex, sal_Int32 nNewChars) |
void | CollapseAttribs (sal_Int32 nIndex, sal_Int32 nDelChars) |
Private Attributes | |
OUString | maText |
TextCharAttribList | maCharAttribs |
Definition at line 65 of file textdoc.hxx.
TextNode::TextNode | ( | OUString | aText | ) |
|
delete |
void TextNode::Append | ( | const TextNode & | rNode | ) |
Definition at line 340 of file textdoc.cxx.
References TextCharAttribList::Count(), TextCharAttrib::GetAttr(), TextCharAttribList::GetAttrib(), GetCharAttrib(), GetCharAttribs(), TextCharAttrib::GetEnd(), TextCharAttrib::GetLen(), TextCharAttrib::GetStart(), GetText(), TextCharAttribList::InsertAttrib(), maCharAttribs, maText, TextCharAttrib::SetEnd(), and TextCharAttrib::Which().
Referenced by TextDoc::ConnectParagraphs().
|
private |
Definition at line 205 of file textdoc.cxx.
References TextCharAttrib::Collaps(), TextCharAttribList::Count(), TextCharAttribList::GetAttrib(), TextCharAttrib::GetEnd(), TextCharAttrib::GetStart(), TextCharAttribList::HasEmptyAttribs(), TextCharAttrib::IsEmpty(), maCharAttribs, maText, TextCharAttrib::MoveBackward(), nIndex, TextCharAttribList::RemoveAttrib(), TextCharAttribList::ResortAttribs(), SAL_WARN_IF, TextCharAttrib::SetEnd(), and TextCharAttrib::SetStart().
Referenced by RemoveText().
|
private |
Definition at line 141 of file textdoc.cxx.
References TextCharAttribList::Count(), TextCharAttrib::Expand(), TextCharAttribList::FindEmptyAttrib(), TextCharAttribList::GetAttrib(), TextCharAttrib::GetEnd(), TextCharAttrib::GetStart(), TextCharAttrib::IsEmpty(), maCharAttribs, maText, TextCharAttrib::MoveForward(), nIndex, TextCharAttribList::ResortAttribs(), SAL_WARN_IF, and TextCharAttrib::Which().
Referenced by InsertText().
|
inline |
Definition at line 81 of file textdoc.hxx.
References TextCharAttribList::GetAttrib(), maCharAttribs, and nPos.
Referenced by Append().
|
inline |
Definition at line 83 of file textdoc.hxx.
References maCharAttribs.
|
inline |
Definition at line 82 of file textdoc.hxx.
References maCharAttribs.
Referenced by Append(), TextEngine::CreateTextPortions(), TextEngine::CursorMoved(), TextEngine::FindCharAttrib(), TextEngine::ImpRemoveChars(), TextEngine::RecalcTextPortion(), TextEngine::RemoveAttribs(), TextEngine::SeekCursor(), and TextEngine::SetAttrib().
|
inline |
Definition at line 79 of file textdoc.hxx.
References maText.
Referenced by Append(), TextEngine::CalcTextWidth(), TextView::Command(), TextDoc::ConnectParagraphs(), TextEngine::CreateAndInsertEmptyLine(), TextEngine::CreateLines(), TextEngine::CreateTextPortions(), TextView::CursorDown(), TextView::CursorEndOfDoc(), TextView::CursorEndOfLine(), TextView::CursorEndOfParagraph(), TextView::CursorFirstWord(), TextView::CursorLeft(), TextEngine::CursorMoved(), TextView::CursorRight(), TextView::CursorWordLeft(), TextView::CursorWordRight(), TextEngine::FindCharAttrib(), TextEngine::GetCharPos(), TextEngine::GetPaM(), TextDoc::GetText(), TextEngine::GetText(), TextDoc::GetTextLen(), TextEngine::GetTextLines(), TextEngine::GetWord(), TextEngine::ImpBreakLine(), TextEngine::ImpConnectParagraphs(), TextView::ImpDelete(), TextEngine::ImpDeleteText(), TextEngine::ImpFindIndex(), TextEngine::ImpGetRightToLeft(), TextEngine::ImpInitWritingDirections(), TextEngine::ImpInsertParaBreak(), TextEngine::ImpInsertText(), TextEngine::ImpPaint(), TextEngine::ImpRemoveChars(), TextView::ImpShowCursor(), TextDoc::IsValidPaM(), TextView::KeyInput(), TextEngine::Read(), TextEngine::RecalcTextPortion(), TextUndoDelPara::Redo(), TextEngine::SeekCursor(), TextEngine::SetAttrib(), TextEngine::SplitContent(), TextUndoDelPara::Undo(), and TextEngine::Write().
void TextNode::InsertText | ( | sal_Int32 | nPos, |
sal_Unicode | c | ||
) |
Definition at line 273 of file textdoc.cxx.
References ExpandAttribs(), maText, and nPos.
void TextNode::InsertText | ( | sal_Int32 | nPos, |
std::u16string_view | rText | ||
) |
Definition at line 267 of file textdoc.cxx.
References ExpandAttribs(), maText, and nPos.
Referenced by TextDoc::InsertText().
|
delete |
void TextNode::RemoveText | ( | sal_Int32 | nPos, |
sal_Int32 | nChars | ||
) |
Definition at line 279 of file textdoc.cxx.
References CollapseAttribs(), maText, nPos, and u.
Referenced by TextDoc::RemoveChars().
std::unique_ptr< TextNode > TextNode::Split | ( | sal_Int32 | nPos | ) |
Definition at line 285 of file textdoc.cxx.
References TextCharAttribList::Count(), TextCharAttribList::GetAttrib(), TextCharAttrib::GetEnd(), TextCharAttrib::GetStart(), TextCharAttrib::IsInside(), maCharAttribs, maText, nPos, TextCharAttribList::RemoveAttrib(), SAL_WARN_IF, TextCharAttrib::SetEnd(), TextCharAttrib::SetStart(), TextNode(), and TextCharAttrib::Which().
Referenced by TextDoc::InsertParaBreak().
|
private |
Definition at line 68 of file textdoc.hxx.
Referenced by Append(), CollapseAttribs(), ExpandAttribs(), GetCharAttrib(), GetCharAttribs(), and Split().
|
private |
Definition at line 67 of file textdoc.hxx.
Referenced by Append(), CollapseAttribs(), ExpandAttribs(), GetText(), InsertText(), RemoveText(), and Split().