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:

Public Member Functions

 TextNode (const OUString &rText)
 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, const OUString &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::TextNode ( const OUString &  rText)

Definition at line 135 of file textdoc.cxx.

References maText.

Referenced by Split().

TextNode::TextNode ( const TextNode )

Member Function Documentation

void TextNode::Append ( const TextNode rNode)
void TextNode::CollapseAttribs ( sal_Int32  nIndex,
sal_Int32  nDelChars 
void TextNode::ExpandAttribs ( sal_Int32  nIndex,
sal_Int32  nNewChars 
const TextCharAttrib& TextNode::GetCharAttrib ( sal_uInt16  nPos) const

Definition at line 82 of file textdoc.hxx.

References TextCharAttribList::GetAttrib().

Referenced by Append().

const TextCharAttribList& TextNode::GetCharAttribs ( ) const
TextCharAttribList& TextNode::GetCharAttribs ( )

Definition at line 84 of file textdoc.hxx.

References maCharAttribs.

const OUString& TextNode::GetText ( ) const
void TextNode::InsertText ( sal_Int32  nPos,
const OUString &  rText 

Definition at line 266 of file textdoc.cxx.

References ExpandAttribs(), and maText.

Referenced by TextDoc::InsertText().

void TextNode::InsertText ( sal_Int32  nPos,
sal_Unicode  c 

Definition at line 272 of file textdoc.cxx.

References ExpandAttribs(), and maText.

void TextNode::operator= ( const TextNode )
void TextNode::RemoveText ( sal_Int32  nPos,
sal_Int32  nChars 

Definition at line 278 of file textdoc.cxx.

References CollapseAttribs(), maText, and u.

Referenced by TextDoc::RemoveChars().

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

Member Data Documentation

TextCharAttribList TextNode::maCharAttribs

Definition at line 69 of file textdoc.hxx.

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

OUString TextNode::maText

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: