michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef nsBaseCommandController_h__ michael@0: #define nsBaseCommandController_h__ michael@0: michael@0: #define NS_BASECOMMANDCONTROLLER_CID \ michael@0: { 0xbf88b48c, 0xfd8e, 0x40b4, { 0xba, 0x36, 0xc7, 0xc3, 0xad, 0x6d, 0x8a, 0xc9 } } michael@0: #define NS_BASECOMMANDCONTROLLER_CONTRACTID \ michael@0: "@mozilla.org/embedcomp/base-command-controller;1" michael@0: michael@0: michael@0: #include "nsIController.h" michael@0: #include "nsIControllerContext.h" michael@0: #include "nsIControllerCommandTable.h" michael@0: #include "nsIInterfaceRequestor.h" michael@0: #include "nsIWeakReferenceUtils.h" michael@0: michael@0: // The base editor controller is used for both text widgets, michael@0: // and all other text and html editing michael@0: class nsBaseCommandController : public nsIController, michael@0: public nsIControllerContext, michael@0: public nsIInterfaceRequestor, michael@0: public nsICommandController michael@0: { michael@0: public: michael@0: michael@0: nsBaseCommandController(); michael@0: virtual ~nsBaseCommandController(); michael@0: michael@0: // nsISupports michael@0: NS_DECL_ISUPPORTS michael@0: michael@0: // nsIController michael@0: NS_DECL_NSICONTROLLER michael@0: michael@0: // nsICommandController michael@0: NS_DECL_NSICOMMANDCONTROLLER michael@0: michael@0: //nsIControllerContext michael@0: NS_DECL_NSICONTROLLERCONTEXT michael@0: michael@0: // nsIInterfaceRequestor michael@0: NS_DECL_NSIINTERFACEREQUESTOR michael@0: michael@0: private: michael@0: michael@0: nsWeakPtr mCommandContextWeakPtr; michael@0: nsISupports* mCommandContextRawPtr; michael@0: michael@0: // Our reference to the command manager michael@0: nsCOMPtr mCommandTable; michael@0: }; michael@0: michael@0: #endif /* nsBaseCommandController_h_ */ michael@0: