LibreOffice Module sw (master) 1
Public Member Functions | Protected Member Functions | List of all members
SwFormatsModifyBase< Value > Class Template Reference

#include <docary.hxx>

Inheritance diagram for SwFormatsModifyBase< Value >:
[legend]
Collaboration diagram for SwFormatsModifyBase< Value >:
[legend]

Public Member Functions

virtual size_t GetFormatCount () const override
 
virtual Value GetFormat (size_t idx) const override
 
size_t GetPos (const SwFormat *p) const
 
virtual Value FindFormatByName (const OUString &rName) const override
 
- Public Member Functions inherited from SwVectorModifyBase< Value >
bool empty () const
 
Value const & front () const
 
size_t size () const
 
iterator begin ()
 
const_iterator begin () const
 
iterator end ()
 
const_iterator end () const
 
void clear ()
 
iterator erase (iterator aIt)
 
iterator erase (iterator aFirst, iterator aLast)
 
iterator insert (iterator aIt, Value const &rVal)
 
template<typename TInputIterator >
void insert (iterator aIt, TInputIterator aFirst, TInputIterator aLast)
 
void push_back (Value const &rVal)
 
void reserve (size_type nSize)
 
Value const & at (size_type nPos) const
 
Value const & operator[] (size_type nPos) const
 
Valueoperator[] (size_type nPos)
 
virtual ~SwVectorModifyBase ()
 
 SwVectorModifyBase (SwVectorModifyBase const &)=default
 
 SwVectorModifyBase (SwVectorModifyBase &&)=default
 
SwVectorModifyBaseoperator= (SwVectorModifyBase const &)=default
 
SwVectorModifyBaseoperator= (SwVectorModifyBase &&)=default
 
void DeleteAndDestroy (int aStartIdx, int aEndIdx)
 
size_t GetPos (Value const &p) const
 
bool IsAlive (typename std::remove_pointer< Value >::type const *const p) const
 check that given format is still alive (i.e. contained here) More...
 
- Public Member Functions inherited from SwFormatsBase
virtual size_t GetFormatCount () const =0
 
virtual SwFormatGetFormat (size_t idx) const =0
 
virtual ~SwFormatsBase ()
 
virtual SwFormatFindFormatByName (const OUString &rName) const
 
virtual void Rename (const SwFrameFormat &, const OUString &)
 
 SwFormatsBase ()=default
 
 SwFormatsBase (SwFormatsBase const &)=default
 
 SwFormatsBase (SwFormatsBase &&)=default
 
SwFormatsBaseoperator= (SwFormatsBase const &)=default
 
SwFormatsBaseoperator= (SwFormatsBase &&)=default
 

Protected Member Functions

 SwFormatsModifyBase (typename SwVectorModifyBase< Value >::DestructorPolicy policy=SwVectorModifyBase< Value >::DestructorPolicy::FreeElements)
 
- Protected Member Functions inherited from SwVectorModifyBase< Value >
 SwVectorModifyBase (DestructorPolicy policy=DestructorPolicy::FreeElements)
 

Additional Inherited Members

- Public Types inherited from SwVectorModifyBase< Value >
typedef std::vector< Value >::iterator iterator
 
typedef std::vector< Value >::const_iterator const_iterator
 
typedef std::vector< Value >::size_type size_type
 
typedef std::vector< Value >::value_type value_type
 
- Static Public Member Functions inherited from SwVectorModifyBase< Value >
static void dumpAsXml (xmlTextWriterPtr)
 
- Protected Types inherited from SwVectorModifyBase< Value >
enum class  DestructorPolicy {
  KeepElements ,
  FreeElements
}
 

Detailed Description

template<typename Value>
class SwFormatsModifyBase< Value >

Definition at line 148 of file docary.hxx.

Constructor & Destructor Documentation

◆ SwFormatsModifyBase()

template<typename Value >
SwFormatsModifyBase< Value >::SwFormatsModifyBase ( typename SwVectorModifyBase< Value >::DestructorPolicy  policy = SwVectorModifyBase<Value>::DestructorPolicy::FreeElements)
inlineprotected

Definition at line 151 of file docary.hxx.

References Value.

Member Function Documentation

◆ FindFormatByName()

template<typename Value >
virtual Value SwFormatsModifyBase< Value >::FindFormatByName ( const OUString &  rName) const
inlineoverridevirtual

Reimplemented from SwFormatsBase.

Definition at line 166 of file docary.hxx.

References SwFormatsBase::FindFormatByName(), and Value.

Referenced by SwContentTree::BringEntryToAttention(), and SwUndoFormatAttr::GetFormat().

◆ GetFormat()

template<typename Value >
virtual Value SwFormatsModifyBase< Value >::GetFormat ( size_t  idx) const
inlineoverridevirtual

Implements SwFormatsBase.

Definition at line 159 of file docary.hxx.

References idx, SwVectorModifyBase< Value >::operator[](), and Value.

◆ GetFormatCount()

template<typename Value >
virtual size_t SwFormatsModifyBase< Value >::GetFormatCount ( ) const
inlineoverridevirtual

Implements SwFormatsBase.

Definition at line 156 of file docary.hxx.

References SwVectorModifyBase< Value >::size().

◆ GetPos()

template<typename Value >
size_t SwFormatsModifyBase< Value >::GetPos ( const SwFormat p) const
inline

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