summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorJustin Luth <justin.luth@collabora.com>2023-10-14 16:49:56 -0400
committerJustin Luth <jluth@mail.com>2023-10-15 02:48:40 +0200
commit489da34e9bffb234fa27155cef1931bd6f21dc1d (patch)
tree9e1ca2043b685fadf2b4761459757d9bb7023969 /sd
parent2a3023bc91d6f16133b5c869a1159342f9223228 (diff)
tdf#150466 notebookbar: hide PrintDefault on compact and standardize
As in the classic toolbars, do not promote direct printing since it easily leads to mistakes and wasted paper. Additionally, the printer settings is really never needed, so it should not have a prominent place, especially on COMPACT. At the same time, I standardized the File menu: - always include print (especially useful for accessibility) - always use the same order - consistently provide access to print/web preview Change-Id: I9ffbba179206274b5ed1788e496b7c5aa0503726 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/157984 Tested-by: Jenkins Reviewed-by: Justin Luth <jluth@mail.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/uiconfig/sdraw/ui/notebookbar.ui9
-rw-r--r--sd/uiconfig/sdraw/ui/notebookbar_compact.ui39
-rw-r--r--sd/uiconfig/sdraw/ui/notebookbar_groupedbar_compact.ui9
-rw-r--r--sd/uiconfig/simpress/ui/notebookbar.ui9
-rw-r--r--sd/uiconfig/simpress/ui/notebookbar_compact.ui15
-rw-r--r--sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui9
-rw-r--r--sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui9
7 files changed, 85 insertions, 14 deletions
diff --git a/sd/uiconfig/sdraw/ui/notebookbar.ui b/sd/uiconfig/sdraw/ui/notebookbar.ui
index 4f91cd52e122..eb3f977a15a5 100644
--- a/sd/uiconfig/sdraw/ui/notebookbar.ui
+++ b/sd/uiconfig/sdraw/ui/notebookbar.ui
@@ -561,9 +561,16 @@
</object>
</child>
<child>
- <object class="GtkMenuItem" id="MenuFile-PrintDefault">
+ <object class="GtkMenuItem" id="MenuFile-Print">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="action_name">.uno:Print</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkMenuItem" id="MenuFile-PrintDefault">
+ <property name="visible">False</property>
+ <property name="can_focus">False</property>
<property name="action_name">.uno:PrintDefault</property>
</object>
</child>
diff --git a/sd/uiconfig/sdraw/ui/notebookbar_compact.ui b/sd/uiconfig/sdraw/ui/notebookbar_compact.ui
index dc9ecbe73439..3aa52a0ccf82 100644
--- a/sd/uiconfig/sdraw/ui/notebookbar_compact.ui
+++ b/sd/uiconfig/sdraw/ui/notebookbar_compact.ui
@@ -597,19 +597,26 @@
</child>
<child>
<object class="GtkMenuItem" id="MenuFile-WebHtml">
- <property name="visible">False</property>
+ <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:WebHtml</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="MenuFile-Print">
- <property name="visible">False</property>
+ <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:Print</property>
</object>
</child>
<child>
+ <object class="GtkMenuItem" id="MenuFile-PrintDefault">
+ <property name="visible">False</property>
+ <property name="can_focus">False</property>
+ <property name="action_name">.uno:PrintDefault</property>
+ </object>
+ </child>
+ <child>
<object class="GtkMenuItem" id="MenuFile-PrinterSetup">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -2752,6 +2759,28 @@
<property name="can_focus">True</property>
<property name="toolbar_style">both-horiz</property>
<child>
+ <object class="GtkToolButton" id="Files-WebHtml">
+ <property name="visible">True</property>
+ <property name="action_name">.uno:WebHtml</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="homogeneous">False</property>
+ </packing>
+ </child>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
+ <child>
+ <object class="sfxlo-NotebookbarToolBox" id="SectionBottom105b">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="toolbar_style">both-horiz</property>
+ <child>
<object class="GtkToolButton" id="Files-Print">
<property name="visible">True</property>
<property name="action_name">.uno:Print</property>
@@ -2765,7 +2794,7 @@
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
- <property name="position">1</property>
+ <property name="position">2</property>
</packing>
</child>
</object>
@@ -2788,7 +2817,7 @@
<property name="toolbar_style">both-horiz</property>
<child>
<object class="GtkToolButton" id="Files-PrintDefault">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="action_name">.uno:PrintDefault</property>
</object>
<packing>
@@ -2827,7 +2856,7 @@
<property name="show_arrow">False</property>
<child>
<object class="GtkToolButton" id="PrinterSetup">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="visible_horizontal">False</property>
<property name="action_name">.uno:PrinterSetup</property>
<property name="icon_name">sfx2/res/symphony/open_more.png</property>
diff --git a/sd/uiconfig/sdraw/ui/notebookbar_groupedbar_compact.ui b/sd/uiconfig/sdraw/ui/notebookbar_groupedbar_compact.ui
index d306a82252a9..b1f8e937ca7f 100644
--- a/sd/uiconfig/sdraw/ui/notebookbar_groupedbar_compact.ui
+++ b/sd/uiconfig/sdraw/ui/notebookbar_groupedbar_compact.ui
@@ -798,6 +798,13 @@
</object>
</child>
<child>
+ <object class="GtkMenuItem" id="MenuFile-WebHtml">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="action_name">.uno:WebHtml</property>
+ </object>
+ </child>
+ <child>
<object class="GtkMenuItem" id="PrintD">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -806,7 +813,7 @@
</child>
<child>
<object class="GtkMenuItem" id="PrintDefaultD">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:PrintDefault</property>
</object>
diff --git a/sd/uiconfig/simpress/ui/notebookbar.ui b/sd/uiconfig/simpress/ui/notebookbar.ui
index 47b3109dd899..cff0d3c1e5bd 100644
--- a/sd/uiconfig/simpress/ui/notebookbar.ui
+++ b/sd/uiconfig/simpress/ui/notebookbar.ui
@@ -483,9 +483,16 @@
</object>
</child>
<child>
- <object class="GtkMenuItem" id="MenuFile-PrintDefault">
+ <object class="GtkMenuItem" id="MenuFile-Print">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="action_name">.uno:Print</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkMenuItem" id="MenuFile-PrintDefault">
+ <property name="visible">False</property>
+ <property name="can_focus">False</property>
<property name="action_name">.uno:PrintDefault</property>
</object>
</child>
diff --git a/sd/uiconfig/simpress/ui/notebookbar_compact.ui b/sd/uiconfig/simpress/ui/notebookbar_compact.ui
index 0d3a9cca0a74..f7d65027ae5b 100644
--- a/sd/uiconfig/simpress/ui/notebookbar_compact.ui
+++ b/sd/uiconfig/simpress/ui/notebookbar_compact.ui
@@ -596,19 +596,26 @@
</child>
<child>
<object class="GtkMenuItem" id="MenuFile-WebHtml">
- <property name="visible">False</property>
+ <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:WebHtml</property>
</object>
</child>
<child>
<object class="GtkMenuItem" id="MenuFile-Print">
- <property name="visible">False</property>
+ <property name="visible">True</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:Print</property>
</object>
</child>
<child>
+ <object class="GtkMenuItem" id="MenuFile-PrintDefault">
+ <property name="visible">False</property>
+ <property name="can_focus">False</property>
+ <property name="action_name">.uno:PrintDefault</property>
+ </object>
+ </child>
+ <child>
<object class="GtkMenuItem" id="MenuFile-PrinterSetup">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -3095,7 +3102,7 @@
<property name="toolbar_style">both-horiz</property>
<child>
<object class="GtkToolButton" id="Files-PrintDefault">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="action_name">.uno:PrintDefault</property>
</object>
<packing>
@@ -3134,7 +3141,7 @@
<property name="show_arrow">False</property>
<child>
<object class="GtkToolButton" id="PrinterSetup">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="visible_horizontal">False</property>
<property name="action_name">.uno:PrinterSetup</property>
<property name="icon_name">sfx2/res/symphony/open_more.png</property>
diff --git a/sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui b/sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui
index f2248d0fd14a..2075f8208d29 100644
--- a/sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui
+++ b/sd/uiconfig/simpress/ui/notebookbar_groupedbar_compact.ui
@@ -778,6 +778,13 @@
</object>
</child>
<child>
+ <object class="GtkMenuItem" id="MenuFile-WebHtml">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="action_name">.uno:WebHtml</property>
+ </object>
+ </child>
+ <child>
<object class="GtkMenuItem" id="PrintD">
<property name="visible">True</property>
<property name="can_focus">False</property>
@@ -786,7 +793,7 @@
</child>
<child>
<object class="GtkMenuItem" id="PrintDefaultD">
- <property name="visible">True</property>
+ <property name="visible">False</property>
<property name="can_focus">False</property>
<property name="action_name">.uno:PrintDefault</property>
</object>
diff --git a/sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui b/sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui
index 1c7cbb0ed2ef..a39708e4aac7 100644
--- a/sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui
+++ b/sd/uiconfig/simpress/ui/notebookbar_groupedbar_full.ui
@@ -842,9 +842,16 @@
</object>
</child>
<child>
- <object class="GtkMenuItem" id="PrintDefaultD">
+ <object class="GtkMenuItem" id="MenuFile-Print">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="action_name">.uno:Print</property>
+ </object>
+ </child>
+ <child>
+ <object class="GtkMenuItem" id="PrintDefaultD">
+ <property name="visible">False</property>
+ <property name="can_focus">False</property>
<property name="action_name">.uno:PrintDefault</property>
</object>
</child>