LibreOffice Module sw (master) 1
|
Specific frame formats (frames, DrawObjects). More...
#include <frameformats.hxx>
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_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 |
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 SwFrameFormat * | FindFormatByName (const OUString &rName) const override |
![]() | |
virtual size_t | GetFormatCount () const =0 |
virtual SwFormat * | GetFormat (size_t idx) const =0 |
virtual | ~SwFormatsBase () |
virtual SwFormat * | FindFormatByName (const OUString &rName) const |
SwFormatsBase ()=default | |
SwFormatsBase (SwFormatsBase const &)=default | |
SwFormatsBase (SwFormatsBase &&)=default | |
SwFormatsBase & | operator= (SwFormatsBase const &)=default |
SwFormatsBase & | operator= (SwFormatsBase &&)=default |
Private Attributes | |
SwFrameFormatsBase | m_Array |
ByPos & | m_PosIndex |
ByTypeAndName & | m_TypeAndNameIndex |
Friends | |
void | SwFrameFormat::SetFormatName (const OUString &, bool) |
Specific frame formats (frames, DrawObjects).
Definition at line 48 of file frameformats.hxx.
typedef SwFrameFormatsBase::nth_index<0>::type SwFrameFormats::ByPos |
Definition at line 54 of file frameformats.hxx.
typedef SwFrameFormatsBase::nth_index<1>::type SwFrameFormats::ByTypeAndName |
Definition at line 55 of file frameformats.hxx.
typedef ByPos::const_iterator SwFrameFormats::const_iterator |
Definition at line 64 of file frameformats.hxx.
typedef ByPos::iterator SwFrameFormats::iterator |
Definition at line 56 of file frameformats.hxx.
typedef SwFrameFormatsBase::size_type SwFrameFormats::size_type |
Definition at line 65 of file frameformats.hxx.
typedef SwFrameFormatsBase::value_type SwFrameFormats::value_type |
Definition at line 66 of file frameformats.hxx.
SwFrameFormats::SwFrameFormats | ( | ) |
Definition at line 2067 of file docfmt.cxx.
|
overridevirtual |
Definition at line 2073 of file docfmt.cxx.
References DeleteAndDestroyAll().
|
inline |
Definition at line 97 of file frameformats.hxx.
|
inline |
Definition at line 98 of file frameformats.hxx.
Referenced by SwUndoDrawGroup::AddObj(), SwUndoDrawDelete::AddObj(), sw::CheckAnchoredFlyConsistency(), DeleteAndDestroyAll(), DelFlyInRange(), erase(), WW8Export::GetSdrOrdNum(), lcl_AnchoredFrames(), newDefault(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroup::RedoImpl(), SwUndoDrawDelete::RedoImpl(), SaveFlyInRange(), SwUndoDrawUnGroup::SwUndoDrawUnGroup(), SwUndoDrawGroup::UndoImpl(), and SwUndoDrawUnGroup::UndoImpl().
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().
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().
void SwFrameFormats::dumpAsXml | ( | xmlTextWriterPtr | pWriter, |
const char * | pName | ||
) | const |
Definition at line 2926 of file atrfrm.cxx.
References m_PosIndex, and pName.
|
inline |
Definition at line 72 of file frameformats.hxx.
Referenced by SwUndoSaveContent::DelContentIndex(), DeleteAndDestroyAll(), SwContentNotify::ImplDestroy(), InsertCnt_(), lcl_ReAnchorAtContentFlyFrames(), MakeFrames(), sw::DocumentContentOperationsManager::MoveNodeRange(), SwFEShell::Paste(), SwTabFrame::Split(), SwDoc::SplitDoc(), SwViewShell::UpdateOleObjectPreviews(), SwFEShell::WizardGetFly(), and SwASCWriter::WriteStream().
|
inline |
Definition at line 99 of file frameformats.hxx.
Referenced by SwUndoDrawGroup::AddObj(), SwUndoDrawDelete::AddObj(), sw::CheckAnchoredFlyConsistency(), DeleteAndDestroyAll(), erase(), IsAlive(), lcl_AnchoredFrames(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroup::RedoImpl(), SwUndoDrawDelete::RedoImpl(), SwFrameFormat::SetFormatName(), SwUndoDrawUnGroup::SwUndoDrawUnGroup(), SwUndoDrawGroup::UndoImpl(), and SwUndoDrawUnGroup::UndoImpl().
bool SwFrameFormats::erase | ( | const value_type & | x | ) |
Definition at line 2128 of file docfmt.cxx.
References end(), find(), m_PosIndex, SAL_WARN_IF, and x.
Referenced by SwUndoDrawGroup::AddObj(), SwUndoDrawDelete::AddObj(), SwUndoFlyBase::DelFly(), SwDoc::DelFrameFormat(), erase(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroup::RedoImpl(), SwUndoDrawDelete::RedoImpl(), SaveFlyInRange(), SwUndoDrawUnGroup::SwUndoDrawUnGroup(), SwUndoDrawGroup::UndoImpl(), and SwUndoDrawUnGroup::UndoImpl().
void SwFrameFormats::erase | ( | const_iterator const & | position | ) |
Definition at line 2146 of file docfmt.cxx.
References begin(), m_PosIndex, and position().
void SwFrameFormats::erase | ( | size_type | index | ) |
Definition at line 2141 of file docfmt.cxx.
SwFrameFormats::const_iterator SwFrameFormats::find | ( | const value_type & | x | ) | const |
Definition at line 2078 of file docfmt.cxx.
References m_Array, m_TypeAndNameIndex, and x.
Referenced by DelFlyInRange(), erase(), WW8Export::GetSdrOrdNum(), IsAlive(), and SwFrameFormat::SetFormatName().
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().
|
overridevirtual |
Reimplemented from SwFormatsBase.
Definition at line 2099 of file docfmt.cxx.
References m_TypeAndNameIndex.
Referenced by SwUndoFormatAttr::GetFormat().
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.
|
inline |
Definition at line 96 of file frameformats.hxx.
|
inlineoverridevirtual |
Implements SwFormatsBase.
Definition at line 104 of file frameformats.hxx.
References idx.
Referenced by SwContentTree::BringEntryToAttention(), and SwContentType::FillMemberList().
|
inlineoverridevirtual |
Implements SwFormatsBase.
Definition at line 103 of file frameformats.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 2157 of file docfmt.cxx.
References end(), find(), and p.
Referenced by SwDoc::CallEvent(), SwHistoryChangeFlyAnchor::SetInDoc(), and SwHistoryChangeFlyChain::SetInDoc().
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().
void SwFrameFormats::newDefault | ( | const_iterator const & | position | ) |
Definition at line 2170 of file docfmt.cxx.
References begin(), m_PosIndex, and position().
|
inline |
Definition at line 95 of file frameformats.hxx.
References index_.
std::pair< SwFrameFormats::const_iterator, bool > SwFrameFormats::push_back | ( | const value_type & | x | ) |
Definition at line 2120 of file docfmt.cxx.
References m_PosIndex, SAL_WARN_IF, and x.
Referenced by SwUndoFlyBase::InsFly(), lcl_SaveStyles(), SwDoc::MakeDrawFrameFormat(), SwDoc::MakeFlyFrameFormat(), SwUndoDrawGroup::RedoImpl(), SwUndoDrawUnGroup::RedoImpl(), RestFlyInRange(), SwUndoDrawGroup::UndoImpl(), SwUndoDrawUnGroup::UndoImpl(), and SwUndoDrawDelete::UndoImpl().
|
inline |
Definition at line 73 of file frameformats.hxx.
Referenced by AppendAllObjs(), AppendObjsOfNode(), SwRootFrame::AssertFlyPages(), SwLayHelper::CalcPageCount(), CollectFrameAtNode(), sw::DocumentContentOperationsManager::CopyFlyInFlyImpl(), SwEditShell::CopySelToDoc(), SwUndoSaveContent::DelContentIndex(), DelFlyInRange(), sw::DocumentLayoutManager::DelLayoutFormat(), SwDoc::DoUpdateAllCharts(), SwEnhancedPDFExportHelper::EnhancedPDFExport(), SwXMLExport::exportDoc(), SwNode::FindPageDesc(), SwTableFormula::FindTable(), SwStyleSheetIterator::First(), SwHTMLWriter::GetControls(), SwDoc::GetFlyCount(), SwNode::GetFlyFormat(), SwDoc::GetFlyFrameFormats(), SwDoc::GetFlyNum(), sw::GetFlysAnchoredAt(), WW8Glossary::HasBareGraphicEnd(), SwHTMLParser::HasCurrentParaFlys(), SwContentNotify::ImplDestroy(), SwView::InsertGraphicDlg(), SwFrameFormat::IsLowerOf(), lcl_GetUniqueFlyName(), lcl_MakeAutoFrames(), lcl_MakeObjs(), lcl_ReAnchorAtContentFlyFrames(), SwTableNode::MakeCopy(), SwFlyFrameFormat::MakeFrames(), SaveFlyInRange(), SwCursorShell::SelectNxtPrvHyperlink(), SwDoc::SetAllUniqueFlyNames(), SwUndoInserts::SetInsertRange(), SwXTextTable::setName(), SwDoc::SetTableName(), SwDoc::SplitDoc(), SwPosFlyFrame::SwPosFlyFrame(), SwUndoTableToText::SwUndoTableToText(), SwDoc::UnProtectTables(), and SwViewShell::UpdateOleObjectPreviews().
|
inline |
Definition at line 93 of file frameformats.hxx.
Referenced by SwUndoFormatAttr::GetFormat().
|
friend |
|
private |
Definition at line 59 of file frameformats.hxx.
Referenced by DeleteAndDestroyAll(), and find().
|
private |
Definition at line 60 of file frameformats.hxx.
Referenced by DeleteAndDestroyAll(), dumpAsXml(), erase(), newDefault(), push_back(), and SwFrameFormat::SetFormatName().
|
private |
Definition at line 61 of file frameformats.hxx.
Referenced by find(), findByTypeAndName(), FindFormatByName(), and findRangeByName().