diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-06-02 16:25:56 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-06-02 20:36:33 +0200 |
commit | cf97d730d60eb3c26adc4e060050e4ba402417f6 (patch) | |
tree | f2676ef50113d9b0ac09be1a980d992cd50c7c47 /vcl | |
parent | efdce9e2ac63503ed448565827f499c46a1b2082 (diff) |
gtk4: adjust print dialog to position page navigation buttons as wanted
Change-Id: Ifbd69faa0e69831ad93a2393234e2d97bdd6f4e6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/116620
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/uiconfig/ui/printdialog.ui | 139 | ||||
-rw-r--r-- | vcl/unx/gtk3/gtkinst.cxx | 2 |
2 files changed, 70 insertions, 71 deletions
diff --git a/vcl/uiconfig/ui/printdialog.ui b/vcl/uiconfig/ui/printdialog.ui index 408fda4165ae..b173e22f0122 100644 --- a/vcl/uiconfig/ui/printdialog.ui +++ b/vcl/uiconfig/ui/printdialog.ui @@ -181,62 +181,85 @@ <object class="GtkBox" id="box3"> <property name="visible">True</property> <property name="can-focus">False</property> + <property name="hexpand">True</property> <child> - <object class="GtkBox" id="box14"> + <object class="GtkBox" id="box10"> <property name="visible">True</property> <property name="can-focus">False</property> - <property name="spacing">6</property> + <property name="halign">start</property> + <property name="spacing">3</property> <child> - <object class="GtkButton" id="btnLast"> + <object class="GtkCheckButton" id="previewbox"> + <property name="label" translatable="yes" context="printdialog|previewbox">Pre_view</property> <property name="visible">True</property> <property name="can-focus">True</property> - <property name="receives-default">True</property> - <property name="tooltip-text" translatable="yes" context="printdialog|lastpage">Last page</property> - <property name="image">imgLast</property> + <property name="receives-default">False</property> + <property name="use-underline">True</property> + <property name="active">True</property> + <property name="draw-indicator">True</property> <child internal-child="accessible"> - <object class="AtkObject" id="btnLast-atkobject"> - <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|btnLast">Shows preview of the last page.</property> + <object class="AtkObject" id="previewbox-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|previewbox">Turn on or off display of the print preview.</property> </object> </child> </object> <packing> <property name="expand">False</property> - <property name="fill">True</property> + <property name="fill">False</property> <property name="pack-type">end</property> <property name="position">0</property> </packing> </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">False</property> + <property name="position">0</property> + </packing> + </child> + <child> + <object class="GtkBox" id="box14"> + <property name="visible">True</property> + <property name="can-focus">False</property> + <property name="halign">end</property> + <property name="hexpand">True</property> + <property name="spacing">6</property> <child> - <object class="GtkButton" id="forward"> + <object class="GtkButton" id="btnFirst"> <property name="visible">True</property> <property name="can-focus">True</property> <property name="receives-default">True</property> - <property name="tooltip-text" translatable="yes" context="printdialog|forward">Next page</property> - <property name="image">imgForward</property> + <property name="tooltip-text" translatable="yes" context="printdialog|firstpage">First page</property> + <property name="image">imgFirst</property> <child internal-child="accessible"> - <object class="AtkObject" id="forward-atkobject"> - <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|forward">Shows preview of the next page.</property> + <object class="AtkObject" id="btnFirst-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|btnFirst">Shows preview of the first page.</property> </object> </child> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="pack-type">end</property> - <property name="position">1</property> + <property name="position">0</property> </packing> </child> <child> - <object class="GtkLabel" id="totalnumpages"> + <object class="GtkButton" id="backward"> <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="label" translatable="yes" context="printdialog|totalnumpages">/ %n</property> + <property name="can-focus">True</property> + <property name="receives-default">True</property> + <property name="tooltip-text" translatable="yes" context="printdialog|backward">Previous page</property> + <property name="image">imgBack</property> + <child internal-child="accessible"> + <object class="AtkObject" id="backward-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|backward">Shows preview of the previous page.</property> + </object> + </child> </object> <packing> <property name="expand">False</property> - <property name="fill">True</property> - <property name="pack-type">end</property> - <property name="position">2</property> + <property name="fill">False</property> + <property name="position">1</property> </packing> </child> <child> @@ -254,98 +277,72 @@ </object> <packing> <property name="expand">False</property> - <property name="fill">True</property> - <property name="pack-type">end</property> - <property name="position">3</property> + <property name="fill">False</property> + <property name="position">2</property> </packing> </child> <child> - <object class="GtkButton" id="backward"> + <object class="GtkLabel" id="totalnumpages"> <property name="visible">True</property> - <property name="can-focus">True</property> - <property name="receives-default">True</property> - <property name="tooltip-text" translatable="yes" context="printdialog|backward">Previous page</property> - <property name="image">imgBack</property> - <child internal-child="accessible"> - <object class="AtkObject" id="backward-atkobject"> - <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|backward">Shows preview of the previous page.</property> - </object> - </child> + <property name="can-focus">False</property> + <property name="label" translatable="yes" context="printdialog|totalnumpages">/ %n</property> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="pack-type">end</property> - <property name="position">4</property> + <property name="position">3</property> </packing> </child> <child> - <object class="GtkButton" id="btnFirst"> + <object class="GtkButton" id="forward"> <property name="visible">True</property> <property name="can-focus">True</property> <property name="receives-default">True</property> - <property name="tooltip-text" translatable="yes" context="printdialog|firstpage">First page</property> - <property name="image">imgFirst</property> + <property name="tooltip-text" translatable="yes" context="printdialog|forward">Next page</property> + <property name="image">imgForward</property> <child internal-child="accessible"> - <object class="AtkObject" id="btnFirst-atkobject"> - <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|btnFirst">Shows preview of the first page.</property> + <object class="AtkObject" id="forward-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|forward">Shows preview of the next page.</property> </object> </child> </object> <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="pack-type">end</property> - <property name="position">5</property> + <property name="position">4</property> </packing> </child> - </object> - <packing> - <property name="expand">False</property> - <property name="fill">True</property> - <property name="pack-type">end</property> - <property name="position">0</property> - </packing> - </child> - <child> - <object class="GtkBox" id="box10"> - <property name="visible">True</property> - <property name="can-focus">False</property> - <property name="spacing">3</property> <child> - <object class="GtkCheckButton" id="previewbox"> - <property name="label" translatable="yes" context="printdialog|previewbox">Pre_view</property> + <object class="GtkButton" id="btnLast"> <property name="visible">True</property> <property name="can-focus">True</property> - <property name="receives-default">False</property> - <property name="halign">center</property> - <property name="use-underline">True</property> - <property name="active">True</property> - <property name="draw-indicator">True</property> + <property name="receives-default">True</property> + <property name="tooltip-text" translatable="yes" context="printdialog|lastpage">Last page</property> + <property name="image">imgLast</property> <child internal-child="accessible"> - <object class="AtkObject" id="previewbox-atkobject"> - <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|previewbox">Turn on or off display of the print preview.</property> + <object class="AtkObject" id="btnLast-atkobject"> + <property name="AtkObject::accessible-description" translatable="yes" context="printdialog|extended_tip|btnLast">Shows preview of the last page.</property> </object> </child> </object> <packing> <property name="expand">False</property> - <property name="fill">True</property> - <property name="pack-type">end</property> - <property name="position">0</property> + <property name="fill">False</property> + <property name="position">5</property> </packing> </child> </object> <packing> <property name="expand">False</property> <property name="fill">True</property> - <property name="position">4</property> + <property name="pack-type">end</property> + <property name="position">1</property> </packing> </child> </object> <packing> <property name="expand">False</property> - <property name="fill">True</property> + <property name="fill">False</property> <property name="pack-type">end</property> <property name="position">1</property> </packing> diff --git a/vcl/unx/gtk3/gtkinst.cxx b/vcl/unx/gtk3/gtkinst.cxx index f2f4824e7128..20598dcc9abe 100644 --- a/vcl/unx/gtk3/gtkinst.cxx +++ b/vcl/unx/gtk3/gtkinst.cxx @@ -22557,11 +22557,13 @@ weld::Builder* GtkInstance::CreateBuilder(weld::Widget* pParent, const OUString& rUIFile != "modules/swriter/ui/inserttable.ui" && rUIFile != "modules/swriter/ui/linenumbering.ui" && rUIFile != "modules/swriter/ui/newuserindexdialog.ui" && + rUIFile != "modules/swriter/ui/printeroptions.ui" && rUIFile != "modules/swriter/ui/printoptionspage.ui" && rUIFile != "modules/swriter/ui/renameobjectdialog.ui" && rUIFile != "modules/swriter/ui/statisticsinfopage.ui" && rUIFile != "modules/swriter/ui/titlepage.ui" && rUIFile != "modules/swriter/ui/wordcount.ui" && + rUIFile != "vcl/ui/printdialog.ui" && rUIFile != "vcl/ui/printerdevicepage.ui" && rUIFile != "vcl/ui/printerpaperpage.ui" && rUIFile != "vcl/ui/printerpropertiesdialog.ui") |