LibreOffice Module editeng (master) 1
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
CharAttribList Class Reference

#include <editdoc.hxx>

Collaboration diagram for CharAttribList:
[legend]

Public Types

typedef std::vector< std::unique_ptr< EditCharAttrib > > AttribsType
 

Public Member Functions

 CharAttribList ()
 
 ~CharAttribList ()
 
void dumpAsXml (xmlTextWriterPtr pWriter) const
 
void DeleteEmptyAttribs (SfxItemPool &rItemPool)
 
const EditCharAttribFindAttrib (sal_uInt16 nWhich, sal_Int32 nPos) const
 
EditCharAttribFindAttrib (sal_uInt16 nWhich, sal_Int32 nPos)
 
const EditCharAttribFindNextAttrib (sal_uInt16 nWhich, sal_Int32 nFromPos) const
 
EditCharAttribFindEmptyAttrib (sal_uInt16 nWhich, sal_Int32 nPos)
 
const EditCharAttribFindFeature (sal_Int32 nPos) const
 
void ResortAttribs ()
 
void OptimizeRanges (SfxItemPool &rItemPool)
 
sal_Int32 Count () const
 
void InsertAttrib (EditCharAttrib *pAttrib)
 
SvxFontGetDefFont ()
 
bool HasEmptyAttribs () const
 
void SetHasEmptyAttribs (bool b)
 
bool HasBoundingAttrib (sal_Int32 nBound) const
 
bool HasAttrib (sal_Int32 nStartPos, sal_Int32 nEndPos) const
 
AttribsTypeGetAttribs ()
 
const AttribsTypeGetAttribs () const
 
void Remove (const EditCharAttrib *p)
 
void Remove (sal_Int32 nPos)
 

Static Public Member Functions

static void DbgCheckAttribs (CharAttribList const &rAttribs)
 

Private Attributes

AttribsType aAttribs
 
SvxFont aDefFont
 
bool bHasEmptyAttribs
 

Detailed Description

Definition at line 183 of file editdoc.hxx.

Member Typedef Documentation

◆ AttribsType

typedef std::vector<std::unique_ptr<EditCharAttrib> > CharAttribList::AttribsType

Definition at line 186 of file editdoc.hxx.

Constructor & Destructor Documentation

◆ CharAttribList()

CharAttribList::CharAttribList ( )

Definition at line 2751 of file editdoc.cxx.

◆ ~CharAttribList()

CharAttribList::~CharAttribList ( )

Definition at line 2756 of file editdoc.cxx.

Member Function Documentation

◆ Count()

sal_Int32 CharAttribList::Count ( ) const

Definition at line 2840 of file editdoc.cxx.

References aAttribs.

Referenced by ImpEditEngine::InsertTextObject().

◆ DbgCheckAttribs()

void CharAttribList::DbgCheckAttribs ( CharAttribList const &  rAttribs)
static

◆ DeleteEmptyAttribs()

void CharAttribList::DeleteEmptyAttribs ( SfxItemPool rItemPool)

Definition at line 3006 of file editdoc.cxx.

References aAttribs, and bHasEmptyAttribs.

Referenced by EditUndoTransliteration::Undo().

◆ dumpAsXml()

void CharAttribList::dumpAsXml ( xmlTextWriterPtr  pWriter) const

Definition at line 3031 of file editdoc.cxx.

References aAttribs, and i.

Referenced by ContentNode::dumpAsXml().

◆ FindAttrib() [1/2]

EditCharAttrib * CharAttribList::FindAttrib ( sal_uInt16  nWhich,
sal_Int32  nPos 
)

Definition at line 2860 of file editdoc.cxx.

References aAttribs, and nPos.

◆ FindAttrib() [2/2]

const EditCharAttrib * CharAttribList::FindAttrib ( sal_uInt16  nWhich,
sal_Int32  nPos 
) const

◆ FindEmptyAttrib()

EditCharAttrib * CharAttribList::FindEmptyAttrib ( sal_uInt16  nWhich,
sal_Int32  nPos 
)

◆ FindFeature()

const EditCharAttrib * CharAttribList::FindFeature ( sal_Int32  nPos) const

◆ FindNextAttrib()

const EditCharAttrib * CharAttribList::FindNextAttrib ( sal_uInt16  nWhich,
sal_Int32  nFromPos 
) const

◆ GetAttribs() [1/2]

AttribsType & CharAttribList::GetAttribs ( )
inline

◆ GetAttribs() [2/2]

const AttribsType & CharAttribList::GetAttribs ( ) const
inline

Definition at line 223 of file editdoc.hxx.

References aAttribs.

◆ GetDefFont()

SvxFont & CharAttribList::GetDefFont ( )
inline

◆ HasAttrib()

bool CharAttribList::HasAttrib ( sal_Int32  nStartPos,
sal_Int32  nEndPos 
) const

Definition at line 2887 of file editdoc.cxx.

References aAttribs.

Referenced by ImpEditEngine::TransliterateText().

◆ HasBoundingAttrib()

bool CharAttribList::HasBoundingAttrib ( sal_Int32  nBound) const

◆ HasEmptyAttribs()

bool CharAttribList::HasEmptyAttribs ( ) const
inline

Definition at line 217 of file editdoc.hxx.

References bHasEmptyAttribs.

Referenced by ImpEditEngine::CursorMoved().

◆ InsertAttrib()

void CharAttribList::InsertAttrib ( EditCharAttrib pAttrib)

◆ OptimizeRanges()

void CharAttribList::OptimizeRanges ( SfxItemPool rItemPool)

◆ Remove() [1/2]

void CharAttribList::Remove ( const EditCharAttrib p)

Definition at line 2910 of file editdoc.cxx.

References aAttribs, and p.

Referenced by ContentNode::AppendAttribs(), EditDoc::InsertAttrib(), and EditDoc::InsertAttribInSelection().

◆ Remove() [2/2]

void CharAttribList::Remove ( sal_Int32  nPos)

Definition at line 2917 of file editdoc.cxx.

References aAttribs, and nPos.

◆ ResortAttribs()

void CharAttribList::ResortAttribs ( )

◆ SetHasEmptyAttribs()

void CharAttribList::SetHasEmptyAttribs ( bool  b)

Definition at line 2925 of file editdoc.cxx.

References bHasEmptyAttribs.

Referenced by ContentNode::CollapseAttribs().

Member Data Documentation

◆ aAttribs

AttribsType CharAttribList::aAttribs
private

◆ aDefFont

SvxFont CharAttribList::aDefFont
private

Definition at line 190 of file editdoc.hxx.

Referenced by GetDefFont().

◆ bHasEmptyAttribs

bool CharAttribList::bHasEmptyAttribs
private

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