LibreOffice Module sw (master) 1
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes | List of all members
objectpositioning::SwAnchoredObjectPosition Class Referenceabstract

#include <anchoredobjectposition.hxx>

Inheritance diagram for objectpositioning::SwAnchoredObjectPosition:
[legend]
Collaboration diagram for objectpositioning::SwAnchoredObjectPosition:
[legend]

Public Member Functions

virtual void CalcPosition ()=0
 

Protected Member Functions

 SwAnchoredObjectPosition (SdrObject &_rDrawObj)
 
virtual ~SwAnchoredObjectPosition ()
 
SdrObjectGetObject () const
 
bool IsObjFly () const
 
SwAnchoredObjectGetAnchoredObj () const
 
SwFrameGetAnchorFrame () const
 
const SwFrameFormatGetFrameFormat () const
 
bool DoesObjFollowsTextFlow () const
 
virtual bool IsAnchoredToChar () const
 
virtual const SwFrameToCharOrientFrame () const
 
virtual const SwRectToCharRect () const
 
virtual SwTwips ToCharTopOfLine () const
 
SwTwips GetTopForObjPos (const SwFrame &_rFrame, const SwRectFn &_fnRect, const bool _bVert) const
 helper method to determine top of a frame for the vertical object positioning More...
 
void GetVertAlignmentValues (const SwFrame &_rVertOrientFrame, const SwFrame &_rPageAlignLayFrame, const sal_Int16 _eRelOrient, SwTwips &_orAlignAreaHeight, SwTwips &_orAlignAreaOffset) const
 
SwTwips GetVertRelPos (const SwFrame &_rVertOrientFrame, const SwFrame &_rPageAlignLayFrame, const sal_Int16 _eVertOrient, const sal_Int16 _eRelOrient, const SwTwips _nVertPos, const SvxLRSpaceItem &_rLRSpacing, const SvxULSpaceItem &_rULSpacing, SwTwips &_roVertOffsetToFrameAnchorPos) const
 
SwTwips AdjustVertRelPos (const SwTwips nTopOfAnch, const bool bVert, const bool bVertL2R, const SwFrame &rPageAlignLayFrame, const SwTwips nProposedRelPosY, const bool bFollowTextFlow, const bool bCheckBottom=true) const
 adjust calculated vertical in order to keep object inside 'page' alignment layout frame. More...
 
SwTwips CalcRelPosX (const SwFrame &_rHoriOrientFrame, const SwEnvironmentOfAnchoredObject &_rEnvOfObj, const SwFormatHoriOrient &_rHoriOrient, const SvxLRSpaceItem &_rLRSpacing, const SvxULSpaceItem &_rULSpacing, const bool _bObjWrapThrough, const SwTwips _nRelPosY, SwTwips &_roHoriOffsetToFrameAnchorPos) const
 calculate relative horizontal position More...
 
SwTwips AdjustHoriRelPos (const SwFrame &_rPageAlignLayFrame, const SwTwips _nProposedRelPosX) const
 adjust calculated horizontal in order to keep object inside 'page' alignment layout frame for object type position TO_CNTNT More...
 
void GetHoriAlignmentValues (const SwFrame &_rHoriOrientFrame, const SwFrame &_rPageAlignLayFrame, const sal_Int16 _eRelOrient, const bool _bObjWrapThrough, SwTwips &_orAlignAreaWidth, SwTwips &_orAlignAreaOffset, bool &_obAlignedRelToPage) const
 determine alignment values for horizontal position of object More...
 
SwTwips AdjustHoriRelPosForDrawAside (const SwFrame &_rHoriOrientFrame, const SwTwips _nProposedRelPosX, const SwTwips _nRelPosY, const sal_Int16 _eHoriOrient, const sal_Int16 _eRelOrient, const SvxLRSpaceItem &_rLRSpacing, const SvxULSpaceItem &_rULSpacing, const bool _bEvenPage) const
 adjust calculated horizontal position in order to draw object aside other objects with same positioning More...
 
bool DrawAsideFly (const SwFlyFrame *_pFly, const SwRect &_rObjRect, const SwFrame *_pObjContext, const SwNodeOffset _nObjIndex, const bool _bEvenPage, const sal_Int16 _eHoriOrient, const sal_Int16 _eRelOrient) const
 determine, if object has to draw aside given fly frame More...
 

