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 28 of file textdoc.hxx.

Constructor & Destructor Documentation

◆ TextCharAttribList() [1/2]

TextCharAttribList::TextCharAttribList ( const TextCharAttribList )
privatedelete

◆ TextCharAttribList() [2/2]

TextCharAttribList::TextCharAttribList ( )

Definition at line 47 of file textdoc.cxx.

◆ ~TextCharAttribList()

TextCharAttribList::~TextCharAttribList ( )

Definition at line 52 of file textdoc.cxx.

Member Function Documentation

◆ Clear()

void TextCharAttribList::Clear ( )

Definition at line 57 of file textdoc.cxx.

References maAttribs.

Referenced by TextEngine::RemoveAttribs().

◆ Count()

sal_uInt16 TextCharAttribList::Count ( ) const
inline

◆ DeleteEmptyAttribs()

void TextCharAttribList::DeleteEmptyAttribs ( )

Definition at line 127 of file textdoc.cxx.

References maAttribs, and mbHasEmptyAttribs.

Referenced by TextEngine::CursorMoved().

◆ FindAttrib()

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

Definition at line 85 of file textdoc.cxx.

References maAttribs, and nPos.

Referenced by TextEngine::FindCharAttrib().

◆ FindEmptyAttrib()

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

Definition at line 111 of file textdoc.cxx.

References maAttribs, mbHasEmptyAttribs, and nPos.

Referenced by TextNode::ExpandAttribs().

◆ GetAttrib() [1/2]

TextCharAttrib & TextCharAttribList::GetAttrib ( sal_uInt16  n)
inline

Definition at line 45 of file textdoc.hxx.

References maAttribs, and n.

◆ GetAttrib() [2/2]

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

◆ HasBoundingAttrib()

bool TextCharAttribList::HasBoundingAttrib ( sal_Int32  nBound)

Definition at line 98 of file textdoc.cxx.

References maAttribs.

Referenced by TextEngine::RecalcTextPortion().

◆ HasEmptyAttribs()

bool & TextCharAttribList::HasEmptyAttribs ( )
inline

Definition at line 58 of file textdoc.hxx.

References mbHasEmptyAttribs.

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

◆ InsertAttrib()

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

Definition at line 62 of file textdoc.cxx.

References maAttribs, and mbHasEmptyAttribs.

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

◆ operator=()

TextCharAttribList & TextCharAttribList::operator= ( const TextCharAttribList )
privatedelete

◆ RemoveAttrib()

std::unique_ptr< TextCharAttrib > TextCharAttribList::RemoveAttrib ( sal_uInt16  n)
inline

Definition at line 46 of file textdoc.hxx.

References maAttribs, and n.

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

◆ ResortAttribs()

void TextCharAttribList::ResortAttribs ( )

Definition at line 80 of file textdoc.cxx.

References CompareStart(), and maAttribs.

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

Member Data Documentation

◆ maAttribs

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

◆ mbHasEmptyAttribs

bool TextCharAttribList::mbHasEmptyAttribs
private

Definition at line 35 of file textdoc.hxx.

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


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