Back to index

lightning-sunbird  0.9+nobinonly
Defines
nsEditorController.cpp File Reference
#include "nsString.h"
#include "nsIComponentManager.h"
#include "nsEditorController.h"
#include "nsEditorCommands.h"
#include "nsIControllerCommandTable.h"

Go to the source code of this file.

Defines

#define NS_REGISTER_ONE_COMMAND(_cmdClass, _cmdName)
#define NS_REGISTER_FIRST_COMMAND(_cmdClass, _cmdName)
#define NS_REGISTER_NEXT_COMMAND(_cmdClass, _cmdName)
#define NS_REGISTER_LAST_COMMAND(_cmdClass, _cmdName)

Define Documentation

#define NS_REGISTER_FIRST_COMMAND (   _cmdClass,
  _cmdName 
)
Value:
{                                                                                       \
    _cmdClass* theCmd;                                                                    \
    NS_NEWXPCOM(theCmd, _cmdClass);                                                       \
    if (!theCmd) return NS_ERROR_OUT_OF_MEMORY;                                           \
    rv = inCommandTable->RegisterCommand(_cmdName,                                        \
                                   NS_STATIC_CAST(nsIControllerCommand *, theCmd));

Definition at line 57 of file nsEditorController.cpp.

#define NS_REGISTER_LAST_COMMAND (   _cmdClass,
  _cmdName 
)
Value:
rv = inCommandTable->RegisterCommand(_cmdName,                                        \
                                   NS_STATIC_CAST(nsIControllerCommand *, theCmd));       \
  }

Definition at line 69 of file nsEditorController.cpp.

#define NS_REGISTER_NEXT_COMMAND (   _cmdClass,
  _cmdName 
)
Value:
rv = inCommandTable->RegisterCommand(_cmdName,                                        \
                                   NS_STATIC_CAST(nsIControllerCommand *, theCmd));

Definition at line 65 of file nsEditorController.cpp.

#define NS_REGISTER_ONE_COMMAND (   _cmdClass,
  _cmdName 
)
Value:
{                                                                                       \
    _cmdClass* theCmd;                                                                    \
    NS_NEWXPCOM(theCmd, _cmdClass);                                                       \
    if (!theCmd) return NS_ERROR_OUT_OF_MEMORY;                                           \
    rv = inCommandTable->RegisterCommand(_cmdName,                                        \
                                   NS_STATIC_CAST(nsIControllerCommand *, theCmd));       \
  }

Definition at line 48 of file nsEditorController.cpp.