2001-09-26 02:53:13 +04:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
2012-05-21 15:12:37 +04: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/. */
|
2001-04-06 03:34:08 +04:00
|
|
|
|
|
|
|
#ifndef nsComposerController_h__
|
|
|
|
#define nsComposerController_h__
|
|
|
|
|
|
|
|
|
2012-07-13 10:33:42 +04:00
|
|
|
#include "nscore.h" // for nsresult
|
|
|
|
|
2003-04-10 22:44:03 +04:00
|
|
|
class nsIControllerCommandTable;
|
2001-04-06 03:34:08 +04:00
|
|
|
|
|
|
|
|
2002-11-13 02:03:27 +03:00
|
|
|
// The plaintext editor controller is used for basic text editing and html editing
|
|
|
|
// commands in composer
|
2015-05-28 18:58:42 +03:00
|
|
|
// The refCon that gets passed to its commands is initially nsIEditingSession,
|
2002-11-13 02:03:27 +03:00
|
|
|
// and after successfule editor creation it is changed to nsIEditor.
|
|
|
|
#define NS_EDITORDOCSTATECONTROLLER_CID \
|
|
|
|
{ 0x50e95301, 0x17a8, 0x11d4, { 0x9f, 0x7e, 0xdd, 0x53, 0x0d, 0x5f, 0x05, 0x7c } }
|
2001-04-06 03:34:08 +04:00
|
|
|
|
2002-11-13 02:03:27 +03:00
|
|
|
// The HTMLEditor controller is used only for HTML editors and takes nsIEditor as refCon
|
|
|
|
#define NS_HTMLEDITORCONTROLLER_CID \
|
|
|
|
{ 0x62db0002, 0xdbb6, 0x43f4, { 0x8f, 0xb7, 0x9d, 0x25, 0x38, 0xbc, 0x57, 0x47 } }
|
2001-04-06 03:34:08 +04:00
|
|
|
|
2002-02-02 08:13:56 +03:00
|
|
|
|
2002-11-13 02:03:27 +03:00
|
|
|
class nsComposerController
|
|
|
|
{
|
|
|
|
public:
|
2003-04-10 22:44:03 +04:00
|
|
|
static nsresult RegisterEditorDocStateCommands(nsIControllerCommandTable* inCommandTable);
|
|
|
|
static nsresult RegisterHTMLEditorCommands(nsIControllerCommandTable* inCommandTable);
|
2001-04-06 03:34:08 +04:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* nsComposerController_h__ */
|