Back to index

lightning-sunbird  0.9+nobinonly
Defines
nsComposerController.cpp File Reference
#include "nsIControllerCommandTable.h"
#include "nsComposerController.h"
#include "nsComposerCommands.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 NS_REGISTER_STYLE_COMMAND(_cmdClass, _cmdName, _styleTag)
#define NS_REGISTER_TAG_COMMAND(_cmdClass, _cmdName, _tagName)

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 54 of file nsComposerController.cpp.

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

Definition at line 66 of file nsComposerController.cpp.

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

Definition at line 62 of file nsComposerController.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 45 of file nsComposerController.cpp.

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

Definition at line 71 of file nsComposerController.cpp.

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

Definition at line 79 of file nsComposerController.cpp.