LibreOffice Module sw (master) 1
|
#include <objectformatter.hxx>
Public Member Functions | |
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 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 | |
SwObjectFormatter (const SwPageFrame &_rPageFrame, SwLayAction *_pLayAction, const bool _bCollectPgNumOfAnchors=false) | |
virtual SwFrame & | GetAnchorFrame ()=0 |
const SwPageFrame & | GetPageFrame () const |
bool | ConsiderWrapOnObjPos () const |
SwLayAction * | GetLayAction () |
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... | |
SwAnchoredObject * | GetCollectedObj (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... | |
Static Protected Member Functions | |
static std::unique_ptr< SwObjectFormatter > | CreateObjFormatter (SwFrame &_rAnchorFrame, const SwPageFrame &_rPageFrame, SwLayAction *_pLayAction) |
Private Member Functions | |
void | FormatLayout_ (SwLayoutFrame &_rLayoutFrame) |
helper method for method <FormatObj_(..)> - performs the intrinsic format of the layout of the given layout frame and all its lower layout frames. More... | |
void | FormatObjContent (SwAnchoredObject &_rAnchoredObj) |
helper method for method <FormatObj_(..)> - performs the intrinsic format of the content of the given floating screen object. More... | |
Private Attributes | |
const SwPageFrame & | mrPageFrame |
const bool | mbConsiderWrapOnObjPos |
SwLayAction * | mpLayAction |
std::unique_ptr< SwPageNumAndTypeOfAnchors > | mpPgNumAndTypeOfAnchors |
Definition at line 39 of file objectformatter.hxx.
|
protected |
Definition at line 104 of file objectformatter.cxx.
References CONSIDER_WRAP_ON_OBJECT_POSITION, and GetFormat().
|
virtual |
Definition at line 115 of file objectformatter.cxx.
|
inlineprotected |
Definition at line 91 of file objectformatter.hxx.
References mbConsiderWrapOnObjPos.
Referenced by SwObjectFormatterTextFrame::DoFormatObjs().
|
protected |
accessor to total number of collected anchored objects
#i28701#
Definition at line 473 of file objectformatter.cxx.
References mpPgNumAndTypeOfAnchors.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), and SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor().
|
staticprotected |
Definition at line 119 of file objectformatter.cxx.
References SwObjectFormatterLayFrame::CreateObjFormatter(), SwObjectFormatterTextFrame::CreateObjFormatter(), SwFrame::IsLayoutFrame(), and SwFrame::IsTextFrame().
Referenced by FormatObj(), and FormatObjsAtFrame().
|
pure virtual |
intrinsic method to format a certain floating screen object
#i40147# - add parameter <_bCheckForMovedFwd>
_rAnchoredObj | input parameter - anchored object, which have to be formatted. |
_bCheckForMovedFwd | input 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. |
Implemented in SwObjectFormatterLayFrame, and SwObjectFormatterTextFrame.
Referenced by FormatObjsAtFrame_().
|
pure virtual |
intrinsic method to format all floating screen objects
Implemented in SwObjectFormatterLayFrame, and SwObjectFormatterTextFrame.
|
private |
helper method for method <FormatObj_(..)> - performs the intrinsic format of the layout of the given layout frame and all its lower layout frames.
#i28701# IMPORTANT NOTE: Method corresponds to methods <SwLayAction::FormatLayoutFly(..)> and <SwLayAction::FormatLayout(..)>. Thus, its code for the formatting have to be synchronised.
Definition at line 205 of file objectformatter.cxx.
References SwFrame::Calc(), FormatLayout_(), SwRootFrame::GetCurrShell(), SwFrame::GetNext(), SwViewShell::GetOut(), SwFrame::getRootFrame(), SwFrame::IsLayoutFrame(), and SwLayoutFrame::Lower().
Referenced by FormatLayout_(), and FormatObj_().
|
static |
method to format a given floating screen object
Definition at line 168 of file objectformatter.cxx.
References SwAnchoredObject::AnchorFrame(), CreateObjFormatter(), SwFrame::FindPageFrame(), and SwAnchoredObject::GetAnchorFrame().
Referenced by SwTextFlyCnt::GetFlyFrame_(), and GetFrameOfModify().
|
protected |
performs the intrinsic format of a given floating screen object and its content.
#i28701#
Definition at line 263 of file objectformatter.cxx.
References SwAnchoredObject::DynCastFlyFrame(), SwLayAction::FormatFlyContent(), FormatLayout_(), SwLayAction::FormatLayoutFly(), FormatObjContent(), FormatObjsAtFrame(), GetAnchorFrame(), SwLayAction::IsAgain(), SwAnchoredObject::MakeObjPos(), mpLayAction, mpPgNumAndTypeOfAnchors, and SwAnchoredObject::RestartLayoutProcess().
Referenced by SwObjectFormatterLayFrame::DoFormatObj(), and SwObjectFormatterTextFrame::DoFormatObj().
|
private |
helper method for method <FormatObj_(..)> - performs the intrinsic format of the content of the given floating screen object.
#i28701#
Definition at line 225 of file objectformatter.cxx.
References SwLayoutFrame::ContainsContent(), SwAnchoredObject::DynCastFlyFrame(), SwFrame::FindPageFrame(), FormatObjsAtFrame(), GetLayAction(), SwContentFrame::GetNextContentFrame(), SwFrame::IsTextFrame(), and SwFrame::OptCalc().
Referenced by FormatObj_().
|
static |
method to format all floating screen objects at the given anchor frame
Definition at line 147 of file objectformatter.cxx.
References CreateObjFormatter().
Referenced by SwFootnoteBossFrame::AppendFootnote(), SwContentFrame::CalcLowers(), SwLayAction::FormatFlyContent(), FormatObj_(), FormatObjContent(), SwHeadFootFrame::FormatSize(), SwLayAction::InternalAction(), SwFootnoteBossFrame::MoveFootnotes_(), SwFootnoteBossFrame::RearrangeFootnotes(), and SwLayAction::TurboAction_().
|
protected |
invokes the intrinsic format method for all floating screen objects, anchored at anchor frame on the given page frame
for format of floating screen objects for follow text frames, the 'master' text frame is passed to the method. Thus, the objects, whose anchor character is inside the follow text frame can be formatted.
_pMasterTextFrame | input parameter - pointer to 'master' text frame. default value: NULL |
#i28701# #i26945# - for format of floating screen objects for follow text frames, the 'master' text frame is passed to the method. Thus, the objects, whose anchor character is inside the follow text frame can be formatted.
Definition at line 352 of file objectformatter.cxx.
References SwAnchoredObject::AnchorFrame(), DoFormatObj(), SwAnchoredObject::FindAnchorCharFrame(), SwFrame::FindBodyFrame(), SwAnchoredObject::FindPageFrameOfAnchor(), SwAnchoredObject::GetAnchorFrame(), GetAnchorFrame(), SwFrame::GetDrawObjs(), i, SwSortedObjs::ListPosOf(), mrPageFrame, size, and SwSortedObjs::size().
Referenced by SwObjectFormatterLayFrame::DoFormatObjs(), and SwObjectFormatterTextFrame::DoFormatObjs().
|
protectedpure virtual |
Implemented in SwObjectFormatterLayFrame, and SwObjectFormatterTextFrame.
Referenced by FormatObj_(), and FormatObjsAtFrame_().
|
protected |
accessor to collected anchored object
#i28701#
Definition at line 445 of file objectformatter.cxx.
References mpPgNumAndTypeOfAnchors.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), and SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor().
|
inlineprotected |
Definition at line 96 of file objectformatter.hxx.
References mpLayAction.
Referenced by SwObjectFormatterLayFrame::AdditionalFormatObjsOnPage(), SwObjectFormatterLayFrame::DoFormatObj(), SwObjectFormatterTextFrame::DoFormatObj(), SwObjectFormatterTextFrame::DoFormatObjs(), and FormatObjContent().
|
inlineprotected |
Definition at line 86 of file objectformatter.hxx.
References mrPageFrame.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), SwObjectFormatterTextFrame::DoFormatObjs(), SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor(), and SwObjectFormatterTextFrame::InvalidateFollowObjs().
|
protected |
accessor to 'anchor' page number of collected anchored object
#i28701#
Definition at line 454 of file objectformatter.cxx.
References mpPgNumAndTypeOfAnchors.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), and SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor().
|
protected |
accessor to 'anchor' type of collected anchored object
#i26945#
Definition at line 463 of file objectformatter.cxx.
References mpPgNumAndTypeOfAnchors.
Referenced by SwObjectFormatterTextFrame::DoFormatObj(), and SwObjectFormatterTextFrame::GetFirstObjWithMovedFwdAnchor().
|
private |
Definition at line 47 of file objectformatter.hxx.
Referenced by ConsiderWrapOnObjPos().
|
private |
Definition at line 50 of file objectformatter.hxx.
Referenced by FormatObj_(), and GetLayAction().
|
private |
Definition at line 54 of file objectformatter.hxx.
Referenced by CountOfCollected(), FormatObj_(), GetCollectedObj(), GetPgNumOfCollected(), and IsCollectedAnchoredAtMaster().
|
private |
Definition at line 43 of file objectformatter.hxx.
Referenced by FormatObjsAtFrame_(), and GetPageFrame().