editor/libeditor/base/nsEditorController.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/editor/libeditor/base/nsEditorController.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,31 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#ifndef nsEditorController_h__
    1.10 +#define nsEditorController_h__
    1.11 +
    1.12 +#include "nscore.h"
    1.13 +
    1.14 +#define NS_EDITORCONTROLLER_CID \
    1.15 +{ 0x26fb965c, 0x9de6, 0x11d3, { 0xbc, 0xcc, 0x0, 0x60, 0xb0, 0xfc, 0x76, 0xbd } }
    1.16 +
    1.17 +#define NS_EDITINGCONTROLLER_CID \
    1.18 +{ 0x2c5a5cdd, 0xe742, 0x4dfe, { 0x86, 0xb8, 0x06, 0x93, 0x09, 0xbf, 0x6c, 0x91 } }
    1.19 +
    1.20 +class nsIControllerCommandTable;
    1.21 +
    1.22 +
    1.23 +// the editor controller is used for both text widgets, and basic text editing
    1.24 +// commands in composer. The refCon that gets passed to its commands is an nsIEditor.
    1.25 +
    1.26 +class nsEditorController 
    1.27 +{
    1.28 +public:
    1.29 +  static nsresult RegisterEditorCommands(nsIControllerCommandTable* inCommandTable);
    1.30 +  static nsresult RegisterEditingCommands(nsIControllerCommandTable* inCommandTable);
    1.31 +};
    1.32 +
    1.33 +#endif /* nsEditorController_h__ */
    1.34 +

mercurial