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 <jluth@mail.com> Tested-by: Jenkins
This commit is contained in:
@@ -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
|
||||
>);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user