/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- * * The contents of this file are subject to the Netscape Public * License Version 1.1 (the "License"); you may not use this file * except in compliance with the License. You may obtain a copy of * the License at http://www.mozilla.org/NPL/ * * Software distributed under the License is distributed on an "AS * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or * implied. See the License for the specific language governing * rights and limitations under the License. * * The Original Code is mozilla.org code. * * The Initial Developer of the Original Code is Netscape * Communications Corporation. Portions created by Netscape are * Copyright (C) 1998 Netscape Communications Corporation. All * Rights Reserved. * * Contributor(s): */ /* AUTO-GENERATED. DO NOT EDIT!!! */ #ifndef nsIDOMXULCommandDispatcher_h__ #define nsIDOMXULCommandDispatcher_h__ #include "nsISupports.h" #include "nsString.h" #include "nsIScriptContext.h" class nsIController; class nsIDOMElement; class nsIDOMWindowInternal; class nsIControllers; #define NS_IDOMXULCOMMANDDISPATCHER_IID \ { 0xf3c50361, 0x14fe, 0x11d3, \ { 0xbf, 0x87, 0x0, 0x10, 0x5a, 0x1b, 0x6, 0x27 } } class NS_NO_VTABLE nsIDOMXULCommandDispatcher : public nsISupports { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMXULCOMMANDDISPATCHER_IID) NS_IMETHOD GetFocusedElement(nsIDOMElement** aFocusedElement)=0; NS_IMETHOD SetFocusedElement(nsIDOMElement* aFocusedElement)=0; NS_IMETHOD GetFocusedWindow(nsIDOMWindowInternal** aFocusedWindow)=0; NS_IMETHOD SetFocusedWindow(nsIDOMWindowInternal* aFocusedWindow)=0; NS_IMETHOD AddCommandUpdater(nsIDOMElement* aUpdater, const nsAReadableString& aEvents, const nsAReadableString& aTargets)=0; NS_IMETHOD RemoveCommandUpdater(nsIDOMElement* aUpdater)=0; NS_IMETHOD UpdateCommands(const nsAReadableString& aEventName)=0; NS_IMETHOD GetControllerForCommand(const nsAReadableString& aCommand, nsIController** aReturn)=0; NS_IMETHOD GetControllers(nsIControllers** aReturn)=0; }; #define NS_DECL_IDOMXULCOMMANDDISPATCHER \ NS_IMETHOD GetFocusedElement(nsIDOMElement** aFocusedElement); \ NS_IMETHOD SetFocusedElement(nsIDOMElement* aFocusedElement); \ NS_IMETHOD GetFocusedWindow(nsIDOMWindowInternal** aFocusedWindow); \ NS_IMETHOD SetFocusedWindow(nsIDOMWindowInternal* aFocusedWindow); \ NS_IMETHOD AddCommandUpdater(nsIDOMElement* aUpdater, const nsAReadableString& aEvents, const nsAReadableString& aTargets); \ NS_IMETHOD RemoveCommandUpdater(nsIDOMElement* aUpdater); \ NS_IMETHOD UpdateCommands(const nsAReadableString& aEventName); \ NS_IMETHOD GetControllerForCommand(const nsAReadableString& aCommand, nsIController** aReturn); \ NS_IMETHOD GetControllers(nsIControllers** aReturn); \ #define NS_FORWARD_IDOMXULCOMMANDDISPATCHER(_to) \ NS_IMETHOD GetFocusedElement(nsIDOMElement** aFocusedElement) { return _to GetFocusedElement(aFocusedElement); } \ NS_IMETHOD SetFocusedElement(nsIDOMElement* aFocusedElement) { return _to SetFocusedElement(aFocusedElement); } \ NS_IMETHOD GetFocusedWindow(nsIDOMWindowInternal** aFocusedWindow) { return _to GetFocusedWindow(aFocusedWindow); } \ NS_IMETHOD SetFocusedWindow(nsIDOMWindowInternal* aFocusedWindow) { return _to SetFocusedWindow(aFocusedWindow); } \ NS_IMETHOD AddCommandUpdater(nsIDOMElement* aUpdater, const nsAReadableString& aEvents, const nsAReadableString& aTargets) { return _to AddCommandUpdater(aUpdater, aEvents, aTargets); } \ NS_IMETHOD RemoveCommandUpdater(nsIDOMElement* aUpdater) { return _to RemoveCommandUpdater(aUpdater); } \ NS_IMETHOD UpdateCommands(const nsAReadableString& aEventName) { return _to UpdateCommands(aEventName); } \ NS_IMETHOD GetControllerForCommand(const nsAReadableString& aCommand, nsIController** aReturn) { return _to GetControllerForCommand(aCommand, aReturn); } \ NS_IMETHOD GetControllers(nsIControllers** aReturn) { return _to GetControllers(aReturn); } \ extern "C" NS_DOM nsresult NS_InitXULCommandDispatcherClass(nsIScriptContext *aContext, void **aPrototype); extern "C" NS_DOM nsresult NS_NewScriptXULCommandDispatcher(nsIScriptContext *aContext, nsISupports *aSupports, nsISupports *aParent, void **aReturn); #endif // nsIDOMXULCommandDispatcher_h__