summaryrefslogtreecommitdiff
path: root/sw/source/ui/app/mn.src
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2013-10-11 17:54:15 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2013-10-11 18:20:14 +0200
commite2cdde1f187de7b6fd0cab740ab7be54fc6fb1f0 (patch)
tree13895f97c9616aef32afe340c95c67980fa4a42e /sw/source/ui/app/mn.src
parent19ea624c6dc779333e84ca937e2f90a3f39871b1 (diff)
sw: make it possible to accept/reject changes if they contain spelling errors
If there were spelling errors in a text portion that is to be accepted/rejected, right mouse click just shown the spellcheck menu, so oddly if an inserted text contained spelling mistakes and we wanted to reject them, Writer didn't allow that. Fix this by adding the redline operations (accept change, reject change, next change, previous change) to the spellcheck menu, but make it only a wrapper around the SwView code, so all the logic on what to do and when to hide these menu items is not duplicated. Change-Id: I76cad2f58a47575f8ef9517af51f1ffe7c4b6844
Diffstat (limited to 'sw/source/ui/app/mn.src')
-rw-r--r--sw/source/ui/app/mn.src30
1 files changed, 3 insertions, 27 deletions
diff --git a/sw/source/ui/app/mn.src b/sw/source/ui/app/mn.src
index fb2c31e0a64e..7a762e9244eb 100644
--- a/sw/source/ui/app/mn.src
+++ b/sw/source/ui/app/mn.src
@@ -24,6 +24,7 @@
#include "globals.hrc"
#include "helpid.h"
#include "popup.hrc"
+#include "misc.hrc"
/* --------------------- F O R M A T --------------------------------- */
#define SEPARATOR MenuItem { Separator = TRUE; }
@@ -218,32 +219,6 @@ location: <project>/uiconfig/[swriter|sweb|sglobal]/menubar/menubar.xml
Text [ en-US ] = "Inde~x Entry..." ; \
};
-#define _MN_EDIT_REDLINE \
- MenuItem \
- { \
- Identifier = FN_REDLINE_ACCEPT_DIRECT; \
- HelpId = CMD_FN_REDLINE_ACCEPT_DIRECT ; \
- Text [ en-US ] = "Accept Change" ; \
- };\
- MenuItem \
- { \
- Identifier = FN_REDLINE_REJECT_DIRECT ; \
- HelpId = CMD_FN_REDLINE_REJECT_DIRECT ; \
- Text [ en-US ] = "Reject Change" ; \
- }; \
- MenuItem \
- { \
- Identifier = FN_REDLINE_NEXT_CHANGE; \
- HelpId = CMD_FN_REDLINE_NEXT_CHANGE ; \
- Text [ en-US ] = "Next Change" ; \
- };\
- MenuItem \
- { \
- Identifier = FN_REDLINE_PREV_CHANGE; \
- HelpId = CMD_FN_REDLINE_PREV_CHANGE ; \
- Text [ en-US ] = "Previous Change" ; \
- };\
- SEPARATOR ;
#define _MN_EDIT_BIB_ENTRY_DLG \
MenuItem \
{ \
@@ -296,7 +271,8 @@ location: <project>/uiconfig/[swriter|sweb|sglobal]/menubar/menubar.xml
_MN_EDIT_FOOTNOTE \
_MN_EDIT_IDX_ENTRY_DLG \
_MN_EDIT_BIB_ENTRY_DLG \
- _MN_EDIT_REDLINE \
+ MN_EDIT_REDLINE \
+ SEPARATOR ; \
MenuItem \
{ \
ITEM_POPUP_TEMPLATE_EDIT \