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

#include <textdoc.hxx>

Public Member Functions

 TextCharAttribList ()
 
 ~TextCharAttribList ()
 
void Clear ()
 
sal_uInt16 Count () const
 
const TextCharAttribGetAttrib (sal_uInt16 n) const
 
TextCharAttribGetAttrib (sal_uInt16 n)
 
std::unique_ptr< TextCharAttribRemoveAttrib (sal_uInt16 n)
 
void InsertAttrib (std::unique_ptr< TextCharAttrib > pAttrib)
 
void DeleteEmptyAttribs ()
 
void ResortAttribs ()
 
bool & HasEmptyAttribs ()
 
TextCharAttribFindAttrib (sal_uInt16 nWhich, sal_Int32 nPos)
 
TextCharAttribFindEmptyAttrib (sal_uInt16 nWhich, sal_Int32 nPos)
 
bool HasBoundingAttrib (sal_Int32 nBound)
 

Private Member Functions

 TextCharAttribList (const TextCharAttribList &)=delete
 
TextCharAttribListoperator= (const TextCharAttribList &)=delete
 

Private Attributes

std::vector< std::unique_ptr< TextCharAttrib > > maAttribs
 
bool mbHasEmptyAttribs
 

Detailed Description

Definition at line 29 of file textdoc.hxx.

Constructor & Destructor Documentation

TextCharAttribList::TextCharAttribList ( const TextCharAttribList )
privatedelete
TextCharAttribList::TextCharAttribList ( )

Definition at line 45 of file textdoc.cxx.

TextCharAttribList::~TextCharAttribList ( )

Definition at line 50 of file textdoc.cxx.

Member Function Documentation

void TextCharAttribList::Clear ( )

Definition at line 55 of file textdoc.cxx.

References maAttribs.

Referenced by TextEngine::RemoveAttribs().

sal_uInt16 TextCharAttribList::Count ( ) const
inline
void TextCharAttribList::DeleteEmptyAttribs ( )

Definition at line 125 of file textdoc.cxx.

References maAttribs, and mbHasEmptyAttribs.

Referenced by TextEngine::CursorMoved().

TextCharAttrib * TextCharAttribList::FindAttrib ( sal_uInt16  nWhich,
sal_Int32  nPos 
)

Definition at line 83 of file textdoc.cxx.

References maAttribs.

Referenced by TextEngine::FindCharAttrib().

TextCharAttrib * TextCharAttribList::FindEmptyAttrib ( sal_uInt16  nWhich,
sal_Int32  nPos 
)

Definition at line 109 of file textdoc.cxx.

References maAttribs, and mbHasEmptyAttribs.

Referenced by TextNode::ExpandAttribs().

const TextCharAttrib& TextCharAttribList::GetAttrib ( sal_uInt16  n) const
inline
TextCharAttrib& TextCharAttribList::GetAttrib ( sal_uInt16  n)
inline

Definition at line 46 of file textdoc.hxx.

bool TextCharAttribList::HasBoundingAttrib ( sal_Int32  nBound)

Definition at line 96 of file textdoc.cxx.

References maAttribs.

Referenced by TextEngine::RecalcTextPortion().

bool& TextCharAttribList::HasEmptyAttribs ( )
inline

Definition at line 59 of file textdoc.hxx.

References mbHasEmptyAttribs.

Referenced by TextNode::CollapseAttribs(), and TextEngine::CursorMoved().

void TextCharAttribList::InsertAttrib ( std::unique_ptr< TextCharAttrib pAttrib)

Definition at line 60 of file textdoc.cxx.

References maAttribs, and mbHasEmptyAttribs.

Referenced by TextNode::Append(), and TextEngine::SetAttrib().

TextCharAttribList& TextCharAttribList::operator= ( const TextCharAttribList )
privatedelete
std::unique_ptr<TextCharAttrib> TextCharAttribList::RemoveAttrib ( sal_uInt16  n)
inline

Definition at line 47 of file textdoc.hxx.

Referenced by TextNode::CollapseAttribs(), and TextNode::Split().

void TextCharAttribList::ResortAttribs ( )

Definition at line 78 of file textdoc.cxx.

References CompareStart(), and maAttribs.

Referenced by TextNode::CollapseAttribs(), and TextNode::ExpandAttribs().

Member Data Documentation

std::vector<std::unique_ptr<TextCharAttrib> > TextCharAttribList::maAttribs
private
bool TextCharAttribList::mbHasEmptyAttribs
private

Definition at line 36 of file textdoc.hxx.

Referenced by DeleteEmptyAttribs(), FindEmptyAttrib(), HasEmptyAttribs(), and InsertAttrib().


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