Static Protected Member Functions

static void ToggleHoriOrientAndAlign (const bool _bToggleLeftRight, sal_Int16 &_ioeHoriOrient, sal_Int16 &_iopeRelOrient)
 toggle given horizontal orientation and relative alignment More...
 
static bool Minor_ (sal_Int16 _eRelOrient1, sal_Int16 _eRelOrient2, bool _bLeft)
 determine, if object has to draw aside another object More...
 

Private Member Functions

void GetInfoAboutObj ()
 determine information about object More...
 
SwTwips ImplAdjustVertRelPos (const SwTwips nTopOfAnch, const bool bVert, const bool bVertL2R, const SwFrame &rPageAlignLayFrame, const SwTwips nProposedRelPosY, const bool bFollowTextFlow, const bool bCheckBottom) const
 adjust calculated vertical in order to keep object inside 'page' alignment layout frame. More...
 
SwTwips ImplAdjustHoriRelPos (const SwFrame &_rPageAlignLayFrame, const SwTwips _nProposedRelPosX) const
 adjust calculated horizontal in order to keep object inside 'page' alignment layout frame. More...
 

Private Attributes

SdrObjectmrDrawObj
 
SwAnchoredObjectmpAnchoredObj
 
SwFramempAnchorFrame
 
SwContactmpContact
 
const SwFrameFormatmpFrameFormat
 
bool mbIsObjFly
 
bool mbFollowTextFlow
 
bool mbDoNotCaptureAnchoredObj
 

Detailed Description

Definition at line 41 of file anchoredobjectposition.hxx.

Constructor & Destructor Documentation

◆ SwAnchoredObjectPosition()

objectpositioning::SwAnchoredObjectPosition::SwAnchoredObjectPosition ( SdrObject _rDrawObj)
protected

Definition at line 47 of file anchoredobjectposition.cxx.

References GetInfoAboutObj(), and mrDrawObj.

◆ ~SwAnchoredObjectPosition()

objectpositioning::SwAnchoredObjectPosition::~SwAnchoredObjectPosition ( )
protectedvirtual

Definition at line 132 of file anchoredobjectposition.cxx.

Member Function Documentation

◆ AdjustHoriRelPos()

SwTwips objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPos ( const SwFrame _rPageAlignLayFrame,
const SwTwips  _nProposedRelPosX 
) const
inlineprotected

adjust calculated horizontal in order to keep object inside 'page' alignment layout frame for object type position TO_CNTNT

#i62875# - made inline, intrinsic actions moved to private method <ImplAdjustHoriRelPos>, which is only called, if <mbDoNotCaptureAnchoredObj> not set.

Parameters
_rPageAlignLayFrameinput parameter - layout frame, which determines the 'page area' the object has to be horizontal positioned in.
_nProposedRelPosXinput parameter - proposed relative horizontal position, which will be adjusted.
Returns
adjusted relative horizontal position in SwTwips.

Definition at line 263 of file anchoredobjectposition.hxx.

References ImplAdjustHoriRelPos(), and mbDoNotCaptureAnchoredObj.

Referenced by CalcRelPosX().

◆ AdjustHoriRelPosForDrawAside()

SwTwips objectpositioning::SwAnchoredObjectPosition::AdjustHoriRelPosForDrawAside ( const SwFrame _rHoriOrientFrame,
const SwTwips  _nProposedRelPosX,
const SwTwips  _nRelPosY,
const sal_Int16  _eHoriOrient,
const sal_Int16  _eRelOrient,
const SvxLRSpaceItem _rLRSpacing,
const SvxULSpaceItem _rULSpacing,
const bool  _bEvenPage 
) const
protected

adjust calculated horizontal position in order to draw object aside other objects with same positioning

Parameters
_rHoriOrientFrameinput parameter - frame the horizontal position of the object is oriented at.
_nProposedRelPosXinput parameter - proposed relative horizontal position, which will be adjusted.
_nRelPosYinput parameter - relative vertical position
_eHoriOrientinput parameter - horizontal position of object
_eRelOrientinput parameter - alignment of object
_rLRSpacinginput parameter - left and right spacing of the object to the text
_rULSpacinginput parameter - upper and lower spacing of the object to the text
_bEvenPageinput parameter - boolean indicating, if object is on an even page.
Returns
adjusted relative horizontal position in SwTwips

