mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-11-12 14:20:14 +02:00
--HG-- rename : embedding/components/commandhandler/src/nsBaseCommandController.cpp => embedding/components/commandhandler/nsBaseCommandController.cpp rename : embedding/components/commandhandler/src/nsBaseCommandController.h => embedding/components/commandhandler/nsBaseCommandController.h rename : embedding/components/commandhandler/src/nsCommandGroup.cpp => embedding/components/commandhandler/nsCommandGroup.cpp rename : embedding/components/commandhandler/src/nsCommandGroup.h => embedding/components/commandhandler/nsCommandGroup.h rename : embedding/components/commandhandler/src/nsCommandManager.cpp => embedding/components/commandhandler/nsCommandManager.cpp rename : embedding/components/commandhandler/src/nsCommandManager.h => embedding/components/commandhandler/nsCommandManager.h rename : embedding/components/commandhandler/src/nsCommandParams.cpp => embedding/components/commandhandler/nsCommandParams.cpp rename : embedding/components/commandhandler/src/nsCommandParams.h => embedding/components/commandhandler/nsCommandParams.h rename : embedding/components/commandhandler/src/nsControllerCommandTable.cpp => embedding/components/commandhandler/nsControllerCommandTable.cpp rename : embedding/components/commandhandler/src/nsControllerCommandTable.h => embedding/components/commandhandler/nsControllerCommandTable.h rename : embedding/components/commandhandler/public/nsICommandManager.idl => embedding/components/commandhandler/nsICommandManager.idl rename : embedding/components/commandhandler/public/nsICommandParams.idl => embedding/components/commandhandler/nsICommandParams.idl rename : embedding/components/commandhandler/public/nsIControllerCommand.idl => embedding/components/commandhandler/nsIControllerCommand.idl rename : embedding/components/commandhandler/public/nsIControllerCommandTable.idl => embedding/components/commandhandler/nsIControllerCommandTable.idl rename : embedding/components/commandhandler/public/nsIControllerContext.idl => embedding/components/commandhandler/nsIControllerContext.idl rename : embedding/components/commandhandler/public/nsPICommandUpdater.idl => embedding/components/commandhandler/nsPICommandUpdater.idl
60 lines
1.6 KiB
C++
60 lines
1.6 KiB
C++
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
/* 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/. */
|
|
|
|
#ifndef nsBaseCommandController_h__
|
|
#define nsBaseCommandController_h__
|
|
|
|
#define NS_BASECOMMANDCONTROLLER_CID \
|
|
{ 0xbf88b48c, 0xfd8e, 0x40b4, { 0xba, 0x36, 0xc7, 0xc3, 0xad, 0x6d, 0x8a, 0xc9 } }
|
|
#define NS_BASECOMMANDCONTROLLER_CONTRACTID \
|
|
"@mozilla.org/embedcomp/base-command-controller;1"
|
|
|
|
|
|
#include "nsIController.h"
|
|
#include "nsIControllerContext.h"
|
|
#include "nsIControllerCommandTable.h"
|
|
#include "nsIInterfaceRequestor.h"
|
|
#include "nsIWeakReferenceUtils.h"
|
|
|
|
// The base editor controller is used for both text widgets,
|
|
// and all other text and html editing
|
|
class nsBaseCommandController : public nsIController,
|
|
public nsIControllerContext,
|
|
public nsIInterfaceRequestor,
|
|
public nsICommandController
|
|
{
|
|
public:
|
|
|
|
nsBaseCommandController();
|
|
|
|
// nsISupports
|
|
NS_DECL_ISUPPORTS
|
|
|
|
// nsIController
|
|
NS_DECL_NSICONTROLLER
|
|
|
|
// nsICommandController
|
|
NS_DECL_NSICOMMANDCONTROLLER
|
|
|
|
//nsIControllerContext
|
|
NS_DECL_NSICONTROLLERCONTEXT
|
|
|
|
// nsIInterfaceRequestor
|
|
NS_DECL_NSIINTERFACEREQUESTOR
|
|
|
|
protected:
|
|
virtual ~nsBaseCommandController();
|
|
|
|
private:
|
|
|
|
nsWeakPtr mCommandContextWeakPtr;
|
|
nsISupports* mCommandContextRawPtr;
|
|
|
|
// Our reference to the command manager
|
|
nsCOMPtr<nsIControllerCommandTable> mCommandTable;
|
|
};
|
|
|
|
#endif /* nsBaseCommandController_h_ */
|
|
|