Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Static Public Member Functions | Public Attributes | Static Private Attributes
nsAutoCopyListener Class Reference

#include <nsAutoCopyListener.h>

Inheritance diagram for nsAutoCopyListener:
Inheritance graph
[legend]
Collaboration diagram for nsAutoCopyListener:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSISELECTIONLISTENER
void 
Listen (nsISelectionPrivate *aSelection)
void notifySelectionChanged (in nsIDOMDocument doc, in nsISelection sel, in short reason)

Static Public Member Functions

static nsAutoCopyListenerGetInstance ()
static void Shutdown ()

Public Attributes

const short NO_REASON = 0
const short DRAG_REASON = 1
const short MOUSEDOWN_REASON = 2
const short MOUSEUP_REASON = 4
const short KEYPRESS_REASON = 8
const short SELECTALL_REASON = 16

Static Private Attributes

static nsAutoCopyListenersInstance = nsnull

Detailed Description

Definition at line 44 of file nsAutoCopyListener.h.


Member Function Documentation

Definition at line 56 of file nsAutoCopyListener.h.

  {
    if (!sInstance) {
      sInstance = new nsAutoCopyListener();
      if (!sInstance)
        return nsnull;

      NS_ADDREF(sInstance);
    }

    return sInstance;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

NS_DECL_ISUPPORTS NS_DECL_NSISELECTIONLISTENER void nsAutoCopyListener::Listen ( nsISelectionPrivate aSelection) [inline]

Definition at line 50 of file nsAutoCopyListener.h.

  {
      NS_ASSERTION(aSelection, "Null selection passed to Listen()");
      aSelection->AddSelectionListener(this);
  }

Here is the caller graph for this function:

void nsISelectionListener::notifySelectionChanged ( in nsIDOMDocument  doc,
in nsISelection  sel,
in short  reason 
) [inherited]
static void nsAutoCopyListener::Shutdown ( ) [inline, static]

Definition at line 69 of file nsAutoCopyListener.h.


Member Data Documentation

Definition at line 47 of file nsISelectionListener.idl.

Definition at line 50 of file nsISelectionListener.idl.

Definition at line 48 of file nsISelectionListener.idl.

Definition at line 49 of file nsISelectionListener.idl.

const short nsISelectionListener::NO_REASON = 0 [inherited]

Definition at line 46 of file nsISelectionListener.idl.

Definition at line 51 of file nsISelectionListener.idl.

Definition at line 75 of file nsAutoCopyListener.h.


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