summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-09-19 17:51:52 +0200
committerTomaž Vajngerl <tomaz.vajngerl@collabora.co.uk>2014-09-19 17:55:18 +0200
commit5398664eed621fbcc644ff949d4841590973bfa3 (patch)
treee8b509bfe689da356a3618e4379604093a5a3339
parent857f72dfe32b269a864dc30e687ce5920d1c0fda (diff)
fdo#62947 make IDs unique, fixes, better names
Change-Id: I6cbfd43f037fe89e0f753c67c9368b981b85bd35
-rw-r--r--include/sfx2/sfxcommands.h1
-rw-r--r--include/sfx2/sfxsids.hrc1
-rw-r--r--sfx2/sdi/sfx.sdi24
-rw-r--r--sw/source/ui/app/mn.src9
4 files changed, 30 insertions, 5 deletions
diff --git a/include/sfx2/sfxcommands.h b/include/sfx2/sfxcommands.h
index cde5f46437ca..e9b1b11eafc4 100644
--- a/include/sfx2/sfxcommands.h
+++ b/include/sfx2/sfxcommands.h
@@ -39,6 +39,7 @@
#define CMD_SID_GALLERY_BG_BRUSH ".uno:BackgroundImage"
#define CMD_SID_PASTE ".uno:Paste"
#define CMD_SID_PASTE_SPECIAL ".uno:PasteSpecial"
+#define CMD_SID_PASTE_UNFORMATTED ".uno:PasteUnformatted"
#define CMD_SID_PASTE_ONLY ".uno:PasteOnly"
#define CMD_SID_PASTE_ONLY_VALUE ".uno:PasteOnlyValue"
#define CMD_SID_PASTE_ONLY_TEXT ".uno:PasteOnlyText"
diff --git a/include/sfx2/sfxsids.hrc b/include/sfx2/sfxsids.hrc
index 0ecdffa827df..5d31ca0642b2 100644
--- a/include/sfx2/sfxsids.hrc
+++ b/include/sfx2/sfxsids.hrc
@@ -408,6 +408,7 @@
#define SID_CUT (SID_SFX_START + 710)
#define SID_COPY (SID_SFX_START + 711)
#define SID_PASTE (SID_SFX_START + 712)
+#define SID_MENU_PASTE_SPECIAL (SID_SFX_START + 713)
#define SID_BACKSPACE (SID_SFX_START + 714)
#define SID_FORMATPAINTBRUSH (SID_SFX_START + 715)
diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi
index f89332425ca3..2016f48837b6 100644
--- a/sfx2/sdi/sfx.sdi
+++ b/sfx2/sdi/sfx.sdi
@@ -4516,6 +4516,30 @@ SfxInt16Item PasteSpecial SID_PASTE_SPECIAL
GroupId = GID_EDIT;
]
+SfxInt16Item PasteUnformatted SID_PASTE_UNFORMATTED
+(SfxUInt32Item Format SID_PASTE_UNFORMATTED)
+[
+ /* flags: */
+ AutoUpdate = FALSE,
+ Cachable = Cachable,
+ FastCall = FALSE,
+ HasCoreId = FALSE,
+ HasDialog = TRUE,
+ ReadOnlyDoc = FALSE,
+ Toggle = FALSE,
+ Container = FALSE,
+ RecordAbsolute = FALSE,
+ RecordPerSet;
+ Asynchron;
+
+ /* config: */
+ AccelConfig = TRUE,
+ MenuConfig = TRUE,
+ StatusBarConfig = FALSE,
+ ToolBoxConfig = TRUE,
+ GroupId = GID_EDIT;
+]
+
SfxVoidItem PasteOnly SID_PASTE_ONLY
()
[
diff --git a/sw/source/ui/app/mn.src b/sw/source/ui/app/mn.src
index 03c301c6a2c3..2b9431074350 100644
--- a/sw/source/ui/app/mn.src
+++ b/sw/source/ui/app/mn.src
@@ -295,11 +295,10 @@
Text[ en-US ] = "Down One Level"; \
};
-#define MN_NEW_PASTE_SPECIAL \
+#define MENU_PASTE_SPECIAL \
MenuItem\
{\
- Identifier = SID_PASTE_SPECIAL ; \
- HelpId = CMD_SID_PASTE_SPECIAL ; \
+ Identifier = SID_MENU_PASTE_SPECIAL ; \
Text [ en-US ] = "Paste ~Special" ; \
SubMenu = Menu\
{\
@@ -308,7 +307,7 @@
MenuItem\
{\
Identifier = SID_PASTE_UNFORMATTED ; \
- HelpId = CMD_SID_PASTE_SPECIAL ; \
+ HelpId = CMD_SID_PASTE_UNFORMATTED ; \
Text [ en-US ] = "~Text Only" ; \
};\
MenuItem\
@@ -325,7 +324,7 @@
{ \
ItemList = \
{ \
- MN_NEW_PASTE_SPECIAL \
+ MENU_PASTE_SPECIAL \
MN_RESET \
_NUMBERING_RELATED_MENU \
SEPARATOR ; \