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

class for collecting anchored objects More...

#include <sortedobjs.hxx>

Public Types

typedef std::vector< SwAnchoredObject * >::const_iterator const_iterator
 

Public Member Functions

 SwSortedObjs ()
 
 ~SwSortedObjs ()
 
size_t size () const
 
SwAnchoredObjectoperator[] (size_t _nIndex) const
 direct access to the entries More...
 
const_iterator begin () const
 
const_iterator end () const
 
bool Insert (SwAnchoredObject &_rAnchoredObj)
 
void Remove (SwAnchoredObject &_rAnchoredObj)
 
bool Contains (const SwAnchoredObject &_rAnchoredObj) const
 
void Update (SwAnchoredObject &_rAnchoredObj)
 method to update the position of the given anchored object in the sorted list More...
 
void UpdateAll ()
 
size_t ListPosOf (const SwAnchoredObject &_rAnchoredObj) const
 Position of object <_rAnchoredObj> in sorted list. More...
 
bool is_sorted () const
 

Private Attributes

std::vector< SwAnchoredObject * > maSortedObjLst
 

Detailed Description

class for collecting anchored objects

for #i28701# Anchored objects can be inserted and deleted. The entries can be directly accessed via index. An anchored object is inserted sorted. The sort criteria are:

Definition at line 48 of file sortedobjs.hxx.

Member Typedef Documentation

Definition at line 54 of file sortedobjs.hxx.

Constructor & Destructor Documentation

SwSortedObjs::SwSortedObjs ( )

Definition at line 34 of file sortedobjs.cxx.

SwSortedObjs::~SwSortedObjs ( )

Definition at line 38 of file sortedobjs.cxx.

Member Function Documentation

const_iterator SwSortedObjs::begin ( ) const
inline

Definition at line 66 of file sortedobjs.hxx.

Referenced by SwAnchoredObject::UpdateObjInSortedList().

bool SwSortedObjs::Contains ( const SwAnchoredObject _rAnchoredObj) const

Definition at line 244 of file sortedobjs.cxx.

References maSortedObjLst.

Referenced by SwRootFrame::CalcFrameRects(), Insert(), and Update().

const_iterator SwSortedObjs::end ( ) const
inline

Definition at line 68 of file sortedobjs.hxx.

Referenced by SwAnchoredObject::UpdateObjInSortedList().

bool SwSortedObjs::Insert ( SwAnchoredObject _rAnchoredObj)

Definition at line 207 of file sortedobjs.cxx.

References Contains(), and maSortedObjLst.

Referenced by SwRootFrame::CalcFrameRects(), SwPageFrame::MoveFly(), and Update().

bool SwSortedObjs::is_sorted ( ) const

Definition at line 202 of file sortedobjs.cxx.

References maSortedObjLst.

size_t SwSortedObjs::ListPosOf ( const SwAnchoredObject _rAnchoredObj) const

Position of object <_rAnchoredObj> in sorted list.

Returns the number of the list position of object <_rAnchoredObj>. Returns <size()>, if object isn't contained in list.

Returns
size_t Number of the list position of object <_rAnchoredObj>

Definition at line 276 of file sortedobjs.cxx.

References maSortedObjLst, nPos, and size().

Referenced by SwObjectFormatterLayFrame::AdditionalFormatObjsOnPage(), SwObjectFormatter::FormatObjsAtFrame_(), SwObjectFormatterTextFrame::InvalidateFollowObjs(), SwObjectFormatterTextFrame::InvalidatePrevObjs(), and SwAnchoredObject::UpdateObjInSortedList().

SwAnchoredObject * SwSortedObjs::operator[] ( size_t  _nIndex) const

direct access to the entries

Parameters
_nIndexinput parameter - index of entry, valid value range [0..size()-1]

Definition at line 47 of file sortedobjs.cxx.

References maSortedObjLst, and size().

void SwSortedObjs::Remove ( SwAnchoredObject _rAnchoredObj)

Definition at line 228 of file sortedobjs.cxx.

References maSortedObjLst.

Referenced by SwLayoutFrame::DestroyImpl(), SwFlyFreeFrame::DestroyImpl(), and Update().

size_t SwSortedObjs::size ( ) const

Definition at line 42 of file sortedobjs.cxx.

References maSortedObjLst.

Referenced by SwObjectFormatterLayFrame::AdditionalFormatObjsOnPage(), SwRootFrame::AssertPageFlys(), SwObjectFormatterTextFrame::AtLeastOneObjIsTmpConsiderWrapInfluence(), SwOrderIter::Bottom(), SwFlowFrame::BwdMoveNecessary(), CalcContent(), SwFlyFrame::CalcContentHeight(), SwTabFrame::CalcFlyOffsets(), SwRootFrame::CalcFrameRects(), SwTextFly::CalcMinBottom(), SwFrame::CheckDirChange(), SwAnchoredObject::ConsiderObjWrapInfluenceOfOtherObjs(), SwFlyFrame::DeleteCnt(), DelFlys(), SwLayoutFrame::DestroyImpl(), SwLayIdle::DoIdleJob(), SwFrame::dumpAsXml(), SwTextFrame::FormatAdjust(), SwObjectFormatter::FormatObjsAtFrame_(), SwFEShell::GetBox(), SwRootFrame::ImplCalcBrowseWidth(), SwTextFly::InitAnchoredObjList(), SwObjectFormatterTextFrame::InvalidateFollowObjs(), SwTextFly::IsAnyObj(), SwTextNode::IsCollapse(), lcl_ArrangeLowers(), lcl_hasTabFrame(), lcl_IsFlyHeightClipped(), lcl_MoveAllLowerObjs(), lcl_NotifyNeighbours(), lcl_SubtractFlys(), ListPosOf(), SwContentFrame::MakePrtArea(), SwTextFrame::MoveFlyInCnt(), SwAccessibleChildSList_const_iterator::next(), SwOrderIter::Next(), operator[](), SwLayAction::PaintWithoutFlys(), SwTextFrame::Prepare(), SwOrderIter::Prev(), SwLayAction::RemoveEmptyBrowserPages(), SwRootFrame::RemoveSuperfluous(), SwAnchoredObject::SetTmpConsiderWrapInfluenceOfOtherObjs(), sw_ChangeOffset(), SwAccessibleChildSList_const_iterator::SwAccessibleChildSList_const_iterator(), SwTextFrame::SwClientNotify(), SwOrderIter::Top(), Update(), SwAnchoredObject::UpdateObjInSortedList(), and SwFrame::ValidateThisAndAllLowers().

void SwSortedObjs::Update ( SwAnchoredObject _rAnchoredObj)

method to update the position of the given anchored object in the sorted list

Returns
boolean, indicating success of the update.

Definition at line 252 of file sortedobjs.cxx.

References Contains(), Insert(), Remove(), and size().

Referenced by SwAnchoredObject::UpdateObjInSortedList().

void SwSortedObjs::UpdateAll ( )

Definition at line 271 of file sortedobjs.cxx.

References maSortedObjLst.

Referenced by SwTextNode::Update().

Member Data Documentation

std::vector< SwAnchoredObject* > SwSortedObjs::maSortedObjLst
private

Definition at line 51 of file sortedobjs.hxx.

Referenced by Contains(), Insert(), is_sorted(), ListPosOf(), operator[](), Remove(), size(), and UpdateAll().


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