LibreOffice Module sw (master) 1
|
#include <charformats.hxx>
Public Types | |
typedef SwCharFormatsBase::nth_index< 0 >::type | ByPos |
typedef SwCharFormatsBase::nth_index< 1 >::type | ByName |
typedef ByPos::iterator | iterator |
typedef ByPos::const_iterator | const_iterator |
typedef SwCharFormatsBase::size_type | size_type |
typedef SwCharFormatsBase::value_type | value_type |
Public Member Functions | |
SwCharFormats () | |
virtual | ~SwCharFormats () override |
bool | empty () const |
size_t | size () const |
void | insert (SwCharFormat *x) |
void | erase (const_iterator const &position) |
const_iterator | find (const SwCharFormat *x) const |
size_t | GetPos (const SwCharFormat *p) const |
ByName::const_iterator | findByName (const OUString &name) const |
SwCharFormat * | operator[] (size_t index_) const |
const_iterator | begin () const |
const_iterator | end () const |
void | dumpAsXml (xmlTextWriterPtr pWriter) const |
virtual size_t | GetFormatCount () const override |
virtual SwCharFormat * | GetFormat (size_t idx) const override |
bool | ContainsFormat (const SwCharFormat *pFormat) const |
fast check if given format is contained here @precond pFormat must not have been deleted More... | |
void | DeleteAndDestroyAll (bool keepDefault=false) |
virtual SwCharFormat * | FindFormatByName (const OUString &rName) const override |
void | SetFormatNameAndReindex (SwCharFormat *v, const OUString &sNewName) |
Need to call this when the format name changes. More... | |
Public Member Functions inherited from SwFormatsBase | |
virtual size_t | GetFormatCount () const =0 |
virtual SwFormat * | GetFormat (size_t idx) const =0 |
virtual | ~SwFormatsBase () |
virtual SwFormat * | FindFormatByName (const OUString &rName) const |
virtual void | Rename (const SwFrameFormat &, const OUString &) |
SwFormatsBase ()=default | |
SwFormatsBase (SwFormatsBase const &)=default | |
SwFormatsBase (SwFormatsBase &&)=default | |
SwFormatsBase & | operator= (SwFormatsBase const &)=default |
SwFormatsBase & | operator= (SwFormatsBase &&)=default |
Private Attributes | |
SwCharFormatsBase | m_Array |
ByPos & | m_PosIndex |
ByName & | m_NameIndex |
Friends | |
void | SwFormat::SetFormatName (const OUString &, bool) |
Definition at line 46 of file charformats.hxx.
typedef SwCharFormatsBase::nth_index<1>::type SwCharFormats::ByName |
Definition at line 53 of file charformats.hxx.
typedef SwCharFormatsBase::nth_index<0>::type SwCharFormats::ByPos |
Definition at line 52 of file charformats.hxx.
typedef ByPos::const_iterator SwCharFormats::const_iterator |
Definition at line 62 of file charformats.hxx.
typedef ByPos::iterator SwCharFormats::iterator |
Definition at line 54 of file charformats.hxx.
typedef SwCharFormatsBase::size_type SwCharFormats::size_type |
Definition at line 63 of file charformats.hxx.
typedef SwCharFormatsBase::value_type SwCharFormats::value_type |
Definition at line 64 of file charformats.hxx.
SwCharFormats::SwCharFormats | ( | ) |
Definition at line 71 of file chrfmt.cxx.
|
overridevirtual |
Definition at line 77 of file chrfmt.cxx.
References DeleteAndDestroyAll().
|
inline |
Definition at line 89 of file charformats.hxx.
Referenced by DeleteAndDestroyAll(), and GetPos().
bool SwCharFormats::ContainsFormat | ( | const SwCharFormat * | pFormat | ) | const |
fast check if given format is contained here @precond pFormat must not have been deleted
Definition at line 127 of file chrfmt.cxx.
References end(), find(), and x.
Referenced by SwNumRule::CopyNumRule(), insert(), and SwHistorySetText::SetInDoc().
void SwCharFormats::DeleteAndDestroyAll | ( | bool | keepDefault = false | ) |
Definition at line 103 of file chrfmt.cxx.
References begin(), empty(), end(), m_Array, m_PosIndex, and u.
Referenced by ~SwCharFormats().
void SwCharFormats::dumpAsXml | ( | xmlTextWriterPtr | pWriter | ) | const |
Definition at line 63 of file chrfmt.cxx.
References SwCharFormat::dumpAsXml(), GetFormat(), i, and size().
|
inline |
Definition at line 70 of file charformats.hxx.
Referenced by DeleteAndDestroyAll().
|
inline |
Definition at line 90 of file charformats.hxx.
Referenced by ContainsFormat(), DeleteAndDestroyAll(), and GetPos().
void SwCharFormats::erase | ( | const_iterator const & | position | ) |
Definition at line 125 of file chrfmt.cxx.
References m_PosIndex, and position().
Referenced by SetFormatNameAndReindex().
SwCharFormats::const_iterator SwCharFormats::find | ( | const SwCharFormat * | x | ) | const |
Definition at line 83 of file chrfmt.cxx.
References m_Array, m_NameIndex, and x.
Referenced by ContainsFormat(), GetPos(), and SetFormatNameAndReindex().
SwCharFormats::ByName::const_iterator SwCharFormats::findByName | ( | const OUString & | name | ) | const |
Definition at line 90 of file chrfmt.cxx.
References m_NameIndex, and name.
Referenced by FindFormatByName().
|
overridevirtual |
Reimplemented from SwFormatsBase.
Definition at line 95 of file chrfmt.cxx.
References findByName(), and m_NameIndex.
|
inlineoverridevirtual |
Implements SwFormatsBase.
Definition at line 95 of file charformats.hxx.
References idx.
Referenced by dumpAsXml().
|
inlineoverridevirtual |
Implements SwFormatsBase.
Definition at line 94 of file charformats.hxx.
size_t SwCharFormats::GetPos | ( | const SwCharFormat * | p | ) | const |
void SwCharFormats::insert | ( | SwCharFormat * | x | ) |
Definition at line 119 of file chrfmt.cxx.
References ContainsFormat(), m_PosIndex, and x.
Referenced by SetFormatNameAndReindex().
|
inline |
Definition at line 88 of file charformats.hxx.
References index_.
void SwCharFormats::SetFormatNameAndReindex | ( | SwCharFormat * | v, |
const OUString & | sNewName | ||
) |
|
inline |
Definition at line 71 of file charformats.hxx.
Referenced by MSWordStyles::BuildStylesTable(), dumpAsXml(), SwXMLExport::exportDoc(), MSWordExportBase::ExportDocument(), FillCharStyleListBox(), SwStyleSheetIterator::First(), SwEditShell::GetCharFormatCount(), SwCSS1Parser::GetCharFormatFromPool(), SwXTextDocument::getDocumentLanguages(), SwEditShell::GetINetAttrs(), lcl_DeleteInfoStyles(), lcl_FindCharFormat(), SwHTMLWriter::OutStyleSheet(), SwXNumberingRules::replaceByIndex(), SwCursorShell::SelectNxtPrvHyperlink(), and SwUnoCursorHelper::setNumberingProperty().
|
friend |
|
private |
Definition at line 57 of file charformats.hxx.
Referenced by DeleteAndDestroyAll(), and find().
|
private |
Definition at line 59 of file charformats.hxx.
Referenced by find(), findByName(), and FindFormatByName().
|
private |
Definition at line 58 of file charformats.hxx.
Referenced by DeleteAndDestroyAll(), erase(), and insert().