Definition at line 931 of file anchoredobjectposition.cxx.

References Point::AdjustX(), Point::AdjustY(), SwOrderIter::Bottom(), SwRect::Bottom(), Column, DrawAsideFly(), FindContext(), SwFrame::FindPageFrame(), GetAnchoredObj(), GetAnchorFrame(), SwFlyFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwNode::GetIndex(), SvxLRSpaceItem::GetLeft(), SvxULSpaceItem::GetLower(), SwFormat::GetLRSpace(), GetObject(), SdrObject::GetOrdNum(), SdrObject::GetOrdNumDirect(), SwRectFnSet::GetPos(), SvxLRSpaceItem::GetRight(), SwTextFrame::GetTextNodeFirst(), SwFormat::GetULSpace(), SvxULSpaceItem::GetUpper(), SwFlyFrame::GetVirtDrawObj(), SwRect::Height(), SwRectFnSet::IsVert(), SwRect::Left(), SwOrderIter::Next(), SwRect::Pos(), SwRect::Right(), SwRect::SSize(), SwRect::Top(), and SwRect::Width().

Referenced by CalcRelPosX().

◆ AdjustVertRelPos()

SwTwips objectpositioning::SwAnchoredObjectPosition::AdjustVertRelPos ( const SwTwips  nTopOfAnch,
const bool  bVert,
const bool  bVertL2R,
const SwFrame rPageAlignLayFrame,
const SwTwips  nProposedRelPosY,
const bool  bFollowTextFlow,
const bool  bCheckBottom = true 
) const
inlineprotected

adjust calculated vertical in order to keep object inside 'page' alignment layout frame.

#i31805# - add parameter <_bCheckBottom> #i26945# - add parameter <_bFollowTextFlow> #i62875# - made inline, intrinsic actions moved to private method <ImplAdjustVertRelPos>, which is only called, if <mbDoNotCaptureAnchoredObj> not set. OD 2009-09-01 #mongolianlayout# - add parameter <bVertL2R>

Parameters
nTopOfAnchinput parameter - 'vertical' position, at which the relative position of the object is calculated from.
bVertinput parameter - boolean, indicating, if object is in vertical layout.
bVertL2Rinput parameter - boolean, indicating, if object is in mongolian layout (vertical left-to-right layout).
rPageAlignLayFrameinput parameter - layout frame, which determines the 'page area' the object has to be vertical positioned in.
nProposedRelPosYinput parameter - proposed relative vertical position, which will be adjusted.
bFollowTextFlowinput parameter - value of attribute 'Follow text flow' of the anchored object.
bCheckBottominput parameter - boolean indicating, if bottom of anchored object has to be checked and thus, (if needed) the proposed relative position has to be adjusted. default value <true>

Definition at line 183 of file anchoredobjectposition.hxx.

References ImplAdjustVertRelPos(), and mbDoNotCaptureAnchoredObj.

Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition().

◆ CalcPosition()

virtual void objectpositioning::SwAnchoredObjectPosition::CalcPosition ( )
pure virtual

◆ CalcRelPosX()

SwTwips objectpositioning::SwAnchoredObjectPosition::CalcRelPosX ( const SwFrame _rHoriOrientFrame,
const SwEnvironmentOfAnchoredObject _rEnvOfObj,
const SwFormatHoriOrient _rHoriOrient,
const SvxLRSpaceItem _rLRSpacing,
const SvxULSpaceItem _rULSpacing,
const bool  _bObjWrapThrough,
const SwTwips  _nRelPosY,
SwTwips _roHoriOffsetToFrameAnchorPos 
) const
protected

calculate relative horizontal position

#i26791# - add output parameter <_roHoriOffsetToFrameAnchorPos>

Parameters
_rHoriOrientFrameinput parameter - frame the horizontal position of the object is oriented at.
_rEnvOfObjinput parameter - object instance to retrieve environment information about the object
_rHoriOrientinput parameter - horizontal positioning and alignment, for which the relative position is calculated.
_rLRSpacinginput parameter - left and right spacing of the object to the text
_rULSpacinginput parameter - upper and lower spacing of the object to the text
_bObjWrapThroughinput parameter - boolean indicating, if object has wrap mode 'wrap through'.
_nRelPosYinput parameter - relative vertical position
_roHoriOffsetToFrameAnchorPosoutput parameter - 'horizontal' offset to frame anchor position according to the alignment
Returns
relative horizontal position in SwTwips

Definition at line 814 of file anchoredobjectposition.cxx.

References AdjustHoriRelPos(), AdjustHoriRelPosForDrawAside(), GetAnchoredObj(), GetAnchorFrame(), SwFormat::GetFollowTextFlow(), SwFrameAreaDefinition::getFrameArea(), GetFrameFormat(), GetHoriAlignmentValues(), objectpositioning::SwEnvironmentOfAnchoredObject::GetHoriEnvironmentLayoutFrame(), SwFormatHoriOrient::GetHoriOrient(), SvxLRSpaceItem::GetLeft(), SwRectFnSet::GetLeft(), SvxULSpaceItem::GetLower(), SwFormatHoriOrient::GetPos(), SwFormatHoriOrient::GetRelationOrient(), SvxLRSpaceItem::GetRight(), SwFormatSurround::GetSurround(), SwFormat::GetSurround(), SvxULSpaceItem::GetUpper(), SfxBoolItem::GetValue(), SwRectFnSet::GetWidth(), IsAnchoredToChar(), SwFrame::IsInTab(), SwFormatHoriOrient::IsPosToggle(), SwFrame::IsRightToLeft(), SwRectFnSet::IsVert(), mpContact, SwPostItHelper::NONE, SwContact::ObjAnchoredAtChar(), SwContact::ObjAnchoredAtPara(), SwFrame::OnRightPage(), ToggleHoriOrientAndAlign(), and SwRectFnSet::XDiff().

Referenced by objectpositioning::SwToContentAnchoredObjectPosition::CalcPosition().

◆ DoesObjFollowsTextFlow()

bool objectpositioning::SwAnchoredObjectPosition::DoesObjFollowsTextFlow ( ) const
inlineprotected

◆ DrawAsideFly()

bool objectpositioning::SwAnchoredObjectPosition::DrawAsideFly ( const SwFlyFrame _pFly,
const SwRect _rObjRect,
const SwFrame _pObjContext,
const SwNodeOffset  _nObjIndex,
const bool  _bEvenPage,
const sal_Int16  _eHoriOrient,
const sal_Int16  _eRelOrient 
) const
protected

determine, if object has to draw aside given fly frame

method used by <AdjustHoriRelPosForDrawAside(..)>

Parameters
_pFlyinput parameter - fly frame the draw aside check is done for.
_rObjRectinput parameter - proposed object rectangle
_pObjContextinput parameter - context of the object
_nObjIndexinput parameter - index of the anchor frame of the object
_bEvenPageinput parameter - boolean indicating, if object is on an even page.
_eHoriOrientinput parameter - horizontal position of object
_eRelOrientinput parameter - alignment of object
Returns
boolean indicating, if object has to be drawn aside given fly frame.

method used by <AdjustHoriRelPosForDrawAside(..)>

Definition at line 1068 of file anchoredobjectposition.cxx.

References SwRectFnSet::BottomDist(), Column, FindContext(), sw::FrameContainsNode(), SwAnchoredObject::GetAnchorFrame(), GetAnchorFrame(), SwFlyFrame::GetFormat(), SwFrameAreaDefinition::getFrameArea(), SwFormatHoriOrient::GetHoriOrient(), SwFormat::GetHoriOrient(), SwFormatHoriOrient::GetRelationOrient(), SwRectFnSet::GetTop(), SwFlyFrame::IsFlyAtContentFrame(), SwFormatHoriOrient::IsPosToggle(), Minor_(), and ToggleHoriOrientAndAlign().

Referenced by AdjustHoriRelPosForDrawAside().

◆ GetAnchoredObj()

SwAnchoredObject & objectpositioning::SwAnchoredObjectPosition::GetAnchoredObj ( ) const
inlineprotected

◆ GetAnchorFrame()

SwFrame & objectpositioning::SwAnchoredObjectPosition::GetAnchorFrame ( ) const
inlineprotected

