Bug 74078 - EDITING: Attribute "Page Style" in Find and Replace does not work
Summary: EDITING: Attribute "Page Style" in Find and Replace does not work
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
4.2.0.3 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard: BSA
Keywords: needsDevEval
Depends on:
Blocks: Find&Replace-Dialog
  Show dependency treegraph
 
Reported: 2014-01-26 11:37 UTC by John Smith
Modified: 2023-01-12 10:52 UTC (History)
5 users (show)

See Also:
Crash report or crash signature:


Attachments
An ODT test document containing the attributes in question. (33.95 KB, application/vnd.oasis.opendocument.text)
2014-01-26 11:37 UTC, John Smith
Details

Note You need to log in before you can comment on or make changes to this bug.
Description John Smith 2014-01-26 11:37:14 UTC
Created attachment 92808 [details]
An ODT test document containing the attributes in question.

Problem description: 

Not all the elements of the Attributes function of the Find & Replace function work.
The 'Individual Words', 'Page Style' and 'Outline' attributes are not found when searching a document.

A test document is attached.

              
Operating System: Windows XP
Version: 4.2.0.3 rc
Comment 1 Regina Henschel 2014-01-26 20:48:40 UTC
"Outline" is the character style, not a outline level and it works.

"Individual Words" is the check box, that is enabled, when you use the character format "underline" or "strike through". If it is checked, search will find that parts. The help text is not precise enough.

The other paragraph properties like "hyphenation", or "orphan" work, but not "Page Style". Setting to confirm for attribute "Page Style".
Comment 2 John Smith 2014-01-27 10:46:03 UTC
(In reply to comment #1)
> "Outline" is the character style, not a outline level and it works.
> 
> "Individual Words" is the check box, that is enabled, when you use the
> character format "underline" or "strike through". If it is checked, search
> will find that parts. The help text is not precise enough.
> 
> The other paragraph properties like "hyphenation", or "orphan" work, but not
> "Page Style". Setting to confirm for attribute "Page Style".

Thank you Regina.
I'll clarify the "Outline" and "Individual Words" explanation in the Writer User Guide.
John
Comment 3 Joel Madero 2015-05-02 15:42:50 UTC Comment hidden (obsolete)
Comment 4 Regina Henschel 2015-05-02 18:22:04 UTC
I see the problem with attribute "Page style" still in Version: 5.0.0.0.alpha1
Build ID: 77a35997fa7cff387b5b135ff0c42155f80e9884
Locale: de_DE.
Comment 5 QA Administrators 2016-09-20 09:36:48 UTC Comment hidden (obsolete)
Comment 6 Regina Henschel 2016-09-20 20:08:17 UTC
I see the error still in Version: 5.3.0.0.alpha0+
Build ID: ba269f7294e2416659011cbb498a2c6b5f9d5199
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2016-09-12_02:36:16
Locale: de-DE (de_DE); Calc: group
Comment 7 QA Administrators 2018-04-05 02:44:17 UTC Comment hidden (obsolete)
Comment 8 QA Administrators 2020-04-05 03:32:03 UTC Comment hidden (obsolete)
Comment 9 sdc.blanco 2021-01-08 16:05:49 UTC
I think search with "page style" attribute is still broken.

Tested with attachment and also made my own document with Insert - More Breaks - Manual Breaks (and add Page Style).  

Can confirm that page style is set in paragraph dialog, but searching with "page style" attribute gives "search key not found"

Tested with:

Version: 7.2.0.0.alpha0+ (x64)
Build ID: 4041c68ea59181f1c4774c356809066d2051db41
CPU threads: 8; OS: Windows 10.0 Build 19041; UI render: Skia/Raster; VCL: win
Locale: da-DK (en_DK); UI: en-US
Calc: threaded
Comment 10 QA Administrators 2023-01-11 03:23:28 UTC Comment hidden (obsolete)
Comment 11 sdc.blanco 2023-01-11 11:04:13 UTC
repro "Individual Words" and "Page Style"  (outline works as expected)

Version: 7.6.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 98f0dd5e15733ac7f1d929d06ab230b5f04121d5
CPU threads: 8; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: da-DK (da_DK); UI: en-US
Calc: CL threaded
Comment 12 sdc.blanco 2023-01-11 12:09:32 UTC
(In reply to sdc.blanco from comment #11)
> repro "Individual Words" and "Page Style"  (outline works as expected)
Correction:  "Individual Words" also works as expected -- but as noted in comment 1, the help text is not precise enough, see bug 152977.

A. There is no "Break with Page Style" in the Text Flow tab of the Paragraph Dialog.

But if the expected behavior is to find inserted page breaks, then the bug summary is correct.


B. Is the help page correct?

Current:   Finds the "Break With Page Style" attribute.

https://help.libreoffice.org/7.6/en-US/text/shared/01/02100200.html

The dialog allows one to Insert a page break without a Page Style.  Because of bug, cannot test at present, but would this mean that the command should not find page breaks that do not have a page style set?

Will ask UXEval....
Comment 13 Heiko Tietze 2023-01-12 10:52:13 UTC
I suspect the lines aSet.DisableItem(SID_ATTR_PARA_MODEL); ff. in FormatHdl_Impl / SvxSearchDialog to be the reason why this is not working (needsDevEval). Same lines are in OOo_3.2.

Since searching for PgS doesn't work at all I'd rather remove the misleading documentation. No idea what exactly is meant, assume it is the name of the page style not necessarily with breaks before/after.