20#ifndef INCLUDED_SW_SOURCE_CORE_INC_FLYFRM_HXX
21#define INCLUDED_SW_SOURCE_CORE_INC_FLYFRM_HXX
36namespace tools {
class PolyPolygon; }
51 const bool bBody =
false );
85 void InitDrawObj(
SwFrame const&);
145 void Lock() { m_bLocked =
true; }
176 SwPrintData const*
const pPrintData =
nullptr )
const override;
182 virtual void Cut()
override;
189 void Invalidate_(
SwPageFrame const *pPage =
nullptr );
202 bool IsFlySplitAllowed()
const;
207 void NotifyDrawObj();
209 void ChgRelPos(
const Point &rAbsPos );
223 void SetAuthor(
size_t nAuthor ) { m_nAuthor = nAuthor; }
230 bool IsClipped()
const {
return m_bHeightClipped || m_bWidthClipped; }
244 const bool _bForPaint =
false )
const;
258 bool IsBackgroundTransparent()
const;
264 void InsertColumns();
284 static void GetAnchoredObjects( std::vector<SwAnchoredObject*>&,
const SwFormat& rFormat );
299 void InvalidateContentPos();
301 void SelectionHasChanged(
SwFEShell* pShell);
302 bool IsShowUnfloatButton(
SwWrtShell* pWrtSh)
const;
311 void UpdateUnfloatButton(
SwWrtShell* pWrtSh,
bool bShow)
const;
312 void PaintDecorators()
const;
wrapper class for the positioning of Writer fly frames and drawing objects
virtual void RegisterAtPage(SwPageFrame &)=0
virtual SwRect GetObjBoundRect() const =0
virtual void RegisterAtCorrectPage()=0
method to assure that anchored object is registered at the correct page frame
virtual bool SetObjLeft_(const SwTwips _nLeft)=0
virtual SwFrameFormat & GetFrameFormat()=0
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
virtual void InvalidateObjPos()=0
method to invalidate position of the anchored object
virtual const SwFlyFrame * DynCastFlyFrame() const
virtual SwRect GetObjRect() const =0
virtual bool IsFormatPossible() const
method to determine, if a format on the anchored object is possible
virtual bool GetInfo(SfxPoolItem &) const
SwContentFrame is the layout for content nodes: a common base class for text (paragraph) and non-text...
void MakePrtArea(const SwBorderAttrs &)
general base class for all free-flowing frames
SwFlyFrame * GetPrevLink() const
bool IsFlyAtContentFrame() const
size_t m_nAuthor
Redline author index for colored crossing out.
bool IsLowerOf(const SwLayoutFrame *pUpper) const
void SetDeleted(bool bDeleted)
SwFlyFrame * GetNextLink() const
bool m_bAtCnt
RndStdIds::FLY_AT_PARA, anchored at paragraph or RndStdIds::FLY_AT_CHAR.
bool IsFlyInContentFrame() const
bool IsFlyLayFrame() const
bool m_bAutoPosition
RndStdIds::FLY_AT_CHAR, anchored at character.
bool m_bDeleted
Anchored to a tracked deletion.
void SetAuthor(size_t nAuthor)
bool m_bInCnt
RndStdIds::FLY_AS_CHAR, anchored as character.
const Point & ContentPos() const
bool m_bLayout
RndStdIds::FLY_AT_PAGE, RndStdIds::FLY_AT_FLY, at page or at frame.
bool IsFlyFreeFrame() const
bool IsUpperOf(const SwFlyFrame &_rLower) const
bool IsNotifyBack() const
bool IsHeightClipped() const
Base class of the Writer layout elements.
virtual void dumpAsXml(xmlTextWriterPtr writer=nullptr) const =0
virtual void Calc(vcl::RenderContext *pRenderContext) const
virtual void SwClientNotify(const SwModify &, const SfxHint &) override
virtual void CheckDirection(bool bVert)
virtual const IDocumentDrawModelAccess & getIDocumentDrawModelAccess()
virtual Size ChgSize(const Size &aNewSize)
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame.
virtual void Format(vcl::RenderContext *pRenderContext, const SwBorderAttrs *pAttrs=nullptr) override
"Formats" the Frame; Frame and PrtArea.
virtual bool GetModelPositionForViewPoint(SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const override
Searches the ContentFrame owning the PrtArea containing the point.
virtual const SwFrameFormat * GetFormat() const
virtual void DestroyImpl() override
virtual void Paste(SwFrame *pParent, SwFrame *pSibling=nullptr) override
tools::Long CalcRel(const SwFormatFrameSize &rSz) const
virtual void PaintSwFrame(vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const override
virtual void Cut() override
A page of the document layout.
Of course Writer needs its own rectangles.
Used by the UI to modify the document model.
struct _xmlTextWriter * xmlTextWriterPtr
bool CalcClipRect(const SdrObject *pSdrObj, SwRect &rRect, bool bMove=true)
calculate rectangle in that the object can be moved or rather be resized
const SwContentFrame * FindAnchor(const SwFrame *pOldAnch, const Point &rNew, const bool bBody=false)
search an anchor for paragraph bound frames starting from pOldAnch
Marks a position in the document model.