19 #ifndef INCLUDED_SW_INC_ANCHOREDOBJECT_HXX
20 #define INCLUDED_SW_INC_ANCHOREDOBJECT_HXX
24 #include <libxml/xmlwriter.h>
123 mbPositioningInProgress = _bPosInProgress;
170 void SetVertPosOrientFrame(
const SwLayoutFrame& _rVertPosOrientFrame );
175 virtual void RegisterAtCorrectPage() = 0;
178 virtual void ObjectAttachedToAnchorFrame();
183 bool ConsiderObjWrapInfluenceOfOtherObjs()
const;
188 void SetTmpConsiderWrapInfluenceOfOtherObjs();
190 virtual bool SetObjTop_(
const SwTwips _nTop) = 0;
191 virtual bool SetObjLeft_(
const SwTwips _nLeft) = 0;
193 virtual SwRect GetObjBoundRect()
const = 0;
206 void ChgAnchorFrame(
SwFrame* _pNewAnchorFrame );
214 SwFrame* GetAnchorFrameContainingAnchPos();
250 return mpVertPosOrientFrame;
253 void ClearVertPosOrientFrame();
266 void CheckCharRectAndTopOfLine(
const bool _bCheckForParaPorInf );
273 void ResetLastCharRectHeight();
277 void AddLastTopOfLineY(
SwTwips _nDiff );
280 void ClearCharRectAndTopOfLine();
285 virtual void MakeObjPos() = 0;
290 return mbPositioningInProgress;
294 bool InvalidationOfPosAllowed()
const;
297 virtual void InvalidateObjPos() = 0;
305 void InvalidateObjPosForConsiderWrapInfluence();
308 virtual void NotifyBackground(
SwPageFrame* _pPageFrame,
315 void SetCurrRelPos( Point _aRelPos );
322 virtual SwRect GetObjRect()
const = 0;
324 void SetObjTop(
const SwTwips _nTop);
325 void SetObjLeft(
const SwTwips _nLeft);
333 virtual void UpdateLayoutDir();
336 const SwRect& GetObjRectWithSpaces()
const;
340 mbObjRectWithSpacesValid =
false;
349 bool ConsiderObjWrapInfluenceOnObjPos()
const;
352 bool ConsiderForTextWrap()
const;
353 void SetConsiderForTextWrap(
const bool _bConsiderForTextWrap );
354 bool PositionLocked()
const;
357 mbPositionLocked =
true;
361 if ( !mbKeepPositionLockedForSection )
363 mbPositionLocked =
false;
369 mbKeepPositionLockedForSection = _bKeepPosLocked;
372 bool RestartLayoutProcess()
const;
373 void SetRestartLayoutProcess(
const bool _bRestartLayoutProcess );
375 bool ClearedEnvironment()
const;
376 void SetClearedEnvironment(
const bool _bClearedEnvironment );
381 mbPositioningInProgress =
false;
382 mbConsiderForTextWrap =
false;
383 mbPositionLocked =
false;
384 mbKeepPositionLockedForSection =
false;
385 mbRestartLayoutProcess =
false;
386 mbClearedEnvironment =
false;
387 mbTmpConsiderWrapInfluence =
false;
393 bool HasClearedEnvironment()
const;
412 virtual bool IsFormatPossible()
const;
421 void SetTmpConsiderWrapInfluence(
const bool _bTmpConsiderWrapInfluence );
423 void ClearTmpConsiderWrapInfluence();
433 bool OverlapsPrevColumn()
const;
442 Point GetRelPosToAnchorFrame()
const;
463 Point GetRelPosToPageFrame(
const bool _bFollowTextFlow,
464 bool& _obRelToTableCell )
const;
473 Point GetRelPosToChar()
const;
482 Point GetRelPosToLine()
const;
492 virtual const SwFlyFrame* DynCastFlyFrame()
const;
SwRect maObjRectWithSpaces
Base class of the Writer layout elements.
const SwRect & GetLastCharRect() const
Represents the visualization of a paragraph.
Marks a position in the document model.
const SwLayoutFrame * mpVertPosOrientFrame
~SwObjPositioningInProgress()
bool mbTmpConsiderWrapInfluence
bool mbPositioningInProgress
bool mbObjRectWithSpacesValid
const SwPageFrame * GetPageFrame() const
Helper class for notify that positioning of an anchored object is in progress.
Of course Writer needs its own rectangles.
wrapper class for the positioning of Writer fly frames and drawing objects
SwAnchoredObject * mpAnchoredObj
bool mbRestartLayoutProcess
SwObjPositioningInProgress(SdrObject &_rSdrObj)
virtual const char * getElementName() const
The element name to show in the XML dump.
const SdrObject * GetDrawObj() const
bool IsTmpConsiderWrapInfluence() const
bool mbClearedEnvironment
SwPageFrame * mpPageFrame
bool mbOldObjPositioningInProgress
A page of the document layout.
const SwLayoutFrame * GetVertPosOrientFrame() const
bool mbKeepPositionLockedForSection
const Point & GetCurrRelPos() const
void SetPositioningInProgress(const bool _bPosInProgress)
general base class for all free-flowing frames
SwPageFrame * GetPageFrame()
SwTwips GetLastTopOfLine() const
void InvalidateObjRectWithSpaces() const
bool sw_HideObj(const SwTextFrame &_rFrame, const RndStdIds _eAnchorType, SwPosition const &rAnchorPos, SwAnchoredObject *_pAnchoredObj)
as-character anchored graphics, which are used for a graphic bullet list.
struct _xmlTextWriter * xmlTextWriterPtr
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame...
const SwFrame * GetAnchorFrame() const
void ResetLayoutProcessBools()
bool IsPositioningInProgress() const
is positioning of anchored object in progress
void SetKeepPosLocked(const bool _bKeepPosLocked)
bool mbConsiderForTextWrap
SwFrame * mpAnchorFrame
Frame the object is anchored at.