LibreOffice Module sw (master) 1
|
#include <frameformats.hxx>
Classes | |
struct | ByPos |
struct | ByTypeAndName |
struct | FrameFormatsKey |
Public Types | |
typedef std::add_pointer< typenamestd::add_const< typenamestd::remove_pointer< value_type >::type >::type >::type | const_value_type |
typedef FrameFormatsContainer::size_type | size_type |
typedef FrameFormatsContainer::template index< ByPos >::type | index_type |
typedef index_type::iterator | iterator |
typedef index_type::const_iterator | const_iterator |
typedef FrameFormatsContainer::template index< ByTypeAndName >::type | name_index_type |
typedef name_index_type::iterator | name_iterator |
typedef name_index_type::const_iterator | const_name_iterator |
typedef std::pair< const_name_iterator, const_name_iterator > | range_type |
Public Member Functions | |
FrameFormats () | |
virtual | ~FrameFormats () 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 |
const_name_iterator | findByTypeAndName (sal_uInt16 type, const OUString &name) const |
range_type | findRangeByName (const OUString &rName) const |
const_name_iterator | typeAndNameEnd () const |
const value_type & | operator[] (size_t index) const |
const value_type & | front () const |
const value_type & | back () const |
const_iterator | begin () const |
const_iterator | end () const |
void | dumpAsXml (xmlTextWriterPtr pWriter, const char *pName) const |
virtual size_t | GetFormatCount () const override |
virtual SwFormat * | GetFormat (size_t idx) const override |
virtual void | Rename (const SwFrameFormat &rFormat, const OUString &sNewName) override |
bool | ContainsFormat (const value_type &rpFormat) const |
fast check if given format is contained here @precond pFormat must not have been deleted More... | |
bool | IsAlive (const_value_type pFrameFormat) 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) |
value_type | FindFrameFormatByName (const OUString &rName) const |
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 Types | |
typedef boost::multi_index_container< value_type, boost::multi_index::indexed_by< boost::multi_index::random_access< boost::multi_index::tag< ByPos > >, boost::multi_index::ordered_unique< boost::multi_index::tag< ByTypeAndName >, FrameFormatsKey > > > | FrameFormatsContainer |
Private Member Functions | |
index_type & | GetByPos () |
name_index_type & | GetByTypeAndName () |
const index_type & | GetByPos () const |
const name_index_type & | GetByTypeAndName () const |
Private Attributes | |
FrameFormatsContainer | m_vContainer |
Friends | |
class | ::SwFrameFormat |
Definition at line 41 of file frameformats.hxx.
typedef index_type::const_iterator sw::FrameFormats< value_type >::const_iterator |
Definition at line 75 of file frameformats.hxx.
typedef name_index_type::const_iterator sw::FrameFormats< value_type >::const_name_iterator |
Definition at line 78 of file frameformats.hxx.
typedef std::add_pointer<typenamestd::add_const<typenamestd::remove_pointer<value_type>::type>::type>::type sw::FrameFormats< value_type >::const_value_type |
Definition at line 71 of file frameformats.hxx.
|
private |
Definition at line 63 of file frameformats.hxx.
typedef FrameFormatsContainer::template index<ByPos>::type sw::FrameFormats< value_type >::index_type |
Definition at line 73 of file frameformats.hxx.
typedef index_type::iterator sw::FrameFormats< value_type >::iterator |
Definition at line 74 of file frameformats.hxx.
typedef FrameFormatsContainer::template index<ByTypeAndName>::type sw::FrameFormats< value_type >::name_index_type |
Definition at line 76 of file frameformats.hxx.
typedef name_index_type::iterator sw::FrameFormats< value_type >::name_iterator |
Definition at line 77 of file frameformats.hxx.
typedef std::pair<const_name_iterator, const_name_iterator> sw::FrameFormats< value_type >::range_type |
Definition at line 79 of file frameformats.hxx.
typedef FrameFormatsContainer::size_type sw::FrameFormats< value_type >::size_type |
Definition at line 72 of file frameformats.hxx.
|
inline |
Definition at line 92 of file frameformats.hxx.
|
inlineoverridevirtual |
Definition at line 94 of file frameformats.hxx.
References sw::FrameFormats< value_type >::DeleteAndDestroyAll().
|
inline |
Definition at line 155 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByPos().
|
inline |
Definition at line 156 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByPos().
Referenced by SwUndoDrawGroup::AddObj(), SwUndoDrawDelete::AddObj(), sw::FrameFormats< value_type >::DeleteAndDestroyAll(), DelFlyInRange(), sw::FrameFormats< value_type >::erase(), sw::FrameFormats< value_type >::newDefault(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroup::RedoImpl(), SwUndoDrawDelete::RedoImpl(), SaveFlyInRange(), SwUndoDrawUnGroup::SwUndoDrawUnGroup(), SwUndoDrawGroup::UndoImpl(), and SwUndoDrawUnGroup::UndoImpl().
|
inline |
fast check if given format is contained here @precond pFormat must not have been deleted
Definition at line 189 of file frameformats.hxx.
Referenced by SwUndoFormatAttr::Init().
|
inline |
Definition at line 199 of file frameformats.hxx.
References sw::FrameFormats< value_type >::begin(), sw::FrameFormats< value_type >::empty(), sw::FrameFormats< value_type >::end(), sw::FrameFormats< value_type >::GetByPos(), and sw::FrameFormats< value_type >::m_vContainer.
Referenced by sw::FrameFormats< value_type >::~FrameFormats().
|
inline |
Definition at line 159 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByPos(), and pName.
|
inline |
Definition at line 96 of file frameformats.hxx.
References sw::FrameFormats< value_type >::m_vContainer.
Referenced by SwUndoSaveContent::DelContentIndex(), sw::FrameFormats< value_type >::DeleteAndDestroyAll(), InsertCnt_(), MakeFrames(), SwTabFrame::Split(), and SwFEShell::WizardGetFly().
|
inline |
Definition at line 157 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByPos().
Referenced by SwUndoDrawGroup::AddObj(), SwUndoDrawDelete::AddObj(), sw::FrameFormats< value_type >::DeleteAndDestroyAll(), sw::FrameFormats< value_type >::erase(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroup::RedoImpl(), SwUndoDrawDelete::RedoImpl(), sw::FrameFormats< value_type >::Rename(), SwUndoDrawUnGroup::SwUndoDrawUnGroup(), SwUndoDrawGroup::UndoImpl(), and SwUndoDrawUnGroup::UndoImpl().
|
inline |
Definition at line 109 of file frameformats.hxx.
References sw::FrameFormats< value_type >::end(), sw::FrameFormats< value_type >::find(), sw::FrameFormats< value_type >::GetByPos(), SAL_WARN_IF, and x.
Referenced by SwUndoDrawGroup::AddObj(), SwUndoDrawDelete::AddObj(), SwUndoFlyBase::DelFly(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroup::RedoImpl(), SwUndoDrawDelete::RedoImpl(), SaveFlyInRange(), SwUndoDrawUnGroup::SwUndoDrawUnGroup(), SwUndoDrawGroup::UndoImpl(), and SwUndoDrawUnGroup::UndoImpl().
|
inline |
Definition at line 123 of file frameformats.hxx.
References sw::FrameFormats< value_type >::begin(), sw::FrameFormats< value_type >::GetByPos(), and position().
|
inline |
Definition at line 122 of file frameformats.hxx.
References sw::FrameFormats< value_type >::begin(), sw::FrameFormats< value_type >::erase(), and index.
Referenced by sw::FrameFormats< value_type >::erase().
|
inline |
Definition at line 132 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByTypeAndName(), sw::FrameFormats< value_type >::m_vContainer, and x.
Referenced by DelFlyInRange(), sw::FrameFormats< value_type >::erase(), and sw::FrameFormats< value_type >::Rename().
|
inline |
Definition at line 138 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByTypeAndName(), name, and type.
|
inline |
Definition at line 227 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByTypeAndName(), and idx.
|
inline |
Definition at line 143 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByTypeAndName(), idx, and SAL_MAX_UINT16.
|
inline |
Definition at line 154 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByPos().
|
inlineprivate |
Definition at line 83 of file frameformats.hxx.
References sw::FrameFormats< value_type >::m_vContainer.
Referenced by sw::FrameFormats< value_type >::back(), sw::FrameFormats< value_type >::begin(), sw::FrameFormats< value_type >::DeleteAndDestroyAll(), sw::FrameFormats< value_type >::dumpAsXml(), sw::FrameFormats< value_type >::end(), sw::FrameFormats< value_type >::erase(), sw::FrameFormats< value_type >::front(), sw::FrameFormats< value_type >::newDefault(), sw::FrameFormats< value_type >::operator[](), sw::FrameFormats< value_type >::push_back(), and sw::FrameFormats< value_type >::Rename().
|
inlineprivate |
Definition at line 85 of file frameformats.hxx.
References sw::FrameFormats< value_type >::m_vContainer.
|
inlineprivate |
Definition at line 84 of file frameformats.hxx.
References sw::FrameFormats< value_type >::m_vContainer.
Referenced by sw::FrameFormats< value_type >::find(), sw::FrameFormats< value_type >::findByTypeAndName(), sw::FrameFormats< value_type >::FindFrameFormatByName(), sw::FrameFormats< value_type >::findRangeByName(), and sw::FrameFormats< value_type >::typeAndNameEnd().
|
inlineprivate |
Definition at line 86 of file frameformats.hxx.
References sw::FrameFormats< value_type >::m_vContainer.
|
inlineoverridevirtual |
Implements SwFormatsBase.
Definition at line 168 of file frameformats.hxx.
References idx, and sw::FrameFormats< value_type >::operator[]().
|
inlineoverridevirtual |
Implements SwFormatsBase.
Definition at line 167 of file frameformats.hxx.
References sw::FrameFormats< value_type >::m_vContainer.
|
inline |
not so fast check that given format is still alive (i.e. contained here)
Definition at line 192 of file frameformats.hxx.
|
inline |
Definition at line 212 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByPos(), sw::FrameFormats< value_type >::newDefault(), and x.
Referenced by SwFEShell::Copy(), and sw::FrameFormats< value_type >::newDefault().
|
inline |
Definition at line 219 of file frameformats.hxx.
References sw::FrameFormats< value_type >::begin(), sw::FrameFormats< value_type >::GetByPos(), and position().
|
inline |
Definition at line 153 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByPos(), and index.
Referenced by sw::FrameFormats< value_type >::GetFormat().
|
inline |
Definition at line 100 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByPos(), SAL_WARN_IF, and x.
Referenced by SwUndoFlyBase::InsFly(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroup::RedoImpl(), SwUndoDrawGroup::UndoImpl(), SwUndoDrawUnGroup::UndoImpl(), and SwUndoDrawDelete::UndoImpl().
|
inlineoverridevirtual |
Reimplemented from SwFormatsBase.
Definition at line 172 of file frameformats.hxx.
References sw::FrameFormats< value_type >::end(), sw::FrameFormats< value_type >::find(), sw::FrameFormats< value_type >::GetByPos(), and SwFormat::GetName().
|
inline |
Definition at line 97 of file frameformats.hxx.
References sw::FrameFormats< value_type >::m_vContainer.
Referenced by AppendAllObjs(), SwRootFrame::AssertFlyPages(), SwLayHelper::CalcPageCount(), SwEditShell::CopySelToDoc(), SwUndoSaveContent::DelContentIndex(), DelFlyInRange(), SwNode::FindPageDesc(), SwTableFormula::FindTable(), lcl_MakeObjs(), SwTableNode::MakeCopy(), SaveFlyInRange(), SwXTextTable::setName(), and SwDoc::UnProtectTables().
|
inline |
Definition at line 151 of file frameformats.hxx.
References sw::FrameFormats< value_type >::GetByTypeAndName().
|
friend |
Definition at line 65 of file frameformats.hxx.
|
private |
Definition at line 82 of file frameformats.hxx.
Referenced by sw::FrameFormats< value_type >::DeleteAndDestroyAll(), sw::FrameFormats< value_type >::empty(), sw::FrameFormats< value_type >::find(), sw::FrameFormats< value_type >::GetByPos(), sw::FrameFormats< value_type >::GetByTypeAndName(), sw::FrameFormats< value_type >::GetFormatCount(), and sw::FrameFormats< value_type >::size().