20#ifndef INCLUDED_SW_SOURCE_CORE_INC_ANCHOREDOBJECTPOSITION_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_ANCHOREDOBJECTPOSITION_HXX
74 const SwFrame& rPageAlignLayFrame,
76 const bool bFollowTextFlow,
77 const bool bCheckBottom )
const;
79 const SwTwips _nProposedRelPosX )
const;
126 const bool _bVert )
const;
129 const SwFrame& _rPageAlignLayFrame,
130 const sal_Int16 _eRelOrient,
132 SwTwips& _orAlignAreaOffset )
const;
136 const SwFrame& _rPageAlignLayFrame,
137 const sal_Int16 _eVertOrient,
138 const sal_Int16 _eRelOrient,
142 SwTwips& _roVertOffsetToFrameAnchorPos )
const;
186 const SwFrame& rPageAlignLayFrame,
187 const SwTwips nProposedRelPosY,
188 const bool bFollowTextFlow,
189 const bool bCheckBottom =
true )
const
241 const bool _bObjWrapThrough,
243 SwTwips& _roHoriOffsetToFrameAnchorPos
264 const SwTwips _nProposedRelPosX )
const
286 sal_Int16& _ioeHoriOrient,
287 sal_Int16& _iopeRelOrient
328 const SwFrame& _rPageAlignLayFrame,
329 const sal_Int16 _eRelOrient,
330 const bool _bObjWrapThrough,
333 bool& _obAlignedRelToPage )
const;
367 const SwTwips _nProposedRelPosX,
369 const sal_Int16 _eHoriOrient,
370 const sal_Int16 _eRelOrient,
373 const bool _bEvenPage
408 const bool _bEvenPage,
409 const sal_Int16 _eHoriOrient,
410 const sal_Int16 _eRelOrient
436 static bool Minor_( sal_Int16 _eRelOrient1,
437 sal_Int16 _eRelOrient2,
wrapper class for the positioning of Writer fly frames and drawing objects
general base class for all free-flowing frames
Base class of the Writer layout elements.
Of course Writer needs its own rectangles.
const SwFrameFormat * mpFrameFormat
bool DoesObjFollowsTextFlow() const
SwTwips AdjustHoriRelPos(const SwFrame &_rPageAlignLayFrame, const SwTwips _nProposedRelPosX) const
adjust calculated horizontal in order to keep object inside 'page' alignment layout frame for object ...
SwAnchoredObject & GetAnchoredObj() const
SwTwips ImplAdjustHoriRelPos(const SwFrame &_rPageAlignLayFrame, const SwTwips _nProposedRelPosX) const
adjust calculated horizontal in order to keep object inside 'page' alignment layout frame.
virtual SwTwips ToCharTopOfLine() const
void GetInfoAboutObj()
determine information about object
SwAnchoredObject * mpAnchoredObj
virtual bool IsAnchoredToChar() const
virtual void CalcPosition()=0
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
bool mbDoNotCaptureAnchoredObj
virtual ~SwAnchoredObjectPosition()
virtual const SwFrame * ToCharOrientFrame() const
static void ToggleHoriOrientAndAlign(const bool _bToggleLeftRight, sal_Int16 &_ioeHoriOrient, sal_Int16 &_iopeRelOrient)
toggle given horizontal orientation and relative alignment
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 positioni...
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.
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
const SwFrameFormat & GetFrameFormat() const
static bool Minor_(sal_Int16 _eRelOrient1, sal_Int16 _eRelOrient2, bool _bLeft)
determine, if object has to draw aside another object
void GetVertAlignmentValues(const SwFrame &_rVertOrientFrame, const SwFrame &_rPageAlignLayFrame, const sal_Int16 _eRelOrient, SwTwips &_orAlignAreaHeight, SwTwips &_orAlignAreaOffset) const
SdrObject & GetObject() const
virtual const SwRect * ToCharRect() const
SwFrame & GetAnchorFrame() const
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
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 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.
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
SwAnchoredObjectPosition(SdrObject &_rDrawObj)