19 #ifndef INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX
20 #define INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX
111 bool mbCheckSuperfluous :1;
112 bool mbIdleFormat :1;
113 bool mbBrowseWidthValid :1;
114 bool mbTurboAllowed :1;
115 bool mbAssertFlyPages :1;
116 bool mbTableUpdateInProgress : 1;
117 bool mbIsVirtPageNum :1;
118 bool mbIsNewLayout :1;
119 bool mbCallbackActionEnabled:1;
175 void ImplCalcBrowseWidth();
176 void ImplInvalidateBrowseWidth();
178 void DeleteEmptySct_();
189 static void RemoveMasterObjs(
SdrPage *pPg );
191 void AllCheckPageDescs()
const;
192 void AllInvalidateAutoCompleteWords()
const;
193 void AllAddPaintRect()
const;
194 void AllRemoveFootnotes() ;
195 void AllInvalidateSmartTagsOrSpelling(
bool bSmartTags)
const;
198 static bool FlushVout();
201 static bool HasSameRect(
const SwRect& rRect );
216 void StartAllAction();
217 void EndAllAction(
bool bVirDev =
false );
223 void UnoRemoveAllActions();
224 void UnoRestoreAllActions();
234 SwPrintData const*
const pPrintData =
nullptr )
const override;
238 virtual void Cut()
override;
244 Point GetNextPrevContentPos(
const Point &rPoint,
bool bNext )
const;
255 if (pCurrShell !=
nullptr)
264 mbNeedGrammarCheck = bVal;
271 if (pCurrShell !=
nullptr)
278 void AssertFlyPages();
298 void InvalidateAllObjPos();
303 void RemoveSuperfluous();
309 sal_uInt16 GetCurrPage(
const SwPaM* )
const;
310 sal_uInt16 SetCurrPage(
SwCursor*, sal_uInt16 nPageNum );
311 Point GetPagePos( sal_uInt16 nPageNum )
const;
316 inline void SetVirtPageNum(
const bool bOf )
const;
317 bool IsDummyPage( sal_uInt16 nPageNum )
const;
326 const SwPageFrame* GetPageAtPos(
const Point& rPt,
const Size* pSize =
nullptr,
bool bExtend =
false )
const;
335 bool IsBetweenPages(
const Point& rPt)
const;
355 void UpdateFootnoteNums();
358 void RemoveFootnotes(
SwPageFrame *pPage =
nullptr,
bool bPageOnly =
false,
359 bool bEndNotes =
false );
360 void CheckFootnotePageDescs(
bool bEndNote );
405 SwPageFrame* GetPageByPageNum( sal_uInt16 _nPageNum )
const;
408 bool IsLeftToRightViewLayout()
const;
422 void SetHideRedlines(
bool);
458 : m_rRootFrame(rRootFrame)
459 , m_bOldCallbackActionState(rRootFrame.IsCallbackActionEnabled())
470 #endif // INCLUDED_SW_SOURCE_CORE_INC_ROOTFRM_HXX
DisableCallbackAction(SwRootFrame &rRootFrame)
Base class of the Writer layout elements.
SdrPage * mpDrawPage
One Page per DrawModel per Document; is always the size of the Root.
void RemoveFromList(SwSectionFrame *pSct)
void SetCallbackActionEnabled(bool b)
Marks a position in the document model.
tools::Long mnBrowseWidth
For BrowseMode mnBrowseWidth is the outer margin of the object most to the right. ...
constexpr auto toTwips(N number, Length from)
bool IsAnyShellAccessible() const
void ResetTurboFlag() const
static void SetNoVirDev(const bool bNew)
void SetNeedGrammarCheck(bool bVal)
void SetShell(SwViewShell *pSh)
SwViewShell * mpCurrShell
const SdrPage * GetDrawPage() const
SwPageFrame * GetLastPage()
helper class to disable creation of an action by a callback event in particular, change event from a ...
virtual void Paste(SwFrame *pParent, SwFrame *pSibling=nullptr) override
bool IsNeedGrammarCheck() const
void SetTurbo(const SwContentFrame *pContent)
This class is used as parameter for creation of a block cursor selection.
Dialog to specify the properties of date form field.
void SetDrawPage(SdrPage *pNew)
Of course Writer needs its own rectangles.
sal_uInt16 mnAccessibleShells
Page count.
SwRootFrame & m_rRootFrame
The root element of a Writer document layout.
bool IsTurboAllowed() const
std::vector< SwRect > maPageRects
tools::Long GetBrowseWidth() const
virtual void PaintSwFrame(vcl::RenderContext &rRenderContext, SwRect const &, SwPrintData const *const pPrintData=nullptr) const override
virtual Size ChgSize(const Size &aNewSize)
const SwPageFrame * GetLastPage() const
virtual void StartIdling()=0
Start the idle task.
void SetSuperfluous()
Remove superfluous Pages.
bool m_bOldCallbackActionState
SwPageFrame * mpLastPage
We should not need to always struggle to find the last page, so store it here.
void InitCurrShells(SwRootFrame *pRoot)
void InvalidateBrowseWidth()
virtual void DestroyImpl() override
void AdjustSizeChgNotify(SwRootFrame *pRoot)
void FreezeLayout(bool freeze)
bool IsAssertFlyPages() const
const SwContentFrame * mpTurbo
If we only have to format one ContentFrame, its in mpTurbo.
void ImplInvalidateBrowseWidth()
bool IsTableUpdateInProgress() const
PaM is Point and Mark: a selection of the document model.
SwViewShell * mpWaitingCurrShell
void SetAssertFlyPages()
Makes sure that all requested page-bound Flys find a Page.
sw::FieldmarkMode GetFieldmarkMode() const
void ImplCalcBrowseWidth()
virtual void Cut() override
void SetTableUpdateInProgress(bool bValue)
const SwRect & GetPagesArea() const
SwContentFrame is the layout for content nodes: a common base class for text (paragraph) and non-text...
A page of the document layout.
void AddAccessibleShell()
bool IsLayoutFreezed() const
std::set< CurrShell * > SwCurrShells
void SetVirtPageNum(const bool bOf) const
void RemoveAccessibleShell()
virtual SwTwips ShrinkFrame(SwTwips, bool bTst=false, bool bInfo=false) override
virtual bool GetModelPositionForViewPoint(SwPosition *, Point &, SwCursorMoveState *=nullptr, bool bTestBackground=false) const override
Searches the ContentFrame owning the PrtArea containing the point.
sw::FieldmarkMode m_FieldmarkMode
static SwLayVout * s_pVout
bool IsHideRedlines() const
Replacement for sw::DocumentRedlineManager::GetRedlineFlags() (this is layout-level redline hiding)...
const SwContentFrame * GetTurbo() const
void DisallowTurbo() const
void SetLastPage(SwPageFrame *pPage)
bool IsIdleFormat() const
bool HasMergedParas() const
A layout frame is a frame that contains other frames (m_pLower), e.g. SwPageFrame or SwTabFrame...
std::unique_ptr< SwCurrShells > mpCurrShells
virtual SwTwips GrowFrame(SwTwips, bool bTst=false, bool bInfo=false) override
virtual void MakeAll(vcl::RenderContext *pRenderContext) override
SwViewShell * GetCurrShell() const
bool IsSuperfluous() const
sal_uInt16 GetPageNum() const
bool IsCallbackActionEnabled() const
std::unique_ptr< SwDestroyList > mpDestroy
IDocumentTimerAccess const & getIDocumentTimerAccess() const
bool IsVirtPageNum() const
virtual bool FillSelection(SwSelectionList &rList, const SwRect &rRect) const override