Bug 150565 - Show the current page style name in the sidebar's page deck (comment 6)
Summary: Show the current page style name in the sidebar's page deck (comment 6)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.5.0.0 alpha0+
Hardware: All All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Writer-Styles-Page Sidebar-Page
  Show dependency treegraph
 
Reported: 2022-08-23 15:19 UTC by Telesto
Modified: 2023-08-19 14:19 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2022-08-23 15:19:56 UTC
Description:
UI: Changing Page Format in Page Deck changes Page dimension of Multiple Page Styles

Steps to Reproduce:
1. Open Writer
2. Sidebar -> Styles Deck -> Page Styles
3. Right Click Landscape -> Modify -> Page Tab check page dimensions (A4)
4. Right Click Default Page -> Modify -> Page Tab check page dimensions (A4)
5. Format -> Page Styles -> Page Deck -> Change the page size to A5 (title of dialog: Change Default Page Style
6. Press OK
7. Go to Sidebar -> Styles Deck -> Page Styles
8. Right Click Landscape -> Modify -> Page Tab check page dimensions (A4)
9. Right Click Default Page Style -> Modify -> Page Tab check page dimensions (A5)
10. CTRL+Z the change
11. Sidebar -> Page Deck -> Change page size to A5
12. Right Click Landscape -> Modify -> Page Tab check page dimensions (A5)


Actual Results:
On step 12 page style has changed to A5. 

Expected Results:
A4: Like steps 5-9


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 1c1647e6ee252fe68d7406d01043e88f1721590f
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Heiko Tietze 2022-08-24 06:44:26 UTC
If I change the PgS via the main menu (Format > Page Style => .uno:PageDialog) it affects all PgS (eg. Default PgS and Landscape) (which is expected) while applying a different attribute to the *current* PgS via sidebar > Page doesn't (also expected). 

I cannot confirm you observation, at least the actual result, respectively it's by design (the Format menu command applies to all styles and the sidebar to the current only).
Comment 2 Telesto 2022-08-24 14:51:05 UTC
(In reply to Heiko Tietze from comment #1)

I made a mistake when reporting the bug, causing the different end-result. The report is wrong.. Still something fishy is going on:

1. Right Click Modify Landscape in Sidebar -> Styles Deck -> Page Styles & open Page Tab
2. Press OK (without touching anything)
3. Format -> Page Styles -> Page Deck -> Change the page size to A5 
4. Right Click Modify Landscape in Sidebar -> Styles Deck -> Page Styles & open Page Tab. Notice A4.. So closing the dialog with OK makes A4 explicit, not inherited.


> If I change the PgS via the main menu (Format > Page Style =>
> .uno:PageDialog) it affects all PgS (eg. Default PgS and Landscape) 

True. The expected part is something which debated about. It depends what to expect. The Page Styles panel has no visual hierarchy in contrast too Paragraph Styles. So should Landscape inheriting settings from Default Page Style? With a flat list, I would say NO. But however there is some bug about hierarchical page styles, I think? You currently can't create those manually.. So there might be a mismatch the ideal/ desired state (soll), and the actually state (ist). Current mixing two concepts.  

> while applying a different attribute to the *current* PgS via
> sidebar > Page doesn't (also expected). 

This isn't the case. Sidebar > Page does modify the Default Page Style. And indirectly Landscape Page Style. So Page Tab in sidebar regarding to at least for 'Format' is exactly the same as Format -> Page Style -> Page Tab

It isn't obvious that you're actually modifying the current applied page style, when working with the Page Tab. It doesn't even show which page style you're modifying :-( So if you have Page with Landscape page style, and go to Sidebar Page Tab and change orientation to Portrait, you're actually setting Page Style Landscape to Portrait.
Comment 3 Heiko Tietze 2022-08-25 07:48:15 UTC
(In reply to Telesto from comment #2)
> The Page Styles panel has no visual hierarchy in contrast too
> Paragraph Styles. So should Landscape inheriting settings from Default Page
> Style?

PgS has no hierarchy yet, see bug 41316.
Comment 4 Telesto 2022-08-25 12:57:11 UTC
(In reply to Heiko Tietze from comment #3)
> (In reply to Telesto from comment #2)
> > The Page Styles panel has no visual hierarchy in contrast too
> > Paragraph Styles. So should Landscape inheriting settings from Default Page
> > Style?
> 
> PgS has no hierarchy yet, see bug 41316.

The case of Landscape surely behaves as if it has a hierarchy (at least at for the Page Format Attribute). If it where independent, it wouldn't change from A4 to A5 if the default page style got modified.

This isn't supposed to happen, because there shouldn't be any hierarchy, at this point ;-). So technically this is a temporal problem, but well waiting can take very long time. Temporal ranges from 2 - 20 years, I guess. 

--- 
BTW, I still lacking any clue how Sidebar -> Page supposed to work.. Should it some kind of DF Page change or Page Style Change.
Comment 5 Heiko Tietze 2022-08-26 08:35:31 UTC
You apply a style to the current document respectively the PgS after the last page break. And the sidebar modifies the current PgS.
Comment 6 Telesto 2022-08-26 09:22:15 UTC
(In reply to Heiko Tietze from comment #5)
> You apply a style to the current document respectively the PgS after the
> last page break. And the sidebar modifies the current PgS.

In this case, I would expect the style name to be shown in Sidebar -> Page. If you are modifying a style, you should know which one
Comment 7 Heiko Tietze 2022-08-29 09:59:21 UTC
(In reply to Telesto from comment #6)
> In this case, I would expect the style name to be shown in Sidebar -> Page.
> If you are modifying a style, you should know which one

Yes, that would be an improvement.