Files
libreoffice/sw/source/ui/inc/misc.hrc
Miklos Vajna e2cdde1f18 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
2013-10-11 18:20:14 +02:00

88 lines
3.9 KiB
Plaintext

/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
/*
* This file is part of the LibreOffice project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*
* This file incorporates work covered by the following license notice:
*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed
* with this work for additional information regarding copyright
* ownership. The ASF licenses this file to you under the Apache
* License, Version 2.0 (the "License"); you may not use this file
* except in compliance with the License. You may obtain a copy of
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#ifndef _MISC_HRC
#define _MISC_HRC
#include "rcid.hrc"
#include "cmdid.h"
#define DLG_INSERT_BOOKMARK (RC_MISC_BEGIN + 17)
#define DLG_NUM_NAMES (RC_MISC_BEGIN + 18)
#define DLG_SORTING (RC_MISC_BEGIN + 19)
#define DLG_TAB_OUTLINE (RC_MISC_BEGIN + 31)
#define MSG_DOUBLE_SHORTNAME (RC_MISC_BEGIN + 30)
#define MSG_QUERY_DELETE (RC_MISC_BEGIN + 31)
#define STR_QUERY_DELETE_GROUP1 (RC_MISC_BEGIN + 32)
#define STR_QUERY_DELETE_GROUP2 (RC_MISC_BEGIN + 33)
#define MSG_NO_GLOSSARIES (RC_MISC_BEGIN + 34)
#define MSG_SRTERR (RC_MISC_BEGIN + 42)
#define STR_GLOSSARY (RC_MISC_BEGIN + 43)
#define STR_CHANGE_START (RC_MISC_BEGIN + 44)
#define STR_CHANGE_END (RC_MISC_BEGIN + 45)
#define STR_SAVE_GLOSSARY (RC_MISC_BEGIN + 46)
#define MN_REDLINE_POPUP (RC_MISC_BEGIN + 61)
#define STRRES_NUMTYPES (RC_MISC_BEGIN + 63)
#define STR_MY_AUTOTEXT (RC_MISC_BEGIN + 64)
#define STR_COMMENTS_LABEL (RC_MISC_BEGIN + 65)
#define STR_SHOW_COMMENTS (RC_MISC_BEGIN + 66)
#define STR_HIDE_COMMENTS (RC_MISC_BEGIN + 67)
#define MISC_ACT_END STR_HIDE_COMMENTS
#if MISC_ACT_END > RC_MISC_END
#error Resource-Id Ueberlauf in #file, #line
#endif
#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" ; \
};
#endif // _MISC_HRC
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */