Created attachment 170787 [details]
when a paragraph is invisible because it has a hidden paragraph textfield (com.sun.star.text.textfield.HiddenParagraph) with condition "TRUE" the style property "page break before" is shown. To my mind the page break should not be shown if the paragraph is hidden.
See attatched file
Sometimes I habe the behaviour with margins to the top or bottm. The hidden paragraph has got a margin and the margin will be shown. Repainting the document (2 times ctrl + F9) will help and the margin won't be shown. Unfortunately this problem is not reproduceable.
Thank you for reporting the bug. When I open your document, the paragraph with page break before is visible.
I've tried to reproduce your problem as follows:
1. Change paragraph style of first paragraph of second page
2. Modify that paragraph style: In tab "Font Effect" select "Hidden"
Actual result: Paragraph is hidden, but page break is still there
Does this desribe your problem? If not, please add some steps to reproduce.
thank you for your reply and sorry for my worse english.
I forgot to say that you have to set the setting .uno:HiddenParagraph to "false" because it's my default settings. You can change this in the settings in "Extras - Optionen - LibreOffice Writer: Ansicht - Felder anzeigen: Vervorgene Absätze" (I don't know the english menu structure).
Although the paragraph is hidden the page break is shown. You don't have to change anything on the document. When I change the font effect of the first paragraph on 2nd page to "Hidden" the paragraph will completely not shown but the page break is already visible.
In my opinion the page break should not be visible because it is anchored on a paragraph which is hidden. When a paragraph is hidden all of it's properties should be removed/neutralized. Only for the display the text:p and it's style should be removed.
For native german speaking people the same text for better understanding:
Sorry, ich habe vergessen zu sagen, dass die Einstellung "Versteckte Absätze anzeigen" deaktiviert sein muss. Da es meine Standardeinstellung ist habe ich daran nicht mehr gedacht. Der Absatz an dem der Seitenumbruch verankert ist, wird durch das Textfeld "versteckter Absatz" ausgeblendet. Dementsprechend sollte auch der Seitenumbruch und alle anderen Formate des ausgeblendeten Absatzes neutralisiert werden. Für die Anzeige müsste so getan werden als ob das text:p und dessen Style nicht existieren würden.
[Automated Action] NeedInfo-To-Unconfirmed
Sven, thanks for clarification. So I think the problem can be reduced to the question: Should a page break also be hidden, if it belongs to a hidden paragraph?
I give that question to the design team.
Created attachment 171315 [details]
Another test document
Couldn't follow your example at the first go, so I created a new one. Hide the first paragraph per Hide = TRUE or FALSE, in any case the paragraph style "Hidden Paragraph" with a page break before will be applied. Added another case for "Hidden Characters" (font effects: hidden) at page #3.
My take: page break before or after a hidden paragraph should be hidden. This allows also for much more complex layouts.
MSO shows hidden text with a dotted underline. I'm not aware of a function that hides a paragraph.
UX input given, removing the keyword