LibreOffice Module editeng (master) 1
|
#include <editdoc.hxx>
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 EditCharAttrib * | FindAttrib (sal_uInt16 nWhich, sal_Int32 nPos) const |
EditCharAttrib * | FindAttrib (sal_uInt16 nWhich, sal_Int32 nPos) |
const EditCharAttrib * | FindNextAttrib (sal_uInt16 nWhich, sal_Int32 nFromPos) const |
EditCharAttrib * | FindEmptyAttrib (sal_uInt16 nWhich, sal_Int32 nPos) |
const EditCharAttrib * | FindFeature (sal_Int32 nPos) const |
void | ResortAttribs () |
void | OptimizeRanges (SfxItemPool &rItemPool) |
sal_Int32 | Count () const |
void | InsertAttrib (EditCharAttrib *pAttrib) |
SvxFont & | GetDefFont () |
bool | HasEmptyAttribs () const |
void | SetHasEmptyAttribs (bool b) |
bool | HasBoundingAttrib (sal_Int32 nBound) const |
bool | HasAttrib (sal_Int32 nStartPos, sal_Int32 nEndPos) const |
AttribsType & | GetAttribs () |
const AttribsType & | GetAttribs () 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 |
Definition at line 183 of file editdoc.hxx.
typedef std::vector<std::unique_ptr<EditCharAttrib> > CharAttribList::AttribsType |
Definition at line 186 of file editdoc.hxx.
CharAttribList::CharAttribList | ( | ) |
Definition at line 2751 of file editdoc.cxx.
CharAttribList::~CharAttribList | ( | ) |
Definition at line 2756 of file editdoc.cxx.
sal_Int32 CharAttribList::Count | ( | ) | const |
Definition at line 2840 of file editdoc.cxx.
References aAttribs.
Referenced by ImpEditEngine::InsertTextObject().
|
static |
Definition at line 3014 of file editdoc.cxx.
References aAttribs, CheckOrderedList(), and GetAttribs().
Referenced by ContentNode::AppendAttribs(), ContentNode::CollapseAttribs(), ContentNode::CopyAndCutAttribs(), ContentNode::ExpandAttribs(), InsertAttrib(), ImpEditEngine::InsertTextObject(), OptimizeRanges(), EditDoc::RemoveAttribs(), and ResortAttribs().
void CharAttribList::DeleteEmptyAttribs | ( | SfxItemPool & | rItemPool | ) |
Definition at line 3006 of file editdoc.cxx.
References aAttribs, and bHasEmptyAttribs.
Referenced by EditUndoTransliteration::Undo().
void CharAttribList::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 3031 of file editdoc.cxx.
Referenced by ContentNode::dumpAsXml().
EditCharAttrib * CharAttribList::FindAttrib | ( | sal_uInt16 | nWhich, |
sal_Int32 | nPos | ||
) |
Definition at line 2860 of file editdoc.cxx.
const EditCharAttrib * CharAttribList::FindAttrib | ( | sal_uInt16 | nWhich, |
sal_Int32 | nPos | ||
) | const |
Definition at line 2845 of file editdoc.cxx.
References aAttribs, and nPos.
Referenced by ContentNode::CopyAndCutAttribs(), ImpEditEngine::GetLanguage(), EditDoc::InsertAttrib(), ImpEditEngine::Paint(), and ImpEditEngine::SeekCursor().
EditCharAttrib * CharAttribList::FindEmptyAttrib | ( | sal_uInt16 | nWhich, |
sal_Int32 | nPos | ||
) |
Definition at line 2947 of file editdoc.cxx.
References aAttribs, bHasEmptyAttribs, and nPos.
Referenced by ContentNode::ExpandAttribs(), EditDoc::FindAttribs(), and EditDoc::InsertAttrib().
const EditCharAttrib * CharAttribList::FindFeature | ( | sal_Int32 | nPos | ) | const |
Definition at line 2975 of file editdoc.cxx.
References aAttribs, and nPos.
Referenced by ImpEditEngine::CreateLines(), ImpEditEngine::CursorEndOfLine(), ContentNode::GetExpandedText(), ImpEditEngine::Paint(), and ImpEditEngine::WriteRTF().
const EditCharAttrib * CharAttribList::FindNextAttrib | ( | sal_uInt16 | nWhich, |
sal_Int32 | nFromPos | ||
) | const |
Definition at line 2875 of file editdoc.cxx.
References aAttribs, EditCharAttrib::GetStart(), and EditCharAttrib::Which().
Referenced by ImpEditEngine::InitScriptTypes().
|
inline |
Definition at line 222 of file editdoc.hxx.
References aAttribs.
Referenced by ContentNode::AppendAttribs(), ContentNode::CollapseAttribs(), ContentNode::CopyAndCutAttribs(), ImpEditEngine::CreateTextObject(), ImpEditEngine::CreateTextPortions(), DbgCheckAttribs(), EditEngine::DumpData(), ContentNode::ExpandAttribs(), EditDoc::FindAttribs(), ContentNode::GetExpandedLen(), ImpEditView::GetField(), EditView::GetFieldAtSelection(), EditEngine::GetFieldCount(), EditEngine::GetFieldInfo(), ImpEditEngine::ImpBreakLine(), ImpEditEngine::ImpRemoveChars(), lcl_FindValidAttribs(), EditDoc::RemoveAttribs(), EditEngine::RemoveFields(), EditDoc::RemoveItemsFromPool(), ImpEditEngine::SeekCursor(), and ContentNode::UnExpandPosition().
|
inline |
Definition at line 223 of file editdoc.hxx.
References aAttribs.
|
inline |
Definition at line 215 of file editdoc.hxx.
References aDefFont.
Referenced by ImpEditEngine::CalcLineWidth(), EditDoc::CreateDefFont(), ImpEditEngine::CreateLines(), EditEngine::GetStandardSvxFont(), ImpEditEngine::ImpConnectParagraphs(), EditDoc::InsertParaBreak(), ImpEditEngine::InsertTextObject(), EditDoc::RemoveText(), ImpEditEngine::SeekCursor(), EditRTFParser::SetAttrInDoc(), ContentNode::SetStyleSheet(), and ImpEditEngine::SplitTextPortion().
bool CharAttribList::HasAttrib | ( | sal_Int32 | nStartPos, |
sal_Int32 | nEndPos | ||
) | const |
Definition at line 2887 of file editdoc.cxx.
References aAttribs.
Referenced by ImpEditEngine::TransliterateText().
bool CharAttribList::HasBoundingAttrib | ( | sal_Int32 | nBound | ) | const |
Definition at line 2930 of file editdoc.cxx.
References aAttribs, EditCharAttrib::GetEnd(), and EditCharAttrib::GetStart().
Referenced by ImpEditEngine::RecalcTextPortion().
|
inline |
Definition at line 217 of file editdoc.hxx.
References bHasEmptyAttribs.
Referenced by ImpEditEngine::CursorMoved().
void CharAttribList::InsertAttrib | ( | EditCharAttrib * | pAttrib | ) |
Definition at line 2760 of file editdoc.cxx.
References aAttribs, bHasEmptyAttribs, DbgCheckAttribs(), EditCharAttrib::GetStart(), i, EditCharAttrib::IsEmpty(), and n.
Referenced by ContentNode::AppendAttribs(), ContentNode::CopyAndCutAttribs(), EditDoc::InsertAttrib(), EditDoc::InsertFeature(), and ImpEditEngine::InsertTextObject().
void CharAttribList::OptimizeRanges | ( | SfxItemPool & | rItemPool | ) |
Definition at line 2808 of file editdoc.cxx.
References aAttribs, DbgCheckAttribs(), EditCharAttrib::GetEnd(), EditCharAttrib::GetItem(), EditCharAttrib::GetStart(), i, EditCharAttrib::IsFeature(), SfxItemPool::Remove(), and EditCharAttrib::Which().
void CharAttribList::Remove | ( | const EditCharAttrib * | p | ) |
Definition at line 2910 of file editdoc.cxx.
Referenced by ContentNode::AppendAttribs(), EditDoc::InsertAttrib(), and EditDoc::InsertAttribInSelection().
void CharAttribList::Remove | ( | sal_Int32 | nPos | ) |
Definition at line 2917 of file editdoc.cxx.
void CharAttribList::ResortAttribs | ( | ) |
Definition at line 2799 of file editdoc.cxx.
References aAttribs, and DbgCheckAttribs().
Referenced by ContentNode::CollapseAttribs(), ContentNode::ExpandAttribs(), EditDoc::InsertAttribInSelection(), and EditDoc::RemoveAttribs().
void CharAttribList::SetHasEmptyAttribs | ( | bool | b | ) |
Definition at line 2925 of file editdoc.cxx.
References bHasEmptyAttribs.
Referenced by ContentNode::CollapseAttribs().
|
private |
Definition at line 189 of file editdoc.hxx.
Referenced by Count(), DbgCheckAttribs(), DeleteEmptyAttribs(), dumpAsXml(), FindAttrib(), FindEmptyAttrib(), FindFeature(), FindNextAttrib(), GetAttribs(), HasAttrib(), HasBoundingAttrib(), InsertAttrib(), OptimizeRanges(), Remove(), and ResortAttribs().
|
private |
Definition at line 190 of file editdoc.hxx.
Referenced by GetDefFont().
|
private |
Definition at line 191 of file editdoc.hxx.
Referenced by DeleteEmptyAttribs(), FindEmptyAttrib(), HasEmptyAttribs(), InsertAttrib(), and SetHasEmptyAttribs().