LibreOffice Module vcl (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
TextNode Class Reference

#include <textdoc.hxx>

Collaboration diagram for TextNode:
[legend]

Public Member Functions

 TextNode (OUString aText)
 
 TextNode (const TextNode &)=delete
 
void operator= (const TextNode &)=delete
 
const OUString & GetText () const
 
const TextCharAttribGetCharAttrib (sal_uInt16 nPos) const
 
const TextCharAttribListGetCharAttribs () const
 
TextCharAttribListGetCharAttribs ()
 
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< TextNodeSplit (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
 

Detailed Description

Definition at line 66 of file textdoc.hxx.

Constructor & Destructor Documentation

◆ TextNode() [1/2]

TextNode::TextNode ( OUString  aText)

Definition at line 136 of file textdoc.cxx.

References maText.

Referenced by Split().

◆ TextNode() [2/2]

TextNode::TextNode ( const TextNode )
delete

Member Function Documentation

◆ Append()

void TextNode::Append ( const TextNode rNode)

◆ CollapseAttribs()

void TextNode::CollapseAttribs ( sal_Int32  nIndex,
sal_Int32  nDelChars 
)
private

◆ ExpandAttribs()

void TextNode::ExpandAttribs ( sal_Int32  nIndex,
sal_Int32  nNewChars 
)
private

◆ GetCharAttrib()

const TextCharAttrib & TextNode::GetCharAttrib ( sal_uInt16  nPos) const
inline

Definition at line 82 of file textdoc.hxx.

References TextCharAttribList::GetAttrib(), maCharAttribs, and nPos.

Referenced by Append().

◆ GetCharAttribs() [1/2]

TextCharAttribList & TextNode::GetCharAttribs ( )
inline

Definition at line 84 of file textdoc.hxx.

References maCharAttribs.

◆ GetCharAttribs() [2/2]

const TextCharAttribList & TextNode::GetCharAttribs ( ) const
inline

◆ GetText()

const OUString & TextNode::GetText ( ) const
inline

◆ InsertText() [1/2]

void TextNode::InsertText ( sal_Int32  nPos,
sal_Unicode  c 
)

Definition at line 273 of file textdoc.cxx.

References ExpandAttribs(), maText, and nPos.

◆ InsertText() [2/2]

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().

◆ operator=()

void TextNode::operator= ( const TextNode )
delete

◆ RemoveText()

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().

◆ Split()

std::unique_ptr< TextNode > TextNode::Split ( sal_Int32  nPos)

Member Data Documentation

◆ maCharAttribs

TextCharAttribList TextNode::maCharAttribs
private

Definition at line 69 of file textdoc.hxx.

Referenced by Append(), CollapseAttribs(), ExpandAttribs(), GetCharAttrib(), GetCharAttribs(), and Split().

◆ maText

OUString TextNode::maText
private

Definition at line 68 of file textdoc.hxx.

Referenced by Append(), CollapseAttribs(), ExpandAttribs(), GetText(), InsertText(), RemoveText(), and Split().


The documentation for this class was generated from the following files: