Bug 101853 - UI: Double click page style, causes pages above "current page" to be changed
Summary: UI: Double click page style, causes pages above "current page" to be changed
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-09-02 07:39 UTC by Zenaan Harkness
Modified: 2020-02-27 14:36 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:
Regression By:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Zenaan Harkness 2016-09-02 07:39:39 UTC
This arises from bug #98560 , which appears to be a misunderstanding of page styles and sections - the UI should make this easier for the newbie to comprehend.

Scenario:
Newbie user wants a document with multiple page styles as follows:
- FirstPage for the first page
- NextPages for pages 2, 3 and 4
- OtherPages for pages 5 onwards.

Newbie procedure:
User creates three page styles, FirstPage, NextPages and OtherPages.
- FirstPage has "NextPages" set as its "Next style"
- NextPages has "NextPages" set as its "Next style"
- OtherPages has "OtherPages" set as its "Next style"

- User creates document with pages 1 to 5, by pressing adding some text and pressing Ctrl+Enter on each page.

- User navigates to page 1 and double clicks FirstPage page style
  - this causes pages 2 to 5 to all have page style "NextPages"

- User now navigates to page 5, and double clicks OtherPages page style, expecting page 5 onwards to have page style "OtherPages" and also expects the page styles for pages 1 to 4 to not change.

Newbie problem:
- User discovers that ALL pages in the document have now had their respective page style CHANGED to OtherPages, and not just page 5 (and onwards).

Possible UI feature enhancement:
- when double clicking (or otherwise "applying") a new page style to the current page, and if the current page does not begin a new document "section", display a dialog to the user asking the user:

  "
  NOTE: The current page does not begin a new section break
  in the document.
  Do you wants a new section break<HELP_LINK> to be inserted
  at the start of the current page?
  Or would you like all pages in this section of the document,
  from pages $SECTION_BEGIN_PG_NUM to $SECTION_END_PG_NUM,
  to be updated to have the new page style $PAGE_STYLE_NAME ?
  "

This would help newbies.

The dialog could have buttons/ checkboxes/ options such as:
 - Insert page break and apply page style to this section
 - Apply page style to all pages in this section
 - Cancel
Comment 1 Cor Nouws 2016-09-03 09:40:44 UTC
Hi Zenaan,

thanks for filing. I like the most of your proposal.
I would suggest to not use 'section' but 'hard page break' and 'part of the document' or something. Sections in Writer have a really different meaning and function.
It becomes tricky when the current page doesn't start with a new paragraph but with text that flows from the page before. Then are we going to split the paragraph, push it to the next page.. Anyhow, setting a hard page break will stop text flow, which may still be desired and can be achieved by the 'Next page style' setting ;)

Anyhow, for now my +1
Let's see how this evolves - adding NeedsUXEval as keyword.
Comment 2 Zenaan Harkness 2016-09-03 09:54:27 UTC
I agree - when the first paragraph starts on the previous page, then perhaps not bring up the proposed dialog box.

In that case, an alternative dialog box should still be displayed, but telling the user that the double-clicked page style will apply to pages above the current page (and of course ideally state the page range to which the page style, if applied, will apply).
Comment 3 Cor Nouws 2016-09-05 14:40:12 UTC
So as an intermediate improvement, I was thinking of the following:

On applying a style 
  by selecting status bar or double clicking in Styles dialog
 in case that
  document has more pages
 and
  the current page doesn't start with a hard page break...
A pop-up appears asking
  applying the style will change all pages from top/heard page break
  continue Yes/No
  <link to Help with more info>
  [ ] do not show any more
 similar to
  warning in Calc when pasting data over non empty cells
   (Tools > Options > Calc > General .. Overwrite warning

That's easier then also handling a cross page paragraph.

And I would say that (maybe without check for hard page break, just multiple pages?) it might well apply as easy hack..

How does that sound?
Comment 4 Heiko Tietze 2020-02-27 14:36:25 UTC
We discussed the topic in the design meeting. To make it clear for the beginners that page style is applied to the part of the document between hard breaks that define a page style, we recommend to show a confirmation box (with an option to "[ ] Don't show again") with the text "Apply Page Style <name> to <Full Document> <Start from here> <<Replace current style>>" and have these options also in a context menu in the side bar.