summaryrefslogtreecommitdiff
path: root/sw/uiconfig
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.com>2021-04-21 16:54:00 +0200
committerMiklos Vajna <vmiklos@collabora.com>2021-04-21 18:45:39 +0200
commite920406994dd2b880d4b752e3ea4e09e4a8f97cc (patch)
tree46b844cf8f766123b4a693113315939f5b4a82d0 /sw/uiconfig
parent38ddeebce90f94b9211091f46dcd09ce679cb475 (diff)
sw bibliography, refer to a page: add dedicate widget to show the page number
This way the user doesn't have to interpret the URL manually, we can show the fragment-less URL and the page number separately. So far only the doc model -> UI is done, not yet the other way around. Change-Id: I16116dc0ac55d459f86c54cab32172137377548d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114443 Reviewed-by: Miklos Vajna <vmiklos@collabora.com> Tested-by: Jenkins
Diffstat (limited to 'sw/uiconfig')
-rw-r--r--sw/uiconfig/swriter/ui/bibliofragment.ui83
1 files changed, 71 insertions, 12 deletions
diff --git a/sw/uiconfig/swriter/ui/bibliofragment.ui b/sw/uiconfig/swriter/ui/bibliofragment.ui
index d800d0b7d8c7..6c0cf2181bdd 100644
--- a/sw/uiconfig/swriter/ui/bibliofragment.ui
+++ b/sw/uiconfig/swriter/ui/bibliofragment.ui
@@ -2,6 +2,11 @@
<!-- Generated with glade 3.20.4 -->
<interface domain="sw">
<requires lib="gtk+" version="3.20"/>
+ <object class="GtkAdjustment" id="adjustment1">
+ <property name="upper">55535</property>
+ <property name="step_increment">1</property>
+ <property name="page_increment">10</property>
+ </object>
<!-- n-columns=1 n-rows=1 -->
<object class="GtkGrid" id="biblioentry">
<property name="can_focus">False</property>
@@ -11,18 +16,42 @@
<property name="vexpand">True</property>
<property name="column_spacing">6</property>
<child>
- <object class="GtkBox" id="hbox">
+ <object class="GtkBox" id="vbox">
<property name="visible">True</property>
<property name="can_focus">False</property>
+ <property name="orientation">vertical</property>
<child>
- <object class="GtkEntry" id="entry">
+ <object class="GtkBox" id="hbox">
<property name="visible">True</property>
- <property name="can_focus">True</property>
- <property name="hexpand">True</property>
- <property name="vexpand">False</property>
- <property name="activates_default">True</property>
- <property name="width_chars">14</property>
- <property name="truncate_multiline">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkEntry" id="entry">
+ <property name="visible">True</property>
+ <property name="can_focus">True</property>
+ <property name="hexpand">True</property>
+ <property name="vexpand">False</property>
+ <property name="activates_default">True</property>
+ <property name="width_chars">14</property>
+ <property name="truncate_multiline">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkButton" id="browse">
+ <property name="label" translatable="yes" context="bibliofragment|browse">Browse...</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">True</property>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>
@@ -31,10 +60,40 @@
</packing>
</child>
<child>
- <object class="GtkButton" id="browse">
- <property name="label" translatable="yes" context="bibliofragment|browse">Browse...</property>
- <property name="can_focus">True</property>
- <property name="receives_default">True</property>
+ <object class="GtkBox" id="hbox2">
+ <property name="visible">True</property>
+ <property name="can_focus">False</property>
+ <child>
+ <object class="GtkCheckButton" id="pagecb">
+ <property name="label" translatable="yes" context="bibliofragment|pagecb">Page</property>
+ <property name="can_focus">True</property>
+ <property name="receives_default">False</property>
+ <property name="draw_indicator">True</property>
+ <accessibility>
+ <relation type="label-for" target="pagesb"/>
+ </accessibility>
+ </object>
+ <packing>
+ <property name="expand">False</property>
+ <property name="fill">True</property>
+ <property name="position">0</property>
+ </packing>
+ </child>
+ <child>
+ <object class="GtkSpinButton" id="pagesb">
+ <property name="sensitive">False</property>
+ <property name="can_focus">True</property>
+ <property name="adjustment">adjustment1</property>
+ <accessibility>
+ <relation type="labelled-by" target="pagecb"/>
+ </accessibility>
+ </object>
+ <packing>
+ <property name="expand">True</property>
+ <property name="fill">True</property>
+ <property name="position">1</property>
+ </packing>
+ </child>
</object>
<packing>
<property name="expand">False</property>