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

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

#include <docary.hxx>

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

Public Types

typedef ByPos::const_iterator const_iterator
 
typedef ByTypeAndName::const_iterator const_range_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
 
std::pair< const_range_iterator, const_range_iteratorrangeFind (sal_uInt16 type, const OUString &name) const
 
std::pair< const_range_iterator, const_range_iteratorrangeFind (const value_type &x) const
 
const_range_iterator rangeEnd () const
 
const_iterator rangeProject (const_range_iterator const &position)
 
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 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)
 
- Public Member Functions inherited from SwFormatsBase
virtual ~SwFormatsBase ()
 
 SwFormatsBase ()=default
 
 SwFormatsBase (SwFormatsBase const &)=default
 
 SwFormatsBase (SwFormatsBase &&)=default
 
SwFormatsBaseoperator= (SwFormatsBase const &)=default
 
SwFormatsBaseoperator= (SwFormatsBase &&)=default
 

Private Types

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

Private Attributes

SwFrameFormatsBase m_Array
 
ByPosm_PosIndex
 
ByTypeAndNamem_TypeAndNameIndex
 

Friends

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

Detailed Description

Specific frame formats (frames, DrawObjects).

Definition at line 201 of file docary.hxx.

Member Typedef Documentation

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

Definition at line 206 of file docary.hxx.

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

Definition at line 207 of file docary.hxx.

typedef ByPos::const_iterator SwFrameFormats::const_iterator

Definition at line 215 of file docary.hxx.

typedef ByTypeAndName::const_iterator SwFrameFormats::const_range_iterator

Definition at line 216 of file docary.hxx.

typedef ByPos::iterator SwFrameFormats::iterator
private

Definition at line 208 of file docary.hxx.

typedef SwFrameFormatsBase::size_type SwFrameFormats::size_type

Definition at line 217 of file docary.hxx.

typedef SwFrameFormatsBase::value_type SwFrameFormats::value_type

Definition at line 218 of file docary.hxx.

Constructor & Destructor Documentation

SwFrameFormats::SwFrameFormats ( )

Definition at line 2043 of file docfmt.cxx.

SwFrameFormats::~SwFrameFormats ( )
overridevirtual

Definition at line 2049 of file docfmt.cxx.

References DeleteAndDestroyAll().

Member Function Documentation

const value_type& SwFrameFormats::back ( ) const
inline

Definition at line 256 of file docary.hxx.

const_iterator SwFrameFormats::begin ( ) const
inline
bool SwFrameFormats::ContainsFormat ( SwFrameFormat const &  rFormat) const

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

Definition at line 2118 of file docfmt.cxx.

References SwFrameFormat::m_ffList.

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

void SwFrameFormats::DeleteAndDestroyAll ( bool  keepDefault = false)

Definition at line 2073 of file docfmt.cxx.

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

Referenced by ~SwFrameFormats().

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

Definition at line 2800 of file atrfrm.cxx.

References m_PosIndex.

bool SwFrameFormats::empty ( ) const
inline
const_iterator SwFrameFormats::end ( ) const
inline
bool SwFrameFormats::erase ( const value_type x)
void SwFrameFormats::erase ( size_type  index)

Definition at line 2107 of file docfmt.cxx.

References begin(), and erase().

void SwFrameFormats::erase ( const_iterator const &  position)

Definition at line 2112 of file docfmt.cxx.

References begin(), and m_PosIndex.

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

Definition at line 2054 of file docfmt.cxx.

References m_Array, and m_TypeAndNameIndex.

Referenced by DelFlyInRange(), erase(), IsAlive(), and SwFrameFormat::SetName().

const value_type& SwFrameFormats::front ( ) const
inline

Definition at line 255 of file docary.hxx.

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

Implements SwFormatsBase.

Definition at line 263 of file docary.hxx.

virtual size_t SwFrameFormats::GetFormatCount ( ) const
inlineoverridevirtual

Implements SwFormatsBase.

Definition at line 262 of file docary.hxx.

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

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

Definition at line 2123 of file docfmt.cxx.

References end(), and find().

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

bool SwFrameFormats::newDefault ( const value_type x)

Definition at line 2128 of file docfmt.cxx.

References m_PosIndex.

Referenced by SwFEShell::Copy().

void SwFrameFormats::newDefault ( const_iterator const &  position)

Definition at line 2136 of file docfmt.cxx.

References begin(), and m_PosIndex.

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

Definition at line 253 of file docary.hxx.

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

Definition at line 249 of file docary.hxx.

std::pair< SwFrameFormats::const_range_iterator, SwFrameFormats::const_range_iterator > SwFrameFormats::rangeFind ( sal_uInt16  type,
const OUString &  name 
) const

Definition at line 2062 of file docfmt.cxx.

References m_TypeAndNameIndex.

Referenced by SwDoc::FindFlyByName(), and rangeFind().

std::pair< SwFrameFormats::const_range_iterator, SwFrameFormats::const_range_iterator > SwFrameFormats::rangeFind ( const value_type x) const

Definition at line 2068 of file docfmt.cxx.

References rangeFind().

const_iterator SwFrameFormats::rangeProject ( const_range_iterator const &  position)
inline

Definition at line 250 of file docary.hxx.

size_t SwFrameFormats::size ( ) const
inline

Friends And Related Function Documentation

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

Member Data Documentation

SwFrameFormatsBase SwFrameFormats::m_Array
private

Definition at line 210 of file docary.hxx.

Referenced by DeleteAndDestroyAll(), and find().

ByPos& SwFrameFormats::m_PosIndex
private
ByTypeAndName& SwFrameFormats::m_TypeAndNameIndex
private

Definition at line 212 of file docary.hxx.

Referenced by find(), and rangeFind().


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