summaryrefslogtreecommitdiffstats
path: root/cui/uiconfig/ui/textflowpage.ui
diff options
context:
space:
mode:
authorMichael Stahl <mstahl@redhat.com>2017-03-01 12:39:54 +0100
committerMichael Stahl <mstahl@redhat.com>2017-03-01 12:42:10 +0100
commitd36fa0589ab822dc617c65b4d0d3bf68c092ad37 (patch)
tree7306d39b6f853c7440abb581a2c60d5d0769d138 /cui/uiconfig/ui/textflowpage.ui
parentofz#711: direct leak (diff)
downloadcore-d36fa0589ab822dc617c65b4d0d3bf68c092ad37.tar.gz
core-d36fa0589ab822dc617c65b4d0d3bf68c092ad37.zip
tdf#77111 cui,sw: fix page number offset on paragraph dialog "Text Flow"
Commit c2ccd20c0fd92bddfff76447754541705e3eb8f3 introduced 0 as a valid value for page number offset in sw core. Unfortunately the paragraph dialog was not changed then; previously page number 0 would do automatic numbering, but since then 0 was set as the offset, and once you have a 0 offset there's no easy way to remove it, you have to remove the whole page break. * change the label before the text number edit widget to a checkbox that disables the edit widget * keep the id "labelPageNum" so that translations still work * adapt SfxToSwPageDescAttr so it can not just set but also clear the page number * set initial value to 1; 0 is a really bad default since we can't export it to ODF (see tdf#91306) Change-Id: Ic4ca9e2562bb65ac359b305a2202f782e8598307
Diffstat (limited to 'cui/uiconfig/ui/textflowpage.ui')
-rw-r--r--cui/uiconfig/ui/textflowpage.ui7
1 files changed, 4 insertions, 3 deletions
diff --git a/cui/uiconfig/ui/textflowpage.ui b/cui/uiconfig/ui/textflowpage.ui
index 6a0d14d78584..644fb3f47e52 100644
--- a/cui/uiconfig/ui/textflowpage.ui
+++ b/cui/uiconfig/ui/textflowpage.ui
@@ -18,6 +18,7 @@
<property name="upper">9999</property>
<property name="step_increment">1</property>
<property name="page_increment">10</property>
+ <property name="value">1</property>
</object>
<object class="GtkGrid" id="TextFlowPage">
<property name="visible">True</property>
@@ -250,13 +251,13 @@
</packing>
</child>
<child>
- <object class="GtkLabel" id="labelPageNum">
+ <object class="GtkCheckButton" id="labelPageNum">
<property name="visible">True</property>
- <property name="can_focus">False</property>
+ <property name="can_focus">True</property>
<property name="label" translatable="yes">Page _number:</property>
<property name="use_underline">True</property>
+ <property name="inconsistent">True</property>
<property name="justify">right</property>
- <property name="mnemonic_widget">spinPageNumber</property>
<property name="xalign">1</property>
</object>
<packing>