20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_FLYFRM_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_FLYFRM_HXX
36 namespace tools {
class PolyPolygon; }
51 const bool bBody =
false );
85 void InitDrawObj(
SwFrame const&);
108 bool m_bNotifyBack :1;
119 bool m_bMinHeight :1;
122 bool m_bHeightClipped :1;
123 bool m_bWidthClipped :1;
126 bool m_bFormatHeightOnly :1;
132 bool m_bAutoPosition :1;
145 void Lock() { m_bLocked =
true; }
177 SwPrintData const*
const pPrintData =
nullptr )
const override;
183 virtual void Cut()
override;
190 void Invalidate_(
SwPageFrame const *pPage =
nullptr );
205 void NotifyDrawObj();
207 void ChgRelPos(
const Point &rAbsPos );
221 void SetAuthor(
size_t nAuthor ) { m_nAuthor = nAuthor; }
228 bool IsClipped()
const {
return m_bHeightClipped || m_bWidthClipped; }
242 const bool _bForPaint =
false )
const;
256 bool IsBackgroundTransparent()
const;
262 void InsertColumns();
281 static void GetAnchoredObjects( std::vector<SwAnchoredObject*>&,
const SwFormat& rFormat );
296 void InvalidateContentPos();
298 void SelectionHasChanged(
SwFEShell* pShell);
299 bool IsShowUnfloatButton(
SwWrtShell* pWrtSh)
const;
308 void UpdateUnfloatButton(
SwWrtShell* pWrtSh,
bool bShow)
const;
309 void PaintDecorators()
const;
virtual void MakeObjPos()=0
method to determine position for the object and set the position at the object
Base class of the Writer layout elements.
virtual SwRect GetObjRect() const =0
bool IsFlyLayFrame() const
Marks a position in the document model.
void MakePrtArea(const SwBorderAttrs &)
bool IsLowerOf(const SwLayoutFrame *pUpper) const
virtual bool SetObjTop_(const SwTwips _nTop)=0
virtual void RegisterAtPage(SwPageFrame &)=0
void SetDeleted(bool bDeleted)
virtual void dumpAsXml(xmlTextWriterPtr writer=nullptr) const
virtual void Calc(vcl::RenderContext *pRenderContext) const
bool CalcClipRect(const SdrObject *pSdrObj, SwRect &rRect, bool bMove=true)
calculate rectangle in that the object can be moved or rather be resized
Of course Writer needs its own rectangles.
void Format(vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr) override
Calculate the Bitmap's site, if needed.
virtual SwRect GetObjBoundRect() const =0
bool IsFlyAtContentFrame() const
Used by the UI to modify the document model.
wrapper class for the positioning of Writer fly frames and drawing objects
const Point & ContentPos() const
SwFlyFrame * GetPrevLink() const
virtual Size ChgSize(const Size &aNewSize)
virtual bool GetModelPositionForViewPoint(SwPosition *pPos, Point &aPoint, SwCursorMoveState *=nullptr, bool bTestBackground=false) const override
bool IsUpperOf(const SwFlyFrame &_rLower) const
bool IsFlyInContentFrame() const
virtual bool SetObjLeft_(const SwTwips _nLeft)=0
virtual void dumpAsXml(xmlTextWriterPtr writer) const override
Dump a bunch of useful data to an XML representation to ease layout understanding, debugging and testing.
virtual const SwFlyFrame * DynCastFlyFrame() const
virtual void PaintSwFrame(vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const override
size_t m_nAuthor
Redline author index for colored crossing out.
void SetAuthor(size_t nAuthor)
virtual void InvalidateObjPos()=0
method to invalidate position of the anchored object
bool IsNotifyBack() const
A page of the document layout.
virtual void CheckDirection(bool bVert)
virtual bool IsFormatPossible() const
method to determine, if a format on the anchored object is possible
tools::Long CalcRel(const SwFormatFrameSize &rSz) const
general base class for all free-flowing frames
virtual SwFrameFormat & GetFrameFormat()=0
bool IsFlyFreeFrame() const
virtual const IDocumentDrawModelAccess & getIDocumentDrawModelAccess()
bool IsHeightClipped() const
SwFlyFrame * GetNextLink() const
virtual void RegisterAtCorrectPage()=0
method to assure that anchored object is registered at the correct page frame
virtual void Cut() override
virtual bool GetInfo(SfxPoolItem &) const
const SwContentFrame * FindAnchor(const SwFrame *pOldAnch, const Point &rNew, const bool bBody=false)
search an anchor for paragraph bound frames starting from pOldAnch
virtual void DestroyImpl() override
struct _xmlTextWriter * xmlTextWriterPtr
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame...
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
virtual const SwFrameFormat * GetFormat() const