Files
odfstudio/sd/source/ui/controller
Michael Weghorn f504ea8b34 sd: Port LayoutToolbarMenu from ValueSet to weld::IconView
Port the toolbar popup to select the slide layout to use
from using two ValueSet widgets to using weld::IconView
instead.

This helps to be more consistent with other platform/toolkit
widgets and reduces custom widget logic.

Adjust indices used to account for the fact that
weld::IconView indices are 0-based while the ValueSet ones
are 1-based. For the particular case here, custom non-continguous
item IDs were used for the ValueSet items that
correspond to the AutoLayout enum values.
Store those custom IDs as the IDs of the weld::IconView items and
retrieve the ID again in LayoutToolbarMenu::IconViewItemActivatedHdl.

The popup can be triggered like this:

* start Impress
* in the toolbar, click on the "Slide Layout" button

Change-Id: Ib4bf1c611663e8001a6ffcff6bc5ecf393c22277
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211908
Tested-by: Jenkins
Reviewed-by: Michael Weghorn <m.weghorn@posteo.de>
2026-10-07 17:52:01 +02:00
..