LibreOffice Module vcl (master) 1
|
#include <textdoc.hxx>
Public Member Functions | |
TextDoc () | |
~TextDoc () | |
void | Clear () |
std::vector< std::unique_ptr< TextNode > > & | GetNodes () |
const std::vector< std::unique_ptr< TextNode > > & | GetNodes () const |
void | RemoveChars (const TextPaM &rPaM, sal_Int32 nChars) |
TextPaM | InsertText (const TextPaM &rPaM, sal_Unicode c) |
TextPaM | InsertText (const TextPaM &rPaM, std::u16string_view rStr) |
TextPaM | InsertParaBreak (const TextPaM &rPaM) |
TextPaM | ConnectParagraphs (TextNode *pLeft, const TextNode *pRight) |
sal_Int32 | GetTextLen (const sal_Unicode *pSep, const TextSelection *pSel=nullptr) const |
OUString | GetText (const sal_Unicode *pSep) const |
OUString | GetText (sal_uInt32 nPara) const |
void | SetLeftMargin (sal_uInt16 n) |
sal_uInt16 | GetLeftMargin () const |
bool | IsValidPaM (const TextPaM &rPaM) |
Private Member Functions | |
void | DestroyTextNodes () |
Private Attributes | |
std::vector< std::unique_ptr< TextNode > > | maTextNodes |
sal_uInt16 | mnLeftMargin |
Definition at line 93 of file textdoc.hxx.
TextDoc::TextDoc | ( | ) |
Definition at line 382 of file textdoc.cxx.
TextDoc::~TextDoc | ( | ) |
Definition at line 387 of file textdoc.cxx.
References DestroyTextNodes().
void TextDoc::Clear | ( | ) |
Definition at line 392 of file textdoc.cxx.
References DestroyTextNodes().
Definition at line 499 of file textdoc.cxx.
References TextNode::Append(), TextNode::GetText(), maTextNodes, and p.
|
private |
Definition at line 397 of file textdoc.cxx.
References maTextNodes.
Referenced by Clear(), and ~TextDoc().
|
inline |
Definition at line 121 of file textdoc.hxx.
References mnLeftMargin.
|
inline |
Definition at line 106 of file textdoc.hxx.
References maTextNodes.
Referenced by TextUndoDelPara::Redo().
|
inline |
Definition at line 107 of file textdoc.hxx.
References maTextNodes.
OUString TextDoc::GetText | ( | const sal_Unicode * | pSep | ) | const |
Definition at line 402 of file textdoc.cxx.
References TextNode::GetText(), and maTextNodes.
OUString TextDoc::GetText | ( | sal_uInt32 | nPara | ) | const |
Definition at line 419 of file textdoc.cxx.
References get(), TextNode::GetText(), and maTextNodes.
sal_Int32 TextDoc::GetTextLen | ( | const sal_Unicode * | pSep, |
const TextSelection * | pSel = nullptr |
||
) | const |
Definition at line 428 of file textdoc.cxx.
References TextSelection::GetEnd(), TextPaM::GetIndex(), TextPaM::GetPara(), TextSelection::GetStart(), TextNode::GetText(), and maTextNodes.
Definition at line 487 of file textdoc.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), maTextNodes, SAL_MAX_UINT32, SAL_WARN_IF, and TextNode::Split().
TextPaM TextDoc::InsertText | ( | const TextPaM & | rPaM, |
sal_Unicode | c | ||
) |
Definition at line 463 of file textdoc.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::InsertText(), maTextNodes, and SAL_WARN_IF.
Definition at line 475 of file textdoc.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::InsertText(), maTextNodes, and SAL_WARN_IF.
bool TextDoc::IsValidPaM | ( | const TextPaM & | rPaM | ) |
Definition at line 521 of file textdoc.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), TextNode::GetText(), and maTextNodes.
void TextDoc::RemoveChars | ( | const TextPaM & | rPaM, |
sal_Int32 | nChars | ||
) |
Definition at line 515 of file textdoc.cxx.
References TextPaM::GetIndex(), TextPaM::GetPara(), maTextNodes, and TextNode::RemoveText().
|
inline |
Definition at line 120 of file textdoc.hxx.
References mnLeftMargin, and n.
|
private |
Definition at line 95 of file textdoc.hxx.
Referenced by ConnectParagraphs(), DestroyTextNodes(), GetNodes(), GetText(), GetTextLen(), InsertParaBreak(), InsertText(), IsValidPaM(), and RemoveChars().
|
private |
Definition at line 96 of file textdoc.hxx.
Referenced by GetLeftMargin(), and SetLeftMargin().