diff options
author | Noel Power <noel.power@novell.com> | 2012-03-29 19:42:54 +0100 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-03-29 19:45:22 +0100 |
commit | 710d768aafd6b2c1fdc5627bede25000c3e346d5 (patch) | |
tree | 918792e96c50680b6928e8fb9d1907d6be836f97 /sfx2 | |
parent | f826a5b56ac12e0b85c380f7d26c379e3d1f7281 (diff) |
add for calc extra paste ctx menu with options to paste text or formula only
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/inc/sfx2/sfxcommands.h | 3 | ||||
-rw-r--r-- | sfx2/inc/sfx2/sfxsids.hrc | 6 | ||||
-rw-r--r-- | sfx2/sdi/sfx.sdi | 72 |
3 files changed, 78 insertions, 3 deletions
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 |