1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
7 * Define NS_DEFINE_COMMAND(aName, aCommandStr) before including this.
8 * @param aName The name useful in C++ of the command.
9 * @param aCommandStr The command string in JS.
11 * Define NS_DEFINE_COMMAND_NO_EXEC_COMMAND(aName) before including this.
12 * @param aName The name useful in C++ of the command.
15 NS_DEFINE_COMMAND(BeginLine
, cmd_beginLine
)
16 NS_DEFINE_COMMAND(CharNext
, cmd_charNext
)
17 NS_DEFINE_COMMAND(CharPrevious
, cmd_charPrevious
)
18 NS_DEFINE_COMMAND(Copy
, cmd_copy
)
19 NS_DEFINE_COMMAND(Cut
, cmd_cut
)
20 NS_DEFINE_COMMAND(Delete
, cmd_delete
)
21 NS_DEFINE_COMMAND(DeleteCharBackward
, cmd_deleteCharBackward
)
22 NS_DEFINE_COMMAND(DeleteCharForward
, cmd_deleteCharForward
)
23 NS_DEFINE_COMMAND(DeleteToBeginningOfLine
, cmd_deleteToBeginningOfLine
)
24 NS_DEFINE_COMMAND(DeleteToEndOfLine
, cmd_deleteToEndOfLine
)
25 NS_DEFINE_COMMAND(DeleteWordBackward
, cmd_deleteWordBackward
)
26 NS_DEFINE_COMMAND(DeleteWordForward
, cmd_deleteWordForward
)
27 NS_DEFINE_COMMAND(EndLine
, cmd_endLine
)
28 NS_DEFINE_COMMAND(InsertParagraph
, cmd_insertParagraph
)
29 NS_DEFINE_COMMAND(InsertLineBreak
, cmd_insertLineBreak
)
30 NS_DEFINE_COMMAND(LineNext
, cmd_lineNext
)
31 NS_DEFINE_COMMAND(LinePrevious
, cmd_linePrevious
)
32 NS_DEFINE_COMMAND(MoveBottom
, cmd_moveBottom
)
33 NS_DEFINE_COMMAND(MovePageDown
, cmd_movePageDown
)
34 NS_DEFINE_COMMAND(MovePageUp
, cmd_movePageUp
)
35 NS_DEFINE_COMMAND(MoveTop
, cmd_moveTop
)
36 NS_DEFINE_COMMAND(Paste
, cmd_paste
)
37 NS_DEFINE_COMMAND(ScrollBottom
, cmd_scrollBottom
)
38 NS_DEFINE_COMMAND(ScrollLineDown
, cmd_scrollLineDown
)
39 NS_DEFINE_COMMAND(ScrollLineUp
, cmd_scrollLineUp
)
40 NS_DEFINE_COMMAND(ScrollPageDown
, cmd_scrollPageDown
)
41 NS_DEFINE_COMMAND(ScrollPageUp
, cmd_scrollPageUp
)
42 NS_DEFINE_COMMAND(ScrollTop
, cmd_scrollTop
)
43 NS_DEFINE_COMMAND(SelectAll
, cmd_selectAll
)
44 NS_DEFINE_COMMAND(SelectBeginLine
, cmd_selectBeginLine
)
45 NS_DEFINE_COMMAND(SelectBottom
, cmd_selectBottom
)
46 NS_DEFINE_COMMAND(SelectCharNext
, cmd_selectCharNext
)
47 NS_DEFINE_COMMAND(SelectCharPrevious
, cmd_selectCharPrevious
)
48 NS_DEFINE_COMMAND(SelectEndLine
, cmd_selectEndLine
)
49 NS_DEFINE_COMMAND(SelectLineNext
, cmd_selectLineNext
)
50 NS_DEFINE_COMMAND(SelectLinePrevious
, cmd_selectLinePrevious
)
51 NS_DEFINE_COMMAND(SelectPageDown
, cmd_selectPageDown
)
52 NS_DEFINE_COMMAND(SelectPageUp
, cmd_selectPageUp
)
53 NS_DEFINE_COMMAND(SelectTop
, cmd_selectTop
)
54 NS_DEFINE_COMMAND(SelectWordNext
, cmd_selectWordNext
)
55 NS_DEFINE_COMMAND(SelectWordPrevious
, cmd_selectWordPrevious
)
56 NS_DEFINE_COMMAND(WordNext
, cmd_wordNext
)
57 NS_DEFINE_COMMAND(WordPrevious
, cmd_wordPrevious
)
59 NS_DEFINE_COMMAND_NO_EXEC_COMMAND(CancelOperation
)
60 NS_DEFINE_COMMAND_NO_EXEC_COMMAND(Complete
)
61 NS_DEFINE_COMMAND_NO_EXEC_COMMAND(InsertBacktab
)
62 NS_DEFINE_COMMAND_NO_EXEC_COMMAND(InsertTab
)