diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2023-02-06 08:21:02 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-02-06 13:46:12 +0000 |
commit | 27fbab13557a75b5402c11a1697541edc124116a (patch) | |
tree | 50f473ab6137b5fb74b2ef89792d234494a3fe20 /sw/source/core/inc/frame.hxx | |
parent | 6966957aa42dea54eff933665b49e3976b32eff0 (diff) |
sw: implement SwFrame::GetPrevFlyLeaf()
This is much easier than the "next" case, since here we can nullptr when
there is no previous leaf instead of creating one.
With this, if the MoveBwd() call in SwContentFrame::MakeAll() is
disabled, some simple fly frame can be split across 2 pages if it's
positioned in a way that the rectangle of the fly would not fit into the
body frame without changing the position, in SW_FORCE_FLY_SPLIT=1 mode.
Towards an initial layout for multi-page fly frames.
Change-Id: I3b6ba85ad66117b5595a113d688e2fcb97bcf745
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/146571
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw/source/core/inc/frame.hxx')
-rw-r--r-- | sw/source/core/inc/frame.hxx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/core/inc/frame.hxx b/sw/source/core/inc/frame.hxx index 8102a7e26e56..e610de6eab70 100644 --- a/sw/source/core/inc/frame.hxx +++ b/sw/source/core/inc/frame.hxx @@ -549,6 +549,7 @@ public: SwLayoutFrame *GetPrevLeaf (); SwLayoutFrame *GetPrevFootnoteLeaf( MakePageType eMakeFootnote ); SwLayoutFrame *GetPrevSctLeaf(); + SwLayoutFrame *GetPrevFlyLeaf(); SwLayoutFrame *GetPrevCellLeaf(); const SwLayoutFrame *GetLeaf ( MakePageType eMakePage, bool bFwd, const SwFrame *pAnch ) const; |