◆ GetFrameFormat()

const SwFrameFormat & objectpositioning::SwAnchoredObjectPosition::GetFrameFormat ( ) const
inlineprotected

◆ GetHoriAlignmentValues()

void objectpositioning::SwAnchoredObjectPosition::GetHoriAlignmentValues ( const SwFrame _rHoriOrientFrame,
const SwFrame _rPageAlignLayFrame,
const sal_Int16  _eRelOrient,
const bool  _bObjWrapThrough,
SwTwips _orAlignAreaWidth,
SwTwips _orAlignAreaOffset,
bool &  _obAlignedRelToPage 
) const
protected

determine alignment values for horizontal position of object

determine alignment value for horizontal position of object

Parameters
_rHoriOrientFrameinput parameter - frame the horizontal position of the object is oriented at.
_rPageAlignLayFrameinput parameter - layout frame, which determines the 'page area' the object has to be horizontal positioned in.
_eRelOrientinput parameter - horizontal relative alignment, for which the relative position is calculated.
_bToggleLeftRightinput parameter - boolean indicating, if left/right alignments have to be toggled.
_bObjWrapThroughinput parameter - boolean indicating, if object has wrap mode 'wrap through'. important note: value is only relevant, if _rHoriOrientFrame is a text frame.
_orAlignAreaWidthoutput parameter - width in SwTwips of the area the horizontal position is aligned to.
_orAlignAreaOffsetoutput parameter - offset in SwTwips of the area the horizontal position is aligned to. offset is given to the 'left' of the anchor position.
_obAlignedRelToPageoutput parameter - boolean indicating, that object is aligned to 'page area'.

Definition at line 606 of file anchoredobjectposition.cxx.

References SwFrameAreaDefinition::getFrameArea(), SwFrameAreaDefinition::getFramePrintArea(), SwRectFnSet::GetLeft(), SwRectFnSet::GetLeftMargin(), SwFrame::GetNext(), SwRectFnSet::GetPrtLeft(), SwRectFnSet::GetPrtRight(), SwRectFnSet::GetRight(), SwRectFnSet::GetRightMargin(), SwTextBoxHelper::getShapeWrapThrough(), SwRectFnSet::GetWidth(), SwRect::Height(), IsAnchoredToChar(), SwFrame::IsFooterFrame(), SwFrame::IsHeaderFrame(), SwFrame::IsPageFrame(), SwFrame::IsTextFrame(), SwRectFnSet::IsVert(), Lower, mpFrameFormat, ToCharOrientFrame(), ToCharRect(), and SwRectFnSet::XDiff().

Referenced by objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), and CalcRelPosX().

◆ GetInfoAboutObj()

void objectpositioning::SwAnchoredObjectPosition::GetInfoAboutObj ( )
private

determine information about object

member <mbIsObjFly>, <mpAnchoredObj>, <mpAnchorFrame>, <mpContact> and <mpFrameFormat> are set

members <mbIsObjFly>, <mpFrameOfObj>, <mpAnchorFrame>, <mpContact>, <mbFollowTextFlow> and <mbDoNotCaptureAnchoredObj> are set

Definition at line 76 of file anchoredobjectposition.cxx.

References SwAnchoredObject::AnchorFrame(), DO_NOT_CAPTURE_DRAW_OBJS_ON_PAGE, IDocumentSettingAccess::get(), SwContact::GetAnchoredObj(), SwFormat::GetFollowTextFlow(), SwAnchoredObject::GetFrameFormat(), SwFormat::getIDocumentSettingAccess(), SwFormatSurround::GetSurround(), SwFormat::GetSurround(), GetUserCall(), SfxBoolItem::GetValue(), SwTextBoxHelper::isTextBox(), mbDoNotCaptureAnchoredObj, mbFollowTextFlow, mbIsObjFly, mpAnchoredObj, mpAnchorFrame, mpContact, mpFrameFormat, mrDrawObj, and RES_FLYFRMFMT().

Referenced by SwAnchoredObjectPosition().

◆ GetObject()

SdrObject & objectpositioning::SwAnchoredObjectPosition::GetObject ( ) const
inlineprotected

◆ GetTopForObjPos()

SwTwips objectpositioning::SwAnchoredObjectPosition::GetTopForObjPos ( const SwFrame _rFrame,
const SwRectFn _fnRect,
const bool  _bVert 
) const
protected

◆ GetVertAlignmentValues()

void objectpositioning::SwAnchoredObjectPosition::GetVertAlignmentValues ( const SwFrame _rVertOrientFrame,
const SwFrame _rPageAlignLayFrame,
const sal_Int16  _eRelOrient,
SwTwips _orAlignAreaHeight,
SwTwips _orAlignAreaOffset 
) const
protected

◆ GetVertRelPos()

SwTwips objectpositioning::SwAnchoredObjectPosition::GetVertRelPos ( const SwFrame _rVertOrientFrame,
const SwFrame _rPageAlignLayFrame,
const sal_Int16  _eVertOrient,
const sal_Int16  _eRelOrient,
const SwTwips  _nVertPos,
const SvxLRSpaceItem _rLRSpacing,
const SvxULSpaceItem _rULSpacing,
SwTwips _roVertOffsetToFrameAnchorPos 
) const
protected

◆ ImplAdjustHoriRelPos()

SwTwips objectpositioning::SwAnchoredObjectPosition::ImplAdjustHoriRelPos ( const SwFrame _rPageAlignLayFrame,
const SwTwips  _nProposedRelPosX 
) const
private

adjust calculated horizontal in order to keep object inside 'page' alignment layout frame.

#i62875# - method now private and renamed.

Definition at line 555 of file anchoredobjectposition.cxx.

References SwRect::Bottom(), FindFrameFormat(), GetAnchoredObj(), GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), Size::Height(), SwAnchoredObject::IsDraggingOffPageAllowed(), SwFrame::IsVertical(), SwRect::Left(), mrDrawObj, SwRect::Right(), SSize, SwRect::Top(), and Size::Width().

Referenced by AdjustHoriRelPos().

◆ ImplAdjustVertRelPos()

SwTwips objectpositioning::SwAnchoredObjectPosition::ImplAdjustVertRelPos ( const SwTwips  nTopOfAnch,
const bool  bVert,
const bool  bVertL2R,
const SwFrame rPageAlignLayFrame,
const SwTwips  nProposedRelPosY,
const bool  bFollowTextFlow,
const bool  bCheckBottom 
) const
private

adjust calculated vertical in order to keep object inside 'page' alignment layout frame.

#i28701# - parameter <_nTopOfAnch> and <_bVert> added #i31805# - add parameter <_bCheckBottom> #i26945# - add parameter <_bFollowTextFlow> #i62875# - method now private and renamed. OD 2009-09-01 #mongolianlayout# - add parameter <bVertL2R>

Definition at line 431 of file anchoredobjectposition.cxx.

References SwRect::Bottom(), CONSIDER_WRAP_ON_OBJECT_POSITION, DISABLE_OFF_PAGE_POSITIONING, DoesObjFollowsTextFlow(), FindFrameFormat(), SwFrame::FindPageFrame(), sw::proofreadingiterator::get(), IDocumentSettingAccess::get(), GetAnchoredObj(), GetAnchorFrame(), SwFrameAreaDefinition::getFrameArea(), GetFrameFormat(), SwFormat::getIDocumentSettingAccess(), SwFrame::GetUpper(), Size::Height(), SwRect::Height(), IsAnchoredToChar(), SwAnchoredObject::IsDraggingOffPageAllowed(), SwFrame::IsFooterFrame(), SwFrame::IsHeaderFrame(), SwRect::Left(), mpFrameFormat, mrDrawObj, SwRect::Right(), SSize, SwRect::Top(), and Size::Width().

Referenced by AdjustVertRelPos().

◆ IsAnchoredToChar()

bool objectpositioning::SwAnchoredObjectPosition::IsAnchoredToChar ( ) const
protectedvirtual

◆ IsObjFly()

bool objectpositioning::SwAnchoredObjectPosition::IsObjFly ( ) const
inlineprotected

◆ Minor_()

bool objectpositioning::SwAnchoredObjectPosition::Minor_ ( sal_Int16  _eRelOrient1,
sal_Int16  _eRelOrient2,
bool  _bLeft 
)
staticprotected

determine, if object has to draw aside another object

the different alignments of the objects determines, if one has to draw aside another one. Thus, the given alignment are checked against each other, which one has to be drawn aside the other one. depending on parameter _bLeft check is done for left or right positioning. method used by <DrawAsideFly(..)>

Parameters
_eRelOrient1input parameter - alignment 1
_eRelOrient2input parameter - alignment 2
_bLeftinput parameter - boolean indicating, if check is done for left or for right positioning.
Returns
boolean indicating, if an object with an alignment <_eRelOrient1> has to be drawn aside an object with an alignment <_eRelOrient2>

the different alignments of the objects determines, if one has to draw aside another one. Thus, the given alignment are checked against each other, which one has to be drawn aside the other one. depending on parameter _bLeft check is done for left or right positioning. method used by <DrawAsideFly(..)>

one array entry for each value in text::RelOrientation

one array entry for each value in text::RelOrientation

Definition at line 1120 of file anchoredobjectposition.cxx.

Referenced by DrawAsideFly().

◆ ToCharOrientFrame()

const SwFrame * objectpositioning::SwAnchoredObjectPosition::ToCharOrientFrame ( ) const
protectedvirtual

◆ ToCharRect()

const SwRect * objectpositioning::SwAnchoredObjectPosition::ToCharRect ( ) const
protectedvirtual

◆ ToCharTopOfLine()

SwTwips objectpositioning::SwAnchoredObjectPosition::ToCharTopOfLine ( ) const
protectedvirtual

◆ ToggleHoriOrientAndAlign()

void objectpositioning::SwAnchoredObjectPosition::ToggleHoriOrientAndAlign ( const bool  _bToggleLeftRight,
sal_Int16 &  _ioeHoriOrient,
sal_Int16 &  _iopeRelOrient 
)
staticprotected

toggle given horizontal orientation and relative alignment

Parameters
_bToggleLeftRightinput parameter - boolean indicating, if horizontal orientation and relative alignment has to be toggled.
_ioeHoriOrientinput/output parameter - horizontal orientation, that is toggled, if needed.
_iopeRelOrientoptional input/output parameter (default value NULL)
  • if set, relative alignment, that is toggled, if needed.

Definition at line 759 of file anchoredobjectposition.cxx.

Referenced by objectpositioning::SwToLayoutAnchoredObjectPosition::CalcPosition(), CalcRelPosX(), and DrawAsideFly().

Member Data Documentation

◆ mbDoNotCaptureAnchoredObj

bool objectpositioning::SwAnchoredObjectPosition::mbDoNotCaptureAnchoredObj
private

Definition at line 60 of file anchoredobjectposition.hxx.

Referenced by AdjustHoriRelPos(), AdjustVertRelPos(), and GetInfoAboutObj().

◆ mbFollowTextFlow

bool objectpositioning::SwAnchoredObjectPosition::mbFollowTextFlow
private

Definition at line 57 of file anchoredobjectposition.hxx.

Referenced by DoesObjFollowsTextFlow(), and GetInfoAboutObj().

◆ mbIsObjFly

bool objectpositioning::SwAnchoredObjectPosition::mbIsObjFly
private

Definition at line 55 of file anchoredobjectposition.hxx.

Referenced by GetInfoAboutObj(), and IsObjFly().

◆ mpAnchoredObj

SwAnchoredObject* objectpositioning::SwAnchoredObjectPosition::mpAnchoredObj
private

Definition at line 47 of file anchoredobjectposition.hxx.

Referenced by GetAnchoredObj(), and GetInfoAboutObj().

◆ mpAnchorFrame

SwFrame* objectpositioning::SwAnchoredObjectPosition::mpAnchorFrame
private

Definition at line 49 of file anchoredobjectposition.hxx.

Referenced by GetAnchorFrame(), and GetInfoAboutObj().

◆ mpContact

SwContact* objectpositioning::SwAnchoredObjectPosition::mpContact
private

Definition at line 51 of file anchoredobjectposition.hxx.

Referenced by CalcRelPosX(), and GetInfoAboutObj().

◆ mpFrameFormat

const SwFrameFormat* objectpositioning::SwAnchoredObjectPosition::mpFrameFormat
private

◆ mrDrawObj

SdrObject& objectpositioning::SwAnchoredObjectPosition::mrDrawObj
private

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