19#ifndef INCLUDED_SW_INC_ANCHOREDOBJECT_HXX
20#define INCLUDED_SW_INC_ANCHOREDOBJECT_HXX
25#include <libxml/xmlwriter.h>
123 mbPositioningInProgress = _bPosInProgress;
170 void SetVertPosOrientFrame(
const SwLayoutFrame& _rVertPosOrientFrame );
178 virtual void ObjectAttachedToAnchorFrame();
183 bool ConsiderObjWrapInfluenceOfOtherObjs()
const;
188 void SetTmpConsiderWrapInfluenceOfOtherObjs();
207 void ChgAnchorFrame(
SwFrame* _pNewAnchorFrame );
215 SwFrame* GetAnchorFrameContainingAnchPos();
251 return mpVertPosOrientFrame;
254 void ClearVertPosOrientFrame();
267 void CheckCharRectAndTopOfLine(
const bool _bCheckForParaPorInf );
274 void ResetLastCharRectHeight();
278 void AddLastTopOfLineY(
SwTwips _nDiff );
281 void ClearCharRectAndTopOfLine();
291 return mbPositioningInProgress;
295 bool InvalidationOfPosAllowed()
const;
306 void InvalidateObjPosForConsiderWrapInfluence();
316 void SetCurrRelPos( Point _aRelPos );
325 void SetObjTop(
const SwTwips _nTop);
326 void SetObjLeft(
const SwTwips _nLeft);
334 virtual void UpdateLayoutDir();
337 const SwRect& GetObjRectWithSpaces()
const;
341 mbObjRectWithSpacesValid =
false;
350 bool ConsiderObjWrapInfluenceOnObjPos()
const;
353 bool ConsiderForTextWrap()
const;
354 void SetConsiderForTextWrap(
const bool _bConsiderForTextWrap );
355 bool PositionLocked()
const;
358 mbPositionLocked =
true;
362 if ( !mbKeepPositionLockedForSection )
364 mbPositionLocked =
false;
370 mbKeepPositionLockedForSection = _bKeepPosLocked;
373 bool RestartLayoutProcess()
const;
374 void SetRestartLayoutProcess(
const bool _bRestartLayoutProcess );
376 bool ClearedEnvironment()
const;
377 void SetClearedEnvironment(
const bool _bClearedEnvironment );
382 mbPositioningInProgress =
false;
383 mbConsiderForTextWrap =
false;
384 mbPositionLocked =
false;
385 mbKeepPositionLockedForSection =
false;
386 mbRestartLayoutProcess =
false;
387 mbClearedEnvironment =
false;
388 mbTmpConsiderWrapInfluence =
false;
394 bool HasClearedEnvironment()
const;
413 virtual bool IsFormatPossible()
const;
422 void SetTmpConsiderWrapInfluence(
const bool _bTmpConsiderWrapInfluence );
424 void ClearTmpConsiderWrapInfluence();
434 bool OverlapsPrevColumn()
const;
443 Point GetRelPosToAnchorFrame()
const;
464 Point GetRelPosToPageFrame(
const bool _bFollowTextFlow,
465 bool& _obRelToTableCell )
const;
474 Point GetRelPosToChar()
const;
483 Point GetRelPosToLine()
const;
493 virtual const SwFlyFrame* DynCastFlyFrame()
const;
struct _xmlTextWriter * xmlTextWriterPtr
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
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
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.
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.