Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Variables
nsGlobalWindowCommands.cpp File Reference
#include "nsGlobalWindowCommands.h"
#include "nsIComponentManager.h"
#include "nsIInterfaceRequestor.h"
#include "nsIInterfaceRequestorUtils.h"
#include "nsCRT.h"
#include "nsString.h"
#include "nsIControllerCommandTable.h"
#include "nsICommandParams.h"
#include "nsIDOMWindow.h"
#include "nsIPresShell.h"
#include "nsPresContext.h"
#include "nsIScriptGlobalObject.h"
#include "nsIDocShell.h"
#include "nsISelectionController.h"
#include "nsIEventStateManager.h"
#include "nsIWebNavigation.h"
#include "nsIContentViewerEdit.h"
#include "nsIContentViewer.h"
#include "nsIClipboardDragDropHooks.h"
#include "nsIClipboardDragDropHookList.h"

Go to the source code of this file.

Classes

class  nsSelectionCommandsBase
class  nsSelectMoveScrollCommand
class  nsSelectCommand
class  nsClipboardBaseCommand
class  nsWebNavigationBaseCommand
class  nsClipboardDragDropHookCommand

Defines

#define NS_DECL_CLIPBOARD_COMMAND(_cmd)
#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)

Variables

const char *const sSelectAllString = "cmd_selectAll"
const char *const sSelectNoneString = "cmd_selectNone"
const char *const sCopyImageLocationString = "cmd_copyImageLocation"
const char *const sCopyImageContentsString = "cmd_copyImageContents"
const char *const sCopyImageString = "cmd_copyImage"
const char *const sScrollTopString = "cmd_scrollTop"
const char *const sScrollBottomString = "cmd_scrollBottom"
const char *const sScrollPageUpString = "cmd_scrollPageUp"
const char *const sScrollPageDownString = "cmd_scrollPageDown"
const char *const sMovePageUpString = "cmd_movePageUp"
const char *const sMovePageDownString = "cmd_movePageDown"
const char *const sScrollLineUpString = "cmd_scrollLineUp"
const char *const sScrollLineDownString = "cmd_scrollLineDown"
const char *const sScrollLeftString = "cmd_scrollLeft"
const char *const sScrollRightString = "cmd_scrollRight"
const char *const sSelectCharPreviousString = "cmd_selectCharPrevious"
const char *const sSelectCharNextString = "cmd_selectCharNext"
const char *const sWordPreviousString = "cmd_wordPrevious"
const char *const sWordNextString = "cmd_wordNext"
const char *const sSelectWordPreviousString = "cmd_selectWordPrevious"
const char *const sSelectWordNextString = "cmd_selectWordNext"
const char *const sBeginLineString = "cmd_beginLine"
const char *const sEndLineString = "cmd_endLine"
const char *const sSelectBeginLineString = "cmd_selectBeginLine"
const char *const sSelectEndLineString = "cmd_selectEndLine"
const char *const sSelectLinePreviousString = "cmd_selectLinePrevious"
const char *const sSelectLineNextString = "cmd_selectLineNext"
const char *const sSelectPagePreviousString = "cmd_selectPagePrevious"
const char *const sSelectPageNextString = "cmd_selectPageNext"
const char *const sSelectTopString = "cmd_selectTop"
const char *const sSelectBottomString = "cmd_selectBottom"

Define Documentation

Value:
class _cmd : public nsClipboardBaseCommand                                                  \
{                                                                                           \
protected:                                                                                  \
                                                                                            \
  virtual nsresult    IsClipboardCommandEnabled(const char* aCommandName,                   \
                                  nsIContentViewerEdit* aEdit, PRBool *outCmdEnabled);      \
  virtual nsresult    DoClipboardCommand(const char* aCommandName,                          \
                                  nsIContentViewerEdit* aEdit, nsICommandParams* aParams);  \
  /* no member variables, please, we're stateless! */                                       \
};

Definition at line 513 of file nsGlobalWindowCommands.cpp.

#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 915 of file nsGlobalWindowCommands.cpp.

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

Definition at line 927 of file nsGlobalWindowCommands.cpp.

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

Definition at line 923 of file nsGlobalWindowCommands.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 906 of file nsGlobalWindowCommands.cpp.


Variable Documentation

const char* const sBeginLineString = "cmd_beginLine"

Definition at line 93 of file nsGlobalWindowCommands.cpp.

const char* const sCopyImageContentsString = "cmd_copyImageContents"

Definition at line 68 of file nsGlobalWindowCommands.cpp.

const char* const sCopyImageLocationString = "cmd_copyImageLocation"

Definition at line 67 of file nsGlobalWindowCommands.cpp.

const char* const sCopyImageString = "cmd_copyImage"

Definition at line 69 of file nsGlobalWindowCommands.cpp.

const char* const sEndLineString = "cmd_endLine"

Definition at line 94 of file nsGlobalWindowCommands.cpp.

const char* const sMovePageDownString = "cmd_movePageDown"

Definition at line 76 of file nsGlobalWindowCommands.cpp.

const char* const sMovePageUpString = "cmd_movePageUp"

Definition at line 75 of file nsGlobalWindowCommands.cpp.

const char* const sScrollBottomString = "cmd_scrollBottom"

Definition at line 72 of file nsGlobalWindowCommands.cpp.

const char* const sScrollLeftString = "cmd_scrollLeft"

Definition at line 79 of file nsGlobalWindowCommands.cpp.

const char* const sScrollLineDownString = "cmd_scrollLineDown"

Definition at line 78 of file nsGlobalWindowCommands.cpp.

const char* const sScrollLineUpString = "cmd_scrollLineUp"

Definition at line 77 of file nsGlobalWindowCommands.cpp.

const char* const sScrollPageDownString = "cmd_scrollPageDown"

Definition at line 74 of file nsGlobalWindowCommands.cpp.

const char* const sScrollPageUpString = "cmd_scrollPageUp"

Definition at line 73 of file nsGlobalWindowCommands.cpp.

const char* const sScrollRightString = "cmd_scrollRight"

Definition at line 80 of file nsGlobalWindowCommands.cpp.

const char* const sScrollTopString = "cmd_scrollTop"

Definition at line 71 of file nsGlobalWindowCommands.cpp.

const char* const sSelectAllString = "cmd_selectAll"

Definition at line 65 of file nsGlobalWindowCommands.cpp.

const char* const sSelectBeginLineString = "cmd_selectBeginLine"

Definition at line 95 of file nsGlobalWindowCommands.cpp.

const char* const sSelectBottomString = "cmd_selectBottom"

Definition at line 105 of file nsGlobalWindowCommands.cpp.

const char* const sSelectCharNextString = "cmd_selectCharNext"

Definition at line 86 of file nsGlobalWindowCommands.cpp.

const char* const sSelectCharPreviousString = "cmd_selectCharPrevious"

Definition at line 85 of file nsGlobalWindowCommands.cpp.

const char* const sSelectEndLineString = "cmd_selectEndLine"

Definition at line 96 of file nsGlobalWindowCommands.cpp.

const char* const sSelectLineNextString = "cmd_selectLineNext"

Definition at line 99 of file nsGlobalWindowCommands.cpp.

const char* const sSelectLinePreviousString = "cmd_selectLinePrevious"

Definition at line 98 of file nsGlobalWindowCommands.cpp.

const char* const sSelectNoneString = "cmd_selectNone"

Definition at line 66 of file nsGlobalWindowCommands.cpp.

const char* const sSelectPageNextString = "cmd_selectPageNext"

Definition at line 102 of file nsGlobalWindowCommands.cpp.

const char* const sSelectPagePreviousString = "cmd_selectPagePrevious"

Definition at line 101 of file nsGlobalWindowCommands.cpp.

const char* const sSelectTopString = "cmd_selectTop"

Definition at line 104 of file nsGlobalWindowCommands.cpp.

const char* const sSelectWordNextString = "cmd_selectWordNext"

Definition at line 91 of file nsGlobalWindowCommands.cpp.

const char* const sSelectWordPreviousString = "cmd_selectWordPrevious"

Definition at line 90 of file nsGlobalWindowCommands.cpp.

const char* const sWordNextString = "cmd_wordNext"

Definition at line 89 of file nsGlobalWindowCommands.cpp.

const char* const sWordPreviousString = "cmd_wordPrevious"

Definition at line 88 of file nsGlobalWindowCommands.cpp.