CommandList.h 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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/. */
  5. /**
  6. * Define NS_DEFIVE_COMMAND(aName, aCommandStr) before including this.
  7. * @param aName The name useful in C++ of the command.
  8. * @param aCommandStr The command string in JS.
  9. */
  10. NS_DEFINE_COMMAND(BeginLine, cmd_beginLine)
  11. NS_DEFINE_COMMAND(CharNext, cmd_charNext)
  12. NS_DEFINE_COMMAND(CharPrevious, cmd_charPrevious)
  13. NS_DEFINE_COMMAND(Copy, cmd_copy)
  14. NS_DEFINE_COMMAND(Cut, cmd_cut)
  15. NS_DEFINE_COMMAND(Delete, cmd_delete)
  16. NS_DEFINE_COMMAND(DeleteCharBackward, cmd_deleteCharBackward)
  17. NS_DEFINE_COMMAND(DeleteCharForward, cmd_deleteCharForward)
  18. NS_DEFINE_COMMAND(DeleteToBeginningOfLine, cmd_deleteToBeginningOfLine)
  19. NS_DEFINE_COMMAND(DeleteToEndOfLine, cmd_deleteToEndOfLine)
  20. NS_DEFINE_COMMAND(DeleteWordBackward, cmd_deleteWordBackward)
  21. NS_DEFINE_COMMAND(DeleteWordForward, cmd_deleteWordForward)
  22. NS_DEFINE_COMMAND(EndLine, cmd_endLine)
  23. NS_DEFINE_COMMAND(LineNext, cmd_lineNext)
  24. NS_DEFINE_COMMAND(LinePrevious, cmd_linePrevious)
  25. NS_DEFINE_COMMAND(MoveBottom, cmd_moveBottom)
  26. NS_DEFINE_COMMAND(MovePageDown, cmd_movePageDown)
  27. NS_DEFINE_COMMAND(MovePageUp, cmd_movePageUp)
  28. NS_DEFINE_COMMAND(MoveTop, cmd_moveTop)
  29. NS_DEFINE_COMMAND(Paste, cmd_paste)
  30. NS_DEFINE_COMMAND(ScrollBottom, cmd_scrollBottom)
  31. NS_DEFINE_COMMAND(ScrollLineDown, cmd_scrollLineDown)
  32. NS_DEFINE_COMMAND(ScrollLineUp, cmd_scrollLineUp)
  33. NS_DEFINE_COMMAND(ScrollPageDown, cmd_scrollPageDown)
  34. NS_DEFINE_COMMAND(ScrollPageUp, cmd_scrollPageUp)
  35. NS_DEFINE_COMMAND(ScrollTop, cmd_scrollTop)
  36. NS_DEFINE_COMMAND(SelectAll, cmd_selectAll)
  37. NS_DEFINE_COMMAND(SelectBeginLine, cmd_selectBeginLine)
  38. NS_DEFINE_COMMAND(SelectBottom, cmd_selectBottom)
  39. NS_DEFINE_COMMAND(SelectCharNext, cmd_selectCharNext)
  40. NS_DEFINE_COMMAND(SelectCharPrevious, cmd_selectCharPrevious)
  41. NS_DEFINE_COMMAND(SelectEndLine, cmd_selectEndLine)
  42. NS_DEFINE_COMMAND(SelectLineNext, cmd_selectLineNext)
  43. NS_DEFINE_COMMAND(SelectLinePrevious, cmd_selectLinePrevious)
  44. NS_DEFINE_COMMAND(SelectPageDown, cmd_selectPageDown)
  45. NS_DEFINE_COMMAND(SelectPageUp, cmd_selectPageUp)
  46. NS_DEFINE_COMMAND(SelectTop, cmd_selectTop)
  47. NS_DEFINE_COMMAND(SelectWordNext, cmd_selectWordNext)
  48. NS_DEFINE_COMMAND(SelectWordPrevious, cmd_selectWordPrevious)
  49. NS_DEFINE_COMMAND(WordNext, cmd_wordNext)
  50. NS_DEFINE_COMMAND(WordPrevious, cmd_wordPrevious)