add stock undo button text and map to gtk-undo
Change-Id: I9109dfc6293c9de399c25bea957712eb00d181be
This commit is contained in:
parent
90a83191a4
commit
3c5c43cf2a
4 changed files with 12 additions and 1 deletions
|
@ -1,6 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<interface>
|
<interface>
|
||||||
<!-- interface-requires gtk+ 3.0 -->
|
<!-- interface-requires gtk+ 3.0 -->
|
||||||
|
<!-- interface-requires LibreOffice 1.0 -->
|
||||||
<object class="GtkDialog" id="SpellingDialog">
|
<object class="GtkDialog" id="SpellingDialog">
|
||||||
<property name="can_focus">False</property>
|
<property name="can_focus">False</property>
|
||||||
<property name="border_width">5</property>
|
<property name="border_width">5</property>
|
||||||
|
@ -46,11 +47,12 @@
|
||||||
</child>
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkButton" id="undo">
|
<object class="GtkButton" id="undo">
|
||||||
<property name="label" translatable="yes">_Undo</property>
|
<property name="label">gtk-undo</property>
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
<property name="can_focus">True</property>
|
<property name="can_focus">True</property>
|
||||||
<property name="receives_default">True</property>
|
<property name="receives_default">True</property>
|
||||||
<property name="use_underline">True</property>
|
<property name="use_underline">True</property>
|
||||||
|
<property name="use_stock">True</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">False</property>
|
<property name="expand">False</property>
|
||||||
|
@ -93,6 +95,7 @@
|
||||||
<child>
|
<child>
|
||||||
<object class="svxcorelo-SvxLanguageBox" id="languagelb">
|
<object class="svxcorelo-SvxLanguageBox" id="languagelb">
|
||||||
<property name="visible">True</property>
|
<property name="visible">True</property>
|
||||||
|
<property name="can_focus">False</property>
|
||||||
<property name="halign">end</property>
|
<property name="halign">end</property>
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
|
|
|
@ -159,6 +159,7 @@
|
||||||
#define SV_BUTTONTEXT_SAVE 10118
|
#define SV_BUTTONTEXT_SAVE 10118
|
||||||
#define SV_BUTTONTEXT_OK_NOMNEMONIC 10119
|
#define SV_BUTTONTEXT_OK_NOMNEMONIC 10119
|
||||||
#define SV_BUTTONTEXT_CANCEL_NOMNEMONIC 10120
|
#define SV_BUTTONTEXT_CANCEL_NOMNEMONIC 10120
|
||||||
|
#define SV_BUTTONTEXT_UNDO 10121
|
||||||
|
|
||||||
#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
|
#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
|
||||||
#define SV_STDTEXT_SERVICENOTAVAILABLE 10210
|
#define SV_STDTEXT_SERVICENOTAVAILABLE 10210
|
||||||
|
|
|
@ -124,3 +124,8 @@ String SV_BUTTONTEXT_SAVE
|
||||||
{
|
{
|
||||||
Text [ en-US ] = "~Save";
|
Text [ en-US ] = "~Save";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
String SV_BUTTONTEXT_UNDO
|
||||||
|
{
|
||||||
|
Text [ en-US ] = "~Undo " ;
|
||||||
|
};
|
||||||
|
|
|
@ -579,6 +579,8 @@ namespace
|
||||||
return (VclResId(SV_BUTTONTEXT_APPLY).toString());
|
return (VclResId(SV_BUTTONTEXT_APPLY).toString());
|
||||||
else if (rType == "gtk-save")
|
else if (rType == "gtk-save")
|
||||||
return (VclResId(SV_BUTTONTEXT_SAVE).toString());
|
return (VclResId(SV_BUTTONTEXT_SAVE).toString());
|
||||||
|
else if (rType == "gtk-undo")
|
||||||
|
return (VclResId(SV_BUTTONTEXT_UNDO).toString());
|
||||||
SAL_WARN("vcl.layout", "unknown stock type: " << rType.getStr());
|
SAL_WARN("vcl.layout", "unknown stock type: " << rType.getStr());
|
||||||
return OUString();
|
return OUString();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue