LibreOffice Module sw (master) 1
Public Types | Public Member Functions | Private Attributes | Friends | List of all members
SwFrameFormats Class Referencefinal

Specific frame formats (frames, DrawObjects). More...

#include <frameformats.hxx>

Inheritance diagram for SwFrameFormats:
[legend]
Collaboration diagram for SwFrameFormats:
[legend]

Public Types

typedef SwFrameFormatsBase::nth_index< 0 >::type ByPos
 
typedef SwFrameFormatsBase::nth_index< 1 >::type ByTypeAndName
 
typedef ByPos::iterator iterator
 
typedef ByPos::const_iterator const_iterator
 
typedef SwFrameFormatsBase::size_type size_type
 
typedef SwFrameFormatsBase::value_type value_type
 

Public Member Functions

 SwFrameFormats ()
 
virtual ~SwFrameFormats () override
 
bool empty () const
 
size_t size () const
 
std::pair< const_iterator, bool > push_back (const value_type &x)
 
bool erase (const value_type &x)
 
void erase (size_type index)
 
void erase (const_iterator const &position)
 
const_iterator find (const value_type &x) const
 
ByTypeAndName::const_iterator findByTypeAndName (sal_uInt16 type, const OUString &name) const
 
std::pair< ByTypeAndName::const_iterator, ByTypeAndName::const_iterator > findRangeByName (const OUString &name) const
 
ByTypeAndName::const_iterator typeAndNameEnd () const
 
const value_typeoperator[] (size_t index_) const
 
const value_typefront () const
 
const value_typeback () const
 
const_iterator begin () const
 
const_iterator end () const
 
void dumpAsXml (xmlTextWriterPtr pWriter, const char *pName) const
 
virtual size_t GetFormatCount () const override
 
virtual SwFormatGetFormat (size_t idx) const override
 
bool ContainsFormat (SwFrameFormat const &rFormat) const
 fast check if given format is contained here @precond pFormat must not have been deleted More...
 
bool IsAlive (SwFrameFormat const *) const
 not so fast check that given format is still alive (i.e. contained here) More...
 
void DeleteAndDestroyAll (bool keepDefault=false)
 
bool newDefault (const value_type &x)
 
void newDefault (const_iterator const &position)
 
virtual SwFrameFormatFindFormatByName (const OUString &rName) const override
 
- 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
 
 SwFormatsBase ()=default
 
 SwFormatsBase (SwFormatsBase const &)=default
 
 SwFormatsBase (SwFormatsBase &&)=default
 
SwFormatsBaseoperator= (SwFormatsBase const &)=default
 
SwFormatsBaseoperator= (SwFormatsBase &&)=default
 

Private Attributes

SwFrameFormatsBase m_Array
 
ByPosm_PosIndex
 
ByTypeAndNamem_TypeAndNameIndex
 

Friends

void SwFrameFormat::SetFormatName (const OUString &, bool)
 

Detailed Description

Specific frame formats (frames, DrawObjects).

Definition at line 48 of file frameformats.hxx.

Member Typedef Documentation

◆ ByPos

typedef SwFrameFormatsBase::nth_index<0>::type SwFrameFormats::ByPos

Definition at line 54 of file frameformats.hxx.

◆ ByTypeAndName

typedef SwFrameFormatsBase::nth_index<1>::type SwFrameFormats::ByTypeAndName

Definition at line 55 of file frameformats.hxx.

◆ const_iterator

typedef ByPos::const_iterator SwFrameFormats::const_iterator

Definition at line 64 of file frameformats.hxx.

◆ iterator

typedef ByPos::iterator SwFrameFormats::iterator

Definition at line 56 of file frameformats.hxx.

◆ size_type

typedef SwFrameFormatsBase::size_type SwFrameFormats::size_type

Definition at line 65 of file frameformats.hxx.

◆ value_type

typedef SwFrameFormatsBase::value_type SwFrameFormats::value_type

Definition at line 66 of file frameformats.hxx.

Constructor & Destructor Documentation

◆ SwFrameFormats()

SwFrameFormats::SwFrameFormats ( )

Definition at line 2067 of file docfmt.cxx.

◆ ~SwFrameFormats()

SwFrameFormats::~SwFrameFormats ( )
overridevirtual

Definition at line 2073 of file docfmt.cxx.

References DeleteAndDestroyAll().

Member Function Documentation

◆ back()

const value_type & SwFrameFormats::back ( ) const
inline

Definition at line 97 of file frameformats.hxx.

◆ begin()

const_iterator SwFrameFormats::begin ( ) const
inline

◆ ContainsFormat()

bool SwFrameFormats::ContainsFormat ( SwFrameFormat const &  rFormat) const

fast check if given format is contained here @precond pFormat must not have been deleted

Definition at line 2152 of file docfmt.cxx.

References x.

Referenced by SwDoc::DelFrameFormat(), and SwUndoFormatAttr::Init().

◆ DeleteAndDestroyAll()

void SwFrameFormats::DeleteAndDestroyAll ( bool  keepDefault = false)

Definition at line 2107 of file docfmt.cxx.

References begin(), empty(), end(), m_Array, and m_PosIndex.

Referenced by ~SwFrameFormats().

◆ dumpAsXml()

void SwFrameFormats::dumpAsXml ( xmlTextWriterPtr  pWriter,
const char *  pName 
) const

Definition at line 2926 of file atrfrm.cxx.

References m_PosIndex, and pName.

◆ empty()

bool SwFrameFormats::empty ( ) const
inline

◆ end()

const_iterator SwFrameFormats::end ( ) const
inline

◆ erase() [1/3]

bool SwFrameFormats::erase ( const value_type x)

◆ erase() [2/3]

void SwFrameFormats::erase ( const_iterator const &  position)

Definition at line 2146 of file docfmt.cxx.

References begin(), m_PosIndex, and position().

◆ erase() [3/3]

void SwFrameFormats::erase ( size_type  index)

Definition at line 2141 of file docfmt.cxx.

References begin(), erase(), and index_.

◆ find()

SwFrameFormats::const_iterator SwFrameFormats::find ( const value_type x) const

◆ findByTypeAndName()

SwFrameFormats::ByTypeAndName::const_iterator SwFrameFormats::findByTypeAndName ( sal_uInt16  type,
const OUString &  name 
) const

Definition at line 2086 of file docfmt.cxx.

References m_TypeAndNameIndex, name, and type.

Referenced by SwDoc::FindFlyByName(), and SwUndoFormatAttr::GetFormat().

◆ FindFormatByName()

SwFrameFormat * SwFrameFormats::FindFormatByName ( const OUString &  rName) const
overridevirtual

Reimplemented from SwFormatsBase.

Definition at line 2099 of file docfmt.cxx.

References m_TypeAndNameIndex.

Referenced by SwUndoFormatAttr::GetFormat().

◆ findRangeByName()

std::pair< SwFrameFormats::ByTypeAndName::const_iterator, SwFrameFormats::ByTypeAndName::const_iterator > SwFrameFormats::findRangeByName ( const OUString &  name) const

Definition at line 2092 of file docfmt.cxx.

References m_TypeAndNameIndex, and SAL_MAX_UINT16.

◆ front()

const value_type & SwFrameFormats::front ( ) const
inline

Definition at line 96 of file frameformats.hxx.

◆ GetFormat()

virtual SwFormat * SwFrameFormats::GetFormat ( size_t  idx) const
inlineoverridevirtual

Implements SwFormatsBase.

Definition at line 104 of file frameformats.hxx.

References idx.

Referenced by SwContentTree::BringEntryToAttention(), and SwContentType::FillMemberList().

◆ GetFormatCount()

virtual size_t SwFrameFormats::GetFormatCount ( ) const
inlineoverridevirtual

Implements SwFormatsBase.

Definition at line 103 of file frameformats.hxx.

◆ IsAlive()

bool SwFrameFormats::IsAlive ( SwFrameFormat const *  p) const

not so fast check that given format is still alive (i.e. contained here)

Definition at line 2157 of file docfmt.cxx.

References end(), find(), and p.

Referenced by SwDoc::CallEvent(), SwHistoryChangeFlyAnchor::SetInDoc(), and SwHistoryChangeFlyChain::SetInDoc().

◆ newDefault() [1/2]

bool SwFrameFormats::newDefault ( const value_type x)

Definition at line 2162 of file docfmt.cxx.

References m_PosIndex, newDefault(), and x.

Referenced by SwFEShell::Copy(), and newDefault().

◆ newDefault() [2/2]

void SwFrameFormats::newDefault ( const_iterator const &  position)

Definition at line 2170 of file docfmt.cxx.

References begin(), m_PosIndex, and position().

◆ operator[]()

const value_type & SwFrameFormats::operator[] ( size_t  index_) const
inline

Definition at line 95 of file frameformats.hxx.

References index_.

◆ push_back()

std::pair< SwFrameFormats::const_iterator, bool > SwFrameFormats::push_back ( const value_type x)

◆ size()

size_t SwFrameFormats::size ( ) const
inline

◆ typeAndNameEnd()

ByTypeAndName::const_iterator SwFrameFormats::typeAndNameEnd ( ) const
inline

Definition at line 93 of file frameformats.hxx.

Referenced by SwUndoFormatAttr::GetFormat().

Friends And Related Function Documentation

◆ SwFrameFormat::SetFormatName

void SwFrameFormat::SetFormatName ( const OUString &  ,
bool   
)
friend

Member Data Documentation

◆ m_Array

SwFrameFormatsBase SwFrameFormats::m_Array
private

Definition at line 59 of file frameformats.hxx.

Referenced by DeleteAndDestroyAll(), and find().

◆ m_PosIndex

ByPos& SwFrameFormats::m_PosIndex
private

◆ m_TypeAndNameIndex

ByTypeAndName& SwFrameFormats::m_TypeAndNameIndex
private

Definition at line 61 of file frameformats.hxx.

Referenced by find(), findByTypeAndName(), FindFormatByName(), and findRangeByName().


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