Created attachment 179371 [details]
for testing print preview
Tested with 18.104.22.168.alpha0+
1. Open multiple page document (or use attached)
2. File > Print Preview
3. Notice View Layout icons in lower right corner (of Status Bar)
Actual: Two Page icon is highlighted blue
Expected: One Page icon is highlighted.
4. In Print Preview bar, choose another View Layout (e.g., Book Preview, Multiple Page)
Actual: Two Page icon is (still) highlighted blue.
Expected: Icon shows which layout is selected
5. Choose Two Pages Preview (in Print Preview bar)
6. Click on the Single Page icon in Status bar
Actual: Two pages shown, with Two Pages icon highlighted in Status Bar
Expected: One page shown, and One Page icon highlighted in Status Bar.
7. Resize the Window
Actual: One page icon now highlighted blue, but two pages remain shown.
Question: Are the View Layout Icons in the status bar supposed to "work" (i.e., clickable to change appearance) or be "informational" (i.e., to show the chosen layout)?
If not, then maybe they should be removed.
(In reply to sdc.blanco from comment #0)
> Question: Are the View Layout Icons in the status bar supposed to "work"
> (i.e., clickable to change appearance) or be "informational" (i.e., to show
> the chosen layout)?
> If not, then maybe they should be removed.
Maybe the easiest solution.
My guess for a code pointer (needsDevAdvice to review):
sw/source/uibase/uiview/pview.cxx -> SwPagePreview::GetState()
The previewobjectbar lists the commands and allows to switch between view modes. Weird that it cannot be done via statubar.
Seems like lazy man approach to remove..yes, that's a step forward from the current confusion - but better of course would be that those buttons also work for print preview mode.
*** Bug 151815 has been marked as a duplicate of this bug. ***
The logic of the status bar buttons are different from the print preview bar buttons.
The three buttons on status bar:
1. Single-page view
2. Multiple-page view
3. Book view
↑ They are independent between each other.
The buttons on print preview bar:
1. Single Page Preview
2. Two Pages Preview
3. Book Preview
4. Multiple Pages Preview
↑ 1,2 and 4 are not independent with Book Preview button - you can press Book Preview and Single Page buttons at the same time.
Since they have the different logic, the status bar buttons and the print preview bar buttons are NOT in one-to-one correspondence. Maybe the status bar view buttons should be removed in print-preview mode.
Version: 22.214.171.124.alpha0+ (X86_64) / LibreOffice Community
Build ID: 579d144290c1617fdb38d09b30900a6bbe390b8d
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Very confusing, as users are likely more used to go to the status bar to change the page layout than looking at the toolbar. They find three buttons that are not functional anymore.
Heiko Tietze committed a patch related to this issue.
It has been pushed to "master":
Resolves tdf#148441 - Hide viewlayout in statusbar in preview mode
It will be available in 7.6.0.
The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
Affected users are encouraged to test the fix and report feedback.