LibreOffice Module vcl (master) 1
|
#include <textdoc.hxx>
Public Member Functions | |
TextCharAttribList () | |
~TextCharAttribList () | |
void | Clear () |
sal_uInt16 | Count () const |
const TextCharAttrib & | GetAttrib (sal_uInt16 n) const |
TextCharAttrib & | GetAttrib (sal_uInt16 n) |
std::unique_ptr< TextCharAttrib > | RemoveAttrib (sal_uInt16 n) |
void | InsertAttrib (std::unique_ptr< TextCharAttrib > pAttrib) |
void | DeleteEmptyAttribs () |
void | ResortAttribs () |
bool & | HasEmptyAttribs () |
TextCharAttrib * | FindAttrib (sal_uInt16 nWhich, sal_Int32 nPos) |
TextCharAttrib * | FindEmptyAttrib (sal_uInt16 nWhich, sal_Int32 nPos) |
bool | HasBoundingAttrib (sal_Int32 nBound) |
Private Member Functions | |
TextCharAttribList (const TextCharAttribList &)=delete | |
TextCharAttribList & | operator= (const TextCharAttribList &)=delete |
Private Attributes | |
std::vector< std::unique_ptr< TextCharAttrib > > | maAttribs |
bool | mbHasEmptyAttribs |
Definition at line 28 of file textdoc.hxx.
|
privatedelete |
TextCharAttribList::TextCharAttribList | ( | ) |
Definition at line 47 of file textdoc.cxx.
TextCharAttribList::~TextCharAttribList | ( | ) |
Definition at line 52 of file textdoc.cxx.
void TextCharAttribList::Clear | ( | ) |
Definition at line 57 of file textdoc.cxx.
References maAttribs.
Referenced by TextEngine::RemoveAttribs().
|
inline |
Definition at line 42 of file textdoc.hxx.
References maAttribs.
Referenced by TextNode::Append(), TextNode::CollapseAttribs(), TextEngine::CreateTextPortions(), TextNode::ExpandAttribs(), TextEngine::ImpRemoveChars(), TextEngine::RemoveAttribs(), TextEngine::SeekCursor(), and TextNode::Split().
void TextCharAttribList::DeleteEmptyAttribs | ( | ) |
Definition at line 127 of file textdoc.cxx.
References maAttribs, and mbHasEmptyAttribs.
Referenced by TextEngine::CursorMoved().
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().
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().
|
inline |
Definition at line 45 of file textdoc.hxx.
|
inline |
Definition at line 44 of file textdoc.hxx.
Referenced by TextNode::Append(), TextNode::CollapseAttribs(), TextEngine::CreateTextPortions(), TextNode::ExpandAttribs(), TextNode::GetCharAttrib(), TextEngine::ImpRemoveChars(), TextEngine::SeekCursor(), and TextNode::Split().
bool TextCharAttribList::HasBoundingAttrib | ( | sal_Int32 | nBound | ) |
Definition at line 98 of file textdoc.cxx.
References maAttribs.
Referenced by TextEngine::RecalcTextPortion().
|
inline |
Definition at line 58 of file textdoc.hxx.
References mbHasEmptyAttribs.
Referenced by TextNode::CollapseAttribs(), and TextEngine::CursorMoved().
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().
|
privatedelete |
|
inline |
Definition at line 46 of file textdoc.hxx.
Referenced by TextNode::CollapseAttribs(), and TextNode::Split().
void TextCharAttribList::ResortAttribs | ( | ) |
Definition at line 80 of file textdoc.cxx.
References CompareStart(), and maAttribs.
Referenced by TextNode::CollapseAttribs(), and TextNode::ExpandAttribs().
|
private |
Definition at line 34 of file textdoc.hxx.
Referenced by Clear(), Count(), DeleteEmptyAttribs(), FindAttrib(), FindEmptyAttrib(), GetAttrib(), HasBoundingAttrib(), InsertAttrib(), RemoveAttrib(), and ResortAttribs().
|
private |
Definition at line 35 of file textdoc.hxx.
Referenced by DeleteEmptyAttribs(), FindEmptyAttrib(), HasEmptyAttribs(), and InsertAttrib().