Blame editor/libeditor/EditorController.h

Packit f0b94e
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
Packit f0b94e
/* This Source Code Form is subject to the terms of the Mozilla Public
Packit f0b94e
 * License, v. 2.0. If a copy of the MPL was not distributed with this
Packit f0b94e
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
Packit f0b94e
Packit f0b94e
#ifndef mozilla_EditorController_h
Packit f0b94e
#define mozilla_EditorController_h
Packit f0b94e
Packit f0b94e
#include "nscore.h"
Packit f0b94e
Packit f0b94e
#define NS_EDITORCONTROLLER_CID                     \
Packit f0b94e
  {                                                 \
Packit f0b94e
    0x26fb965c, 0x9de6, 0x11d3, {                   \
Packit f0b94e
      0xbc, 0xcc, 0x0, 0x60, 0xb0, 0xfc, 0x76, 0xbd \
Packit f0b94e
    }                                               \
Packit f0b94e
  }
Packit f0b94e
Packit f0b94e
#define NS_EDITINGCONTROLLER_CID                     \
Packit f0b94e
  {                                                  \
Packit f0b94e
    0x2c5a5cdd, 0xe742, 0x4dfe, {                    \
Packit f0b94e
      0x86, 0xb8, 0x06, 0x93, 0x09, 0xbf, 0x6c, 0x91 \
Packit f0b94e
    }                                                \
Packit f0b94e
  }
Packit f0b94e
Packit f0b94e
class nsIControllerCommandTable;
Packit f0b94e
Packit f0b94e
namespace mozilla {
Packit f0b94e
Packit f0b94e
// the editor controller is used for both text widgets, and basic text editing
Packit f0b94e
// commands in composer. The refCon that gets passed to its commands is an
Packit f0b94e
// nsIEditor.
Packit f0b94e
Packit f0b94e
class EditorController final {
Packit f0b94e
 public:
Packit f0b94e
  static nsresult RegisterEditorCommands(
Packit f0b94e
      nsIControllerCommandTable* aCommandTable);
Packit f0b94e
  static nsresult RegisterEditingCommands(
Packit f0b94e
      nsIControllerCommandTable* aCommandTable);
Packit f0b94e
};
Packit f0b94e
Packit f0b94e
}  // namespace mozilla
Packit f0b94e
Packit f0b94e
#endif  // #ifndef mozilla_EditorController_h