From 0935c61ca66c3d2c9cc2d49d7bf36e6d7714cb6f Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Tue, 21 Jul 2026 16:38:15 -0400 Subject: [PATCH] tdf#158011 sw srchdlg: add Page Break to Attributes search And it works. I don't really understand why... Somehow, because it is INVALID it accepts either PageBefore or PageAfter, anything at all that is contained in a RES_BREAK nWhich 104. So as long as the paragraph has a non-default (SvxBreak::NONE) RES_BREAK attribute , it matches. Perfect! Change-Id: Iaf34798ff69eb2d632a5e4e07d040a6508e21069 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/208444 Reviewed-by: Justin Luth Tested-by: Jenkins --- sw/source/uibase/uiview/viewsrch.cxx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sw/source/uibase/uiview/viewsrch.cxx b/sw/source/uibase/uiview/viewsrch.cxx index 9e0eb4639224..e7c52d7ca471 100644 --- a/sw/source/uibase/uiview/viewsrch.cxx +++ b/sw/source/uibase/uiview/viewsrch.cxx @@ -429,6 +429,7 @@ void SwView::ExecSearch(SfxRequest& rReq) /*20 */ RES_PARATR_VERTALIGN, RES_PARATR_VERTALIGN, RES_MARGIN_FIRSTLINE, RES_MARGIN_RIGHT, RES_UL_SPACE, RES_UL_SPACE, + SID_ATTR_PARA_PAGEBREAK, SID_ATTR_PARA_PAGEBREAK, SID_ATTR_PARA_KEEP, SID_ATTR_PARA_KEEP >); @@ -774,6 +775,7 @@ sal_Int32 SwView::FUNC_Search(const SwSearchOptions& rOptions) RES_CHRATR_BEGIN, RES_CHRATR_END-1, RES_PARATR_BEGIN, RES_PARATR_END-1, RES_FRMATR_BEGIN, RES_FRMATR_END-1, + SID_ATTR_PARA_PAGEBREAK, SID_ATTR_PARA_PAGEBREAK, SID_ATTR_PARA_KEEP, SID_ATTR_PARA_KEEP >);