19#ifndef INCLUDED_SW_INC_ANCHOREDOBJECT_HXX
20#define INCLUDED_SW_INC_ANCHOREDOBJECT_HXX
25#include <libxml/xmlwriter.h>
112 bool mbForceNotifyNewBackground =
false;
125 mbPositioningInProgress = _bPosInProgress;
172 void SetVertPosOrientFrame(
const SwLayoutFrame& _rVertPosOrientFrame );
180 virtual void ObjectAttachedToAnchorFrame();
185 bool ConsiderObjWrapInfluenceOfOtherObjs()
const;
190 void SetTmpConsiderWrapInfluenceOfOtherObjs();
209 void ChgAnchorFrame(
SwFrame* _pNewAnchorFrame );
217 SwFrame* GetAnchorFrameContainingAnchPos();
253 return mpVertPosOrientFrame;
256 void ClearVertPosOrientFrame();
269 void CheckCharRectAndTopOfLine(
const bool _bCheckForParaPorInf );
276 void ResetLastCharRectHeight();
280 void AddLastTopOfLineY(
SwTwips _nDiff );
283 void ClearCharRectAndTopOfLine();
293 return mbPositioningInProgress;
297 bool InvalidationOfPosAllowed()
const;
308 void InvalidateObjPosForConsiderWrapInfluence();
318 void SetCurrRelPos(
Point _aRelPos );
327 void SetObjTop(
const SwTwips _nTop);
328 void SetObjLeft(
const SwTwips _nLeft);
336 virtual void UpdateLayoutDir();
339 const SwRect& GetObjRectWithSpaces()
const;
343 mbObjRectWithSpacesValid =
false;
352 bool ConsiderObjWrapInfluenceOnObjPos()
const;
355 bool ConsiderForTextWrap()
const;
356 void SetConsiderForTextWrap(
const bool _bConsiderForTextWrap );
357 bool PositionLocked()
const;
360 mbPositionLocked =
true;
364 if ( !mbKeepPositionLockedForSection )
366 mbPositionLocked =
false;
372 mbKeepPositionLockedForSection = _bKeepPosLocked;
375 bool RestartLayoutProcess()
const;
376 void SetRestartLayoutProcess(
const bool _bRestartLayoutProcess );
378 bool ClearedEnvironment()
const;
379 void SetClearedEnvironment(
const bool _bClearedEnvironment );
384 mbPositioningInProgress =
false;
385 mbConsiderForTextWrap =
false;
386 mbPositionLocked =
false;
387 mbKeepPositionLockedForSection =
false;
388 mbRestartLayoutProcess =
false;
389 mbClearedEnvironment =
false;
390 mbTmpConsiderWrapInfluence =
false;
396 bool HasClearedEnvironment()
const;
415 virtual bool IsFormatPossible()
const;
424 void SetTmpConsiderWrapInfluence(
const bool _bTmpConsiderWrapInfluence );
426 void ClearTmpConsiderWrapInfluence();
439 bool OverlapsPrevColumn()
const;
448 Point GetRelPosToAnchorFrame()
const;
469 Point GetRelPosToPageFrame(
const bool _bFollowTextFlow,
470 bool& _obRelToTableCell )
const;
479 Point GetRelPosToChar()
const;
488 Point GetRelPosToLine()
const;
498 virtual const SwFlyFrame* DynCastFlyFrame()
const;
wrapper class for the positioning of Writer fly frames and drawing objects
const SwFrame * GetAnchorFrame() const
virtual void RegisterAtPage(SwPageFrame &)=0
virtual SwRect GetObjBoundRect() const =0
virtual void NotifyBackground(SwPageFrame *_pPageFrame, const SwRect &_rRect, PrepareHint _eHint)=0
method to trigger notification of 'background'
rtl::Reference< SdrObject > mpDrawObj
const SwLayoutFrame * mpVertPosOrientFrame
virtual void RegisterAtCorrectPage()=0
method to assure that anchored object is registered at the correct page frame
void ResetLayoutProcessBools()
virtual bool SetObjLeft_(const SwTwips _nLeft)=0
bool mbConsiderForTextWrap
const SwLayoutFrame * GetVertPosOrientFrame() const
virtual const char * getElementName() const
The element name to show in the XML dump.
bool mbKeepPositionLockedForSection
void SetForceNotifyNewBackground(bool const b)
const SwPageFrame * GetPageFrame() const
virtual SwFrameFormat & GetFrameFormat()=0
bool mbObjRectWithSpacesValid
void SetKeepPosLocked(const bool _bKeepPosLocked)
virtual bool SetObjTop_(const SwTwips _nTop)=0
virtual void MakeObjPos()=0
method to determine position for the object and set the position at the object
bool mbClearedEnvironment
SwPageFrame * GetPageFrame()
SwRect maObjRectWithSpaces
bool mbRestartLayoutProcess
bool IsTmpConsiderWrapInfluence() const
const SwRect & GetLastCharRect() const
bool IsForceNotifyNewBackground()
SwTwips GetLastTopOfLine() const
virtual void InvalidateObjPos()=0
method to invalidate position of the anchored object
virtual const SwFrameFormat & GetFrameFormat() const =0
void InvalidateObjRectWithSpaces() const
SwPageFrame * mpPageFrame
const SdrObject * GetDrawObj() const
bool mbPositioningInProgress
void SetPositioningInProgress(const bool _bPosInProgress)
virtual SwRect GetObjRect() const =0
SwFrame * mpAnchorFrame
Frame the object is anchored at.
bool mbTmpConsiderWrapInfluence
bool IsPositioningInProgress() const
is positioning of anchored object in progress
const Point & GetCurrRelPos() const
general base class for all free-flowing frames
Base class of the Writer layout elements.
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame.
Helper class for notify that positioning of an anchored object is in progress.
bool mbOldObjPositioningInProgress
SwObjPositioningInProgress(SdrObject &_rSdrObj)
SwAnchoredObject * mpAnchoredObj
~SwObjPositioningInProgress()
A page of the document layout.
Of course Writer needs its own rectangles.
Represents the visualization of a paragraph.
struct _xmlTextWriter * xmlTextWriterPtr
Marks a position in the document model.
bool sw_HideObj(const SwTextFrame &_rFrame, const RndStdIds _eAnchorType, SwFormatAnchor const &rFormatAnchor, SwAnchoredObject *_pAnchoredObj)
as-character anchored graphics, which are used for a graphic bullet list.