summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-03-06 16:56:12 +0000
committerCaolán McNamara <caolanm@redhat.com>2013-03-07 14:06:17 +0000
commitb42ea2ad00895ef63a60f82e9159f4e21e946120 (patch)
treea1665cf29309fe1e96370c5fbbc1c74333002e35
parent3acd12a1bbffc9dee9cfdcae92df359a2a8753f0 (diff)
add stock button text for paste, and map to gtk-paste
Change-Id: I38a49ccc744060271be77c9eba2e6bd300630092
-rw-r--r--vcl/inc/svids.hrc1
-rw-r--r--vcl/source/src/btntext.src7
-rw-r--r--vcl/source/window/builder.cxx2
3 files changed, 9 insertions, 1 deletions
diff --git a/vcl/inc/svids.hrc b/vcl/inc/svids.hrc
index d97b0b4f074b..d7d42af72d2b 100644
--- a/vcl/inc/svids.hrc
+++ b/vcl/inc/svids.hrc
@@ -160,6 +160,7 @@
#define SV_BUTTONTEXT_OK_NOMNEMONIC 10119
#define SV_BUTTONTEXT_CANCEL_NOMNEMONIC 10120
#define SV_BUTTONTEXT_UNDO 10121
+#define SV_BUTTONTEXT_PASTE 10122
#define SV_STDTEXT_FIRST SV_STDTEXT_SERVICENOTAVAILABLE
#define SV_STDTEXT_SERVICENOTAVAILABLE 10210
diff --git a/vcl/source/src/btntext.src b/vcl/source/src/btntext.src
index e6058950c7b0..588311944a8e 100644
--- a/vcl/source/src/btntext.src
+++ b/vcl/source/src/btntext.src
@@ -127,5 +127,10 @@ String SV_BUTTONTEXT_SAVE
String SV_BUTTONTEXT_UNDO
{
- Text [ en-US ] = "~Undo " ;
+ Text [ en-US ] = "~Undo" ;
+};
+
+String SV_BUTTONTEXT_PASTE
+{
+ Text [ en-US ] = "~Paste" ;
};
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 58afbe4d1b19..9355c9eba2a6 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -580,6 +580,8 @@ namespace
return (VclResId(SV_BUTTONTEXT_SAVE).toString());
else if (rType == "gtk-undo")
return (VclResId(SV_BUTTONTEXT_UNDO).toString());
+ else if (rType == "gtk-paste")
+ return (VclResId(SV_BUTTONTEXT_PASTE).toString());
SAL_WARN("vcl.layout", "unknown stock type: " << rType.getStr());
return OUString();
}