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 (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 134 of file textdoc.cxx.

References maText.

Referenced by Split().

TextNode::TextNode ( const TextNode )
delete

Member Function Documentation

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

Definition at line 82 of file textdoc.hxx.

References TextCharAttribList::GetAttrib().

Referenced by Append().

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

Definition at line 84 of file textdoc.hxx.

References maCharAttribs.

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

Definition at line 265 of file textdoc.cxx.

References ExpandAttribs(), and maText.

Referenced by TextDoc::InsertText().

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

Definition at line 271 of file textdoc.cxx.

References ExpandAttribs(), and maText.

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

Definition at line 277 of file textdoc.cxx.

References CollapseAttribs(), and maText.

Referenced by TextDoc::RemoveChars().

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

Member Data Documentation

TextCharAttribList TextNode::maCharAttribs
private

Definition at line 69 of file textdoc.hxx.

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

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: