2001-09-25 22:53:13 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 11:12:37 +00:00
|
|
|
/* 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/. */
|
1999-12-15 03:26:29 +00:00
|
|
|
|
2016-07-08 05:26:02 +00:00
|
|
|
#ifndef mozilla_EditorController_h
|
|
|
|
#define mozilla_EditorController_h
|
2001-04-05 23:48:01 +00:00
|
|
|
|
2012-07-13 06:33:42 +00:00
|
|
|
#include "nscore.h"
|
|
|
|
|
1999-12-15 03:26:29 +00:00
|
|
|
#define NS_EDITORCONTROLLER_CID \
|
2016-07-08 05:26:02 +00:00
|
|
|
{ 0x26fb965c, 0x9de6, 0x11d3, \
|
|
|
|
{ 0xbc, 0xcc, 0x0, 0x60, 0xb0, 0xfc, 0x76, 0xbd } }
|
1999-12-15 03:26:29 +00:00
|
|
|
|
2011-12-24 00:11:30 +00:00
|
|
|
#define NS_EDITINGCONTROLLER_CID \
|
2016-07-08 05:26:02 +00:00
|
|
|
{ 0x2c5a5cdd, 0xe742, 0x4dfe, \
|
|
|
|
{ 0x86, 0xb8, 0x06, 0x93, 0x09, 0xbf, 0x6c, 0x91 } }
|
2011-12-24 00:11:30 +00:00
|
|
|
|
2003-04-10 18:44:03 +00:00
|
|
|
class nsIControllerCommandTable;
|
1999-12-15 03:26:29 +00:00
|
|
|
|
2016-07-08 05:26:02 +00:00
|
|
|
namespace mozilla {
|
2000-02-16 01:37:12 +00:00
|
|
|
|
2000-05-01 21:49:52 +00:00
|
|
|
// the editor controller is used for both text widgets, and basic text editing
|
|
|
|
// commands in composer. The refCon that gets passed to its commands is an nsIEditor.
|
|
|
|
|
2016-07-08 05:26:02 +00:00
|
|
|
class EditorController final
|
1999-12-15 03:26:29 +00:00
|
|
|
{
|
|
|
|
public:
|
2016-07-08 05:26:02 +00:00
|
|
|
static nsresult RegisterEditorCommands(
|
|
|
|
nsIControllerCommandTable* aCommandTable);
|
|
|
|
static nsresult RegisterEditingCommands(
|
|
|
|
nsIControllerCommandTable* aCommandTable);
|
1999-12-15 03:26:29 +00:00
|
|
|
};
|
2000-05-01 21:49:52 +00:00
|
|
|
|
2016-07-08 05:26:02 +00:00
|
|
|
} // namespace mozilla
|
2000-05-01 21:49:52 +00:00
|
|
|
|
2016-07-08 05:26:02 +00:00
|
|
|
#endif // #ifndef mozilla_EditorController_h
|