From 710d768aafd6b2c1fdc5627bede25000c3e346d5 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Thu, 29 Mar 2012 19:42:54 +0100 Subject: add for calc extra paste ctx menu with options to paste text or formula only --- sfx2/inc/sfx2/sfxcommands.h | 3 ++ sfx2/inc/sfx2/sfxsids.hrc | 6 ++-- sfx2/sdi/sfx.sdi | 72 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 78 insertions(+), 3 deletions(-) (limited to 'sfx2') diff --git a/sfx2/inc/sfx2/sfxcommands.h b/sfx2/inc/sfx2/sfxcommands.h index ee56e787f0af..e6e22c296f00 100644 --- a/sfx2/inc/sfx2/sfxcommands.h +++ b/sfx2/inc/sfx2/sfxcommands.h @@ -201,6 +201,9 @@ #define CMD_SID_PASTE ".uno:Paste" #define CMD_SID_CLIPBOARD_FORMAT_ITEMS ".uno:ClipboardFormatItems" #define CMD_SID_PASTE_SPECIAL ".uno:PasteSpecial" +#define CMD_SID_PASTE_ONLY ".uno:PasteOnly" +#define CMD_SID_PASTE_ONLY_TEXT ".uno:PasteOnlyText" +#define CMD_SID_PASTE_ONLY_FORMULA ".uno:PasteOnlyFormula" #define CMD_SID_DOCPATH ".uno:DocPath" #define CMD_SID_PICKLIST ".uno:PickList" #define CMD_SID_PLUGINS_ACTIVE ".uno:PlugInsActive" diff --git a/sfx2/inc/sfx2/sfxsids.hrc b/sfx2/inc/sfx2/sfxsids.hrc index f7cb90b59135..94b2ea6cbcbd 100644 --- a/sfx2/inc/sfx2/sfxsids.hrc +++ b/sfx2/inc/sfx2/sfxsids.hrc @@ -536,9 +536,9 @@ // default-ids for macros #define SID_RECORDING_FLOATWINDOW (SID_SFX_START + 800) #define SID_RECORDMACRO (SID_SFX_START + 1669) - // FREE: SID_SFX_START + 801 - // FREE: SID_SFX_START + 802 - // FREE: SID_SFX_START + 803 +#define SID_PASTE_ONLY (SID_SFX_START + 801) +#define SID_PASTE_ONLY_TEXT (SID_SFX_START + 802) +#define SID_PASTE_ONLY_FORMULA (SID_SFX_START + 803) // FREE: SID_SFX_START + 804 // FREE: SID_SFX_START + 805 // FREE: SID_SFX_START + 806 diff --git a/sfx2/sdi/sfx.sdi b/sfx2/sdi/sfx.sdi index 6b197c719b2e..00885e357990 100644 --- a/sfx2/sdi/sfx.sdi +++ b/sfx2/sdi/sfx.sdi @@ -4630,6 +4630,78 @@ SfxInt16Item PasteSpecial SID_PASTE_SPECIAL GroupId = GID_EDIT; ] +SfxVoidItem PasteOnly SID_PASTE_ONLY +() +[ + /* flags: */ + AutoUpdate = FALSE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = FALSE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Synchron; + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_EDIT; +] + +SfxVoidItem PasteOnlyText SID_PASTE_ONLY_TEXT + +[ + /* flags: */ + AutoUpdate = FALSE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Synchron; + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_EDIT; +] + +SfxVoidItem PasteOnlyFormula SID_PASTE_ONLY_FORMULA + +[ + /* flags: */ + AutoUpdate = FALSE, + Cachable = Cachable, + FastCall = FALSE, + HasCoreId = FALSE, + HasDialog = FALSE, + ReadOnlyDoc = TRUE, + Toggle = FALSE, + Container = FALSE, + RecordAbsolute = FALSE, + RecordPerSet; + Synchron; + + /* config: */ + AccelConfig = TRUE, + MenuConfig = TRUE, + StatusBarConfig = FALSE, + ToolBoxConfig = TRUE, + GroupId = GID_EDIT; +] + //-------------------------------------------------------------------------- SfxStringItem DocPath SID_DOCPATH -- cgit v1.2.3