summaryrefslogtreecommitdiff
path: root/vcl
diff options
context:
space:
mode:
authorSrijan Bhatia <srijanbhatiasun@gmail.com>2020-06-18 18:41:14 +0530
committerXisco Fauli <xiscofauli@libreoffice.org>2020-10-27 18:36:27 +0100
commit482507d7bbc915fd5a10c64bfb60695b2a233a12 (patch)
tree1de8d54ea83f42a280e2842206c38e3b6ac6a859 /vcl
parentcec0ef3d45265c19a9f3d419c3074692d15b6607 (diff)
tdf#127680 Add the option to print even or odd values from a particular range
Added a box besides the pages option that lets the user choose between left and right pages/left pages/right pages. Change-Id: Iee0386f4f3cfd2dac3fcf898a3fefb5434cb27a8 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/96612 Tested-by: Jenkins Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org> Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com> Signed-off-by: Xisco Fauli <xiscofauli@libreoffice.org> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104877 Reviewed-by: Sophie Gautier <sophi@libreoffice.org>
Diffstat (limited to 'vcl')
-rw-r--r--vcl/uiconfig/ui/printdialog.ui43
1 files changed, 18 insertions, 25 deletions
diff --git a/vcl/uiconfig/ui/printdialog.ui b/vcl/uiconfig/ui/printdialog.ui
index 94d1c64181ec..5cd2dfd4553b 100644
--- a/vcl/uiconfig/ui/printdialog.ui
+++ b/vcl/uiconfig/ui/printdialog.ui
@@ -540,14 +540,12 @@
</packing>
</child>
<child>
- <object class="GtkRadioButton" id="rbEvenPages">
- <property name="label" translatable="yes" context="printdialog|rmEvenPages">_Even pages</property>
- <property name="visible">True</property>
+ <object class="GtkRadioButton" id="rbRangeSelection">
+ <property name="label" translatable="yes" context="printdialog|rbRangeSelection">_Selection</property>
<property name="can_focus">True</property>
<property name="receives_default">False</property>
<property name="halign">start</property>
<property name="margin_top">2</property>
- <property name="margin_bottom">2</property>
<property name="use_underline">True</property>
<property name="draw_indicator">True</property>
<property name="group">rbAllPages</property>
@@ -559,39 +557,34 @@
</packing>
</child>
<child>
- <object class="GtkRadioButton" id="rbOddPages">
- <property name="label" translatable="yes" context="printdialog|rbOddPages">_Odd pages</property>
+ <object class="GtkLabel" id="includeevenodd">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
+ <property name="can_focus">False</property>
<property name="halign">start</property>
- <property name="margin_top">2</property>
- <property name="margin_bottom">2</property>
+ <property name="label" translatable="yes" context="printdialog|includeevenodd">Include:</property>
<property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">rbAllPages</property>
+ <property name="mnemonic_widget">evenoddbox</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">3</property>
- <property name="width">2</property>
</packing>
</child>
<child>
- <object class="GtkRadioButton" id="rbRangeSelection">
- <property name="label" translatable="yes" context="printdialog|rbRangeSelection">_Selection</property>
- <property name="can_focus">True</property>
- <property name="receives_default">False</property>
- <property name="halign">start</property>
- <property name="margin_top">2</property>
- <property name="use_underline">True</property>
- <property name="draw_indicator">True</property>
- <property name="group">rbAllPages</property>
+ <object class="GtkComboBoxText" id="evenoddbox">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <property name="hexpand">True</property>
+ <property name="active">0</property>
+ <items>
+ <item translatable="yes" context="printdialog|liststore3">Even and Odd Pages</item>
+ <item translatable="yes" context="printdialog|liststore3">Even Pages</item>
+ <item translatable="yes" context="printdialog|liststore3">Odd Pages</item>
+ </items>
</object>
<packing>
- <property name="left_attach">0</property>
- <property name="top_attach">4</property>
- <property name="width">2</property>
+ <property name="left_attach">1</property>
+ <property name="top_attach">3</property>
</packing>
</child>
</object>