diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-12-18 10:18:49 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-12-18 11:26:28 +0100 |
commit | 73dc3bdf58d80bf22477cdf95bf46d6acbc20f80 (patch) | |
tree | 3a0900944f56ec4d3852e139e8f87022f611345c /sw | |
parent | e57665ea6f812aff9fc87073ce947f40a8b26e9d (diff) |
sw: document how the first page frame is created
I can't remember if the boolean order is left/right and then
first/nonfirst or the other way around.
Change-Id: Id39d81f8501da690ce179546e9aa3d4b54f39fcf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107937
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Tested-by: Jenkins
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/layout/newfrm.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sw/source/core/layout/newfrm.cxx b/sw/source/core/layout/newfrm.cxx index 36d80df0e3c9..4b40f4d6ded6 100644 --- a/sw/source/core/layout/newfrm.cxx +++ b/sw/source/core/layout/newfrm.cxx @@ -491,7 +491,9 @@ void SwRootFrame::Init( SwFrameFormat* pFormat ) // Create a page and put it in the layout // The first page is always a right-page and always a first-page - SwPageFrame *pPage = ::InsertNewPage(*pDesc, this, true, true, false, false, nullptr, true); + SwPageFrame* pPage = ::InsertNewPage( + *pDesc, /*pUpper=*/this, /*isRightPage=*/true, /*bFirst=*/true, /*bInsertEmpty=*/false, + /*bFootnote=*/false, /*pSibling=*/nullptr, /*bVeryFirstPage=*/true); // Find the first page in the Bodytext section. SwLayoutFrame *pLay = pPage->FindBodyCont(); |