LibreOffice Module sw (master) 1
Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
SwObjectFormatterLayFrame Class Reference

#include <objectformatterlayfrm.hxx>

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

Public Member Functions

virtual ~SwObjectFormatterLayFrame () override
 
virtual bool DoFormatObj (SwAnchoredObject &_rAnchoredObj, const bool _bCheckForMovedFwd=false) override
 intrinsic method to format a certain floating screen object More...
 
virtual bool DoFormatObjs () override
 intrinsic method to format all floating screen objects More...
 
- Public Member Functions inherited from SwObjectFormatter
virtual ~SwObjectFormatter ()
 
virtual bool DoFormatObj (SwAnchoredObject &_rAnchoredObj, const bool _bCheckForMovedFwd=false)=0
 intrinsic method to format a certain floating screen object More...
 
virtual bool DoFormatObjs ()=0
 intrinsic method to format all floating screen objects More...
 

Static Public Member Functions

static std::unique_ptr< SwObjectFormatterLayFrameCreateObjFormatter (SwLayoutFrame &_rAnchorLayFrame, const SwPageFrame &_rPageFrame, SwLayAction *_pLayAction)
 
- Static Public Member Functions inherited from SwObjectFormatter
static bool FormatObjsAtFrame (SwFrame &_rAnchorFrame, const SwPageFrame &_rPageFrame, SwLayAction *_pLayAction=nullptr)
 method to format all floating screen objects at the given anchor frame More...
 
static bool FormatObj (SwAnchoredObject &_rAnchoredObj, SwFrame *_pAnchorFrame=nullptr, const SwPageFrame *_pPageFrame=nullptr)
 method to format a given floating screen object More...
 

Protected Member Functions

virtual SwFrameGetAnchorFrame () override
 
- Protected Member Functions inherited from SwObjectFormatter
 SwObjectFormatter (const SwPageFrame &_rPageFrame, SwLayAction *_pLayAction, const bool _bCollectPgNumOfAnchors=false)
 
virtual SwFrameGetAnchorFrame ()=0
 
const SwPageFrameGetPageFrame () const
 
bool ConsiderWrapOnObjPos () const
 
SwLayActionGetLayAction ()
 
void FormatObj_ (SwAnchoredObject &_rAnchoredObj)
 performs the intrinsic format of a given floating screen object and its content. More...
 
bool FormatObjsAtFrame_ (SwTextFrame *_pMasterTextFrame=nullptr)
 invokes the intrinsic format method for all floating screen objects, anchored at anchor frame on the given page frame More...
 
SwAnchoredObjectGetCollectedObj (const sal_uInt32 _nIndex)
 accessor to collected anchored object More...
 
sal_uInt32 GetPgNumOfCollected (const sal_uInt32 _nIndex)
 accessor to 'anchor' page number of collected anchored object More...
 
bool IsCollectedAnchoredAtMaster (const sal_uInt32 _nIndex)
 accessor to 'anchor' type of collected anchored object More...
 
sal_uInt32 CountOfCollected ()
 accessor to total number of collected anchored objects More...
 

Private Member Functions

 SwObjectFormatterLayFrame (SwLayoutFrame &_rAnchorLayFrame, const SwPageFrame &_rPageFrame, SwLayAction *_pLayAction)
 
bool AdditionalFormatObjsOnPage ()
 method to format all anchored objects, which are registered at the page frame, whose 'anchor' isn't on this page frame and whose anchor frame is valid. More...
 

Private Attributes

SwLayoutFramemrAnchorLayFrame
 

Additional Inherited Members

- Static Protected Member Functions inherited from SwObjectFormatter
static std::unique_ptr< SwObjectFormatterCreateObjFormatter (SwFrame &_rAnchorFrame, const SwPageFrame &_rPageFrame, SwLayAction *_pLayAction)
 

Detailed Description

Definition at line 28 of file objectformatterlayfrm.hxx.

Constructor & Destructor Documentation

◆ SwObjectFormatterLayFrame()

SwObjectFormatterLayFrame::SwObjectFormatterLayFrame ( SwLayoutFrame _rAnchorLayFrame,
const SwPageFrame _rPageFrame,
SwLayAction _pLayAction 
)
private

Definition at line 28 of file objectformatterlayfrm.cxx.

Referenced by CreateObjFormatter().

◆ ~SwObjectFormatterLayFrame()

SwObjectFormatterLayFrame::~SwObjectFormatterLayFrame ( )
overridevirtual

Definition at line 36 of file objectformatterlayfrm.cxx.

Member Function Documentation

◆ AdditionalFormatObjsOnPage()

bool SwObjectFormatterLayFrame::AdditionalFormatObjsOnPage ( )
private

method to format all anchored objects, which are registered at the page frame, whose 'anchor' isn't on this page frame and whose anchor frame is valid.

OD 2004-07-02 #i28701#

Returns
boolean indicates, if format was successful

OD 2004-07-02 #i28701#

Definition at line 106 of file objectformatterlayfrm.cxx.

References DoFormatObj(), SwFrame::FindFlyFrame(), SwAnchoredObject::FindPageFrameOfAnchor(), SwAnchoredObject::GetAnchorFrame(), GetAnchorFrame(), SwObjectFormatter::GetLayAction(), SwPageFrame::GetPhyPageNum(), SwPageFrame::GetSortedObjs(), i, SwSortedObjs::ListPosOf(), size, and SwSortedObjs::size().

Referenced by DoFormatObjs().

◆ CreateObjFormatter()

std::unique_ptr< SwObjectFormatterLayFrame > SwObjectFormatterLayFrame::CreateObjFormatter ( SwLayoutFrame _rAnchorLayFrame,
const SwPageFrame _rPageFrame,
SwLayAction _pLayAction 
)
static

◆ DoFormatObj()

bool SwObjectFormatterLayFrame::DoFormatObj ( SwAnchoredObject _rAnchoredObj,
const bool  _bCheckForMovedFwd = false 
)
overridevirtual

intrinsic method to format a certain floating screen object

#i40147# - add parameter <_bCheckForMovedFwd>

Parameters
_rAnchoredObjinput parameter - anchored object, which have to be formatted.
_bCheckForMovedFwdinput parameter - boolean indicating, that after a successful format of the anchored object the anchor frame has to be checked, if it would moved forward due to the positioning of the anchored object. default value: false value only considered, if wrapping style influence has to be considered for the positioning of the anchored object.

Implements SwObjectFormatter.

Definition at line 74 of file objectformatterlayfrm.cxx.

References SwObjectFormatter::FormatObj_(), SwObjectFormatter::GetLayAction(), and SwLayAction::IsAgain().

Referenced by AdditionalFormatObjsOnPage().

◆ DoFormatObjs()

bool SwObjectFormatterLayFrame::DoFormatObjs ( )
overridevirtual

intrinsic method to format all floating screen objects

Implements SwObjectFormatter.

Definition at line 84 of file objectformatterlayfrm.cxx.

References AdditionalFormatObjsOnPage(), SwObjectFormatter::FormatObjsAtFrame_(), and GetAnchorFrame().

◆ GetAnchorFrame()

SwFrame & SwObjectFormatterLayFrame::GetAnchorFrame ( )
overrideprotectedvirtual

Implements SwObjectFormatter.

Definition at line 67 of file objectformatterlayfrm.cxx.

References mrAnchorLayFrame.

Referenced by AdditionalFormatObjsOnPage(), and DoFormatObjs().

Member Data Documentation

◆ mrAnchorLayFrame

SwLayoutFrame& SwObjectFormatterLayFrame::mrAnchorLayFrame
private

Definition at line 32 of file objectformatterlayfrm.hxx.

Referenced by GetAnchorFrame().


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