Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Static Protected Member Functions
nsWebNavigationBaseCommand Class Reference
Inheritance diagram for nsWebNavigationBaseCommand:
Inheritance graph
[legend]
Collaboration diagram for nsWebNavigationBaseCommand:
Collaboration graph
[legend]

List of all members.

Public Member Functions

boolean isCommandEnabled (in string aCommandName, in nsISupports aCommandContext)
 Returns true if the command is currently enabled.
void getCommandStateParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext)
void doCommand (in string aCommandName, in nsISupports aCommandContext)
 Execute the name command.
void doCommandParams (in string aCommandName, in nsICommandParams aParams, in nsISupports aCommandContext)

Protected Member Functions

virtual nsresult IsWebNavCommandEnabled (const char *aCommandName, nsIWebNavigation *aWebNavigation, PRBool *outCmdEnabled)=0
virtual nsresult DoWebNavCommand (const char *aCommandName, nsIWebNavigation *aWebNavigation)=0

Static Protected Member Functions

static nsresult GetWebNavigationFromContext (nsISupports *aContext, nsIWebNavigation **aWebNavigation)

Detailed Description

Definition at line 681 of file nsGlobalWindowCommands.cpp.


Member Function Documentation

void nsIControllerCommand::doCommand ( in string  aCommandName,
in nsISupports  aCommandContext 
) [inherited]

Execute the name command.

Parameters:
aCommandNamethe name of the command to execute.
aCommandContexta cookie held by the nsIControllerCommandTable, allowing the command to get some context information. The contents of this cookie are implementation-defined.
void nsIControllerCommand::doCommandParams ( in string  aCommandName,
in nsICommandParams  aParams,
in nsISupports  aCommandContext 
) [inherited]
virtual nsresult nsWebNavigationBaseCommand::DoWebNavCommand ( const char *  aCommandName,
nsIWebNavigation aWebNavigation 
) [protected, pure virtual]
void nsIControllerCommand::getCommandStateParams ( in string  aCommandName,
in nsICommandParams  aParams,
in nsISupports  aCommandContext 
) [inherited]
nsresult nsWebNavigationBaseCommand::GetWebNavigationFromContext ( nsISupports *  aContext,
nsIWebNavigation **  aWebNavigation 
) [static, protected]

Definition at line 769 of file nsGlobalWindowCommands.cpp.

{
  nsCOMPtr<nsIInterfaceRequestor> windowReq = do_QueryInterface(aContext);
  CallGetInterface(windowReq.get(), aWebNavigation);
  return (*aWebNavigation) ? NS_OK : NS_ERROR_FAILURE;
}

Here is the call graph for this function:

boolean nsIControllerCommand::isCommandEnabled ( in string  aCommandName,
in nsISupports  aCommandContext 
) [inherited]

Returns true if the command is currently enabled.

An nsIControllerCommand can implement more than one commands; say, a group of related commands (e.g. delete left/delete right). Because of this, the command name is passed to each method.

Parameters:
aCommandNamethe name of the command for which we want the enabled state.
aCommandContexta cookie held by the nsIControllerCommandTable, allowing the command to get some context information. The contents of this cookie are implementation-defined.
virtual nsresult nsWebNavigationBaseCommand::IsWebNavCommandEnabled ( const char *  aCommandName,
nsIWebNavigation aWebNavigation,
PRBool outCmdEnabled 
) [protected, pure virtual]

The documentation for this class was generated from the following file: