19#ifndef INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX
182 void ImplCalcBrowseWidth();
183 void ImplInvalidateBrowseWidth();
185 void DeleteEmptySct_();
187 void DeleteEmptyFlys_();
198 static void RemoveMasterObjs(
SdrPage *pPg );
200 void AllCheckPageDescs()
const;
201 void AllInvalidateAutoCompleteWords()
const;
202 void AllAddPaintRect()
const;
203 void AllRemoveFootnotes() ;
204 void AllInvalidateSmartTagsOrSpelling(
bool bSmartTags)
const;
207 static bool FlushVout();
210 static bool HasSameRect(
const SwRect& rRect );
225 void StartAllAction();
232 void UnoRemoveAllActions();
233 void UnoRestoreAllActions();
243 SwPrintData const*
const pPrintData =
nullptr )
const override;
247 virtual void Cut()
override;
253 Point GetNextPrevContentPos(
const Point &rPoint,
bool bNext )
const;
264 if (pCurrShell !=
nullptr)
273 mbNeedGrammarCheck = bVal;
280 if (pCurrShell !=
nullptr)
287 void AssertFlyPages();
307 void InvalidateAllObjPos();
312 void RemoveSuperfluous();
318 sal_uInt16 GetCurrPage(
const SwPaM* )
const;
319 sal_uInt16 SetCurrPage(
SwCursor*, sal_uInt16 nPageNum );
320 Point GetPagePos( sal_uInt16 nPageNum )
const;
325 inline void SetVirtPageNum(
const bool bOf )
const;
326 bool IsDummyPage( sal_uInt16 nPageNum )
const;
335 const SwPageFrame* GetPageAtPos(
const Point& rPt,
const Size* pSize =
nullptr,
bool bExtend =
false )
const;
344 bool IsBetweenPages(
const Point& rPt)
const;
364 void UpdateFootnoteNums();
367 void RemoveFootnotes(
SwPageFrame *pPage =
nullptr,
bool bPageOnly =
false,
368 bool bEndNotes =
false );
369 void CheckFootnotePageDescs(
bool bEndNote );
418 SwPageFrame* GetPageByPageNum( sal_uInt16 _nPageNum )
const;
421 bool IsLeftToRightViewLayout()
const;
435 void SetHideRedlines(
bool);
439 bool HasMergedParas()
const;
helper class to disable creation of an action by a callback event in particular, change event from a ...
SwRootFrame & m_rRootFrame
DisableCallbackAction(SwRootFrame &rRootFrame)
bool m_bOldCallbackActionState
virtual void StartIdling()=0
Start the idle task.
SwContentFrame is the layout for content nodes: a common base class for text (paragraph) and non-text...
IDocumentTimerAccess const & getIDocumentTimerAccess() const
general base class for all free-flowing frames
Base class of the Writer layout elements.
virtual void dumpAsXml(xmlTextWriterPtr writer=nullptr) const =0
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 MakeAll(vcl::RenderContext *pRenderContext) override
virtual bool GetModelPositionForViewPoint(SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const override
Searches the ContentFrame owning the PrtArea containing the point.
virtual SwTwips GrowFrame(SwTwips, bool bTst=false, bool bInfo=false) override
virtual bool FillSelection(SwSelectionList &rList, const SwRect &rRect) const override
virtual void DestroyImpl() override
virtual void Paste(SwFrame *pParent, SwFrame *pSibling=nullptr) override
virtual SwTwips ShrinkFrame(SwTwips, bool bTst=false, bool bInfo=false) override
virtual void PaintSwFrame(vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const override
virtual void Cut() override
PaM is Point and Mark: a selection of the document model.
A page of the document layout.
Of course Writer needs its own rectangles.
The root element of a Writer document layout.
void AddAccessibleShell()
bool IsAssertFlyPages() const
SwPageFrame * mpLastPage
We should not need to always struggle to find the last page, so store it here.
SwViewShell * mpCurrShell
void ResetTurboFlag() const
void SetVirtPageNum(const bool bOf) const
void FreezeLayout(bool freeze)
bool IsSuperfluous() const
std::unique_ptr< SwCurrShells > mpCurrShells
const SwContentFrame * mpTurbo
If we only have to format one ContentFrame, its in mpTurbo.
SwViewShell * GetCurrShell() const
bool IsVirtPageNum() const
std::unique_ptr< SwDestroyList > mpDestroy
bool IsLayoutFreezed() const
void ImplInvalidateBrowseWidth()
sal_uInt16 mnAccessibleShells
Page count.
const SwContentFrame * GetTurbo() const
tools::Long GetBrowseWidth() const
void SetSuperfluous()
Remove superfluous Pages.
bool IsAnyShellAccessible() const
bool mbTableUpdateInProgress
const SdrPage * GetDrawPage() const
std::vector< SwRect > maPageRects
void InvalidateBrowseWidth()
sal_uInt16 GetPageNum() const
void SetTurbo(const SwContentFrame *pContent)
const SwRect & GetPagesArea() const
bool IsTableUpdateInProgress() const
bool IsHideRedlines() const
Replacement for sw::DocumentRedlineManager::GetRedlineFlags() (this is layout-level redline hiding).
bool IsCallbackActionEnabled() const
bool mbCallbackActionEnabled
SwViewShell * mpWaitingCurrShell
void SetNeedGrammarCheck(bool bVal)
SwPageFrame * GetLastPage()
const SwPageFrame * GetLastPage() const
SdrPage * mpDrawPage
One Page per DrawModel per Document; is always the size of the Root.
void RemoveAccessibleShell()
bool IsIdleFormat() const
sw::FieldmarkMode GetFieldmarkMode() const
void SetDrawPage(SdrPage *pNew)
void DisallowTurbo() const
tools::Long mnBrowseWidth
For BrowseMode mnBrowseWidth is the outer margin of the object most to the right.
static void SetNoVirDev(const bool bNew)
void RemoveFromList(SwSectionFrame *pSct)
void SetCallbackActionEnabled(bool b)
void SetTableUpdateInProgress(bool bValue)
bool IsTurboAllowed() const
sw::FieldmarkMode m_FieldmarkMode
void SetAssertFlyPages()
Makes sure that all requested page-bound Flys find a Page.
sw::ParagraphBreakMode GetParagraphBreakMode() const
static SwLayVout * s_pVout
sw::ParagraphBreakMode m_ParagraphBreakMode
std::unique_ptr< SwFlyDestroyList > mpFlyDestroy
bool IsNeedGrammarCheck() const
void ImplCalcBrowseWidth()
static SwRootFrame * s_pLast
The last, still alive SwRootFrame instance, for debugging.
This class is used as parameter for creation of a block cursor selection.
Represents the current text cursor of one opened edit window.
struct _xmlTextWriter * xmlTextWriterPtr
constexpr auto toTwips(N number, Length from)
Dialog to specify the properties of date form field.
void SetShell(SwViewShell *pSh)
void InitCurrShells(SwRootFrame *pRoot)
void AdjustSizeChgNotify(SwRootFrame *pRoot)
void SetLastPage(SwPageFrame *pPage)
std::set< CurrShell * > SwCurrShells
Marks a position in the document model.