Back to index

lightning-sunbird  0.9+nobinonly
Classes | Functions
nsEditorEventListeners.h File Reference
#include "nsCOMPtr.h"
#include "nsIDOMEvent.h"
#include "nsIDOMKeyListener.h"
#include "nsIDOMMouseListener.h"
#include "nsIDOMTextListener.h"
#include "nsIDOMDragListener.h"
#include "nsIDOMCompositionListener.h"
#include "nsIDOMFocusListener.h"
#include "nsIEditor.h"
#include "nsIPlaintextEditor.h"
#include "nsICaret.h"
#include "nsIPresShell.h"
#include "nsWeakPtr.h"
#include "nsIWeakReferenceUtils.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsTextEditorKeyListener
 The nsTextEditorKeyListener public nsIDOMKeyListener This class will delegate events to its editor according to the translation it is responsible for. More...
class  nsTextEditorTextListener
 editor Implementation of the TextListener interface More...
class  nsTextEditorCompositionListener
class  nsTextEditorMouseListener
 editor Implementation of the MouseListener interface More...
class  nsTextEditorDragListener
 editor Implementation of the DragListener interface More...
class  nsTextEditorFocusListener
 editor Implementation of the FocusListener interface More...

Functions

nsresult NS_NewEditorKeyListener (nsIDOMEventListener **aInstancePtrResult, nsIEditor *aEditor)
 factory for the editor key listener
nsresult NS_NewEditorMouseListener (nsIDOMEventListener **aInstancePtrResult, nsIEditor *aEditor)
 factory for the editor mouse listener
nsresult NS_NewEditorTextListener (nsIDOMEventListener **aInstancePtrResult, nsIEditor *aEditor)
 factory for the editor text listener
nsresult NS_NewEditorDragListener (nsIDOMEventListener **aInstancePtrResult, nsIPresShell *aPresShell, nsIEditor *aEditor)
 factory for the editor drag listener
nsresult NS_NewEditorCompositionListener (nsIDOMEventListener **aInstancePtrResult, nsIEditor *aEditor)
 factory for the editor composition listener
nsresult NS_NewEditorFocusListener (nsIDOMEventListener **aInstancePtrResult, nsIEditor *aEditor)
 factory for the editor composition listener

Function Documentation

nsresult NS_NewEditorCompositionListener ( nsIDOMEventListener **  aInstancePtrResult,
nsIEditor aEditor 
)

factory for the editor composition listener

Definition at line 924 of file nsEditorEventListeners.cpp.

{
   nsTextEditorCompositionListener*   it = new nsTextEditorCompositionListener();
   if (nsnull==it) {
      return NS_ERROR_OUT_OF_MEMORY;
   }
   it->SetEditor(aEditor);
  return it->QueryInterface(NS_GET_IID(nsIDOMEventListener), (void **) aInstancePtrResult);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewEditorDragListener ( nsIDOMEventListener **  aInstancePtrResult,
nsIPresShell aPresShell,
nsIEditor aEditor 
)

factory for the editor drag listener

Definition at line 909 of file nsEditorEventListeners.cpp.

{
  nsTextEditorDragListener* it = new nsTextEditorDragListener();
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  it->SetEditor(aEditor);
  it->SetPresShell(aPresShell);

  return it->QueryInterface(NS_GET_IID(nsIDOMEventListener), (void **) aInstancePtrResult);   
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewEditorFocusListener ( nsIDOMEventListener **  aInstancePtrResult,
nsIEditor aEditor 
)

factory for the editor composition listener

Definition at line 935 of file nsEditorEventListeners.cpp.

{
  nsTextEditorFocusListener* it = new nsTextEditorFocusListener();
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  it->SetEditor(aEditor);
  return it->QueryInterface(NS_GET_IID(nsIDOMEventListener), (void **) aInstancePtrResult);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewEditorKeyListener ( nsIDOMEventListener **  aInstancePtrResult,
nsIEditor aEditor 
)

factory for the editor key listener

Definition at line 863 of file nsEditorEventListeners.cpp.

{
  nsTextEditorKeyListener* it = new nsTextEditorKeyListener();
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  it->SetEditor(aEditor);

  return it->QueryInterface(NS_GET_IID(nsIDOMEventListener), (void **) aInstancePtrResult);   
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewEditorMouseListener ( nsIDOMEventListener **  aInstancePtrResult,
nsIEditor aEditor 
)

factory for the editor mouse listener

Definition at line 879 of file nsEditorEventListeners.cpp.

{
  nsTextEditorMouseListener* it = new nsTextEditorMouseListener();
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  it->SetEditor(aEditor);

  return it->QueryInterface(NS_GET_IID(nsIDOMEventListener), (void **) aInstancePtrResult);   
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewEditorTextListener ( nsIDOMEventListener **  aInstancePtrResult,
nsIEditor aEditor 
)

factory for the editor text listener

Definition at line 894 of file nsEditorEventListeners.cpp.

{
   nsTextEditorTextListener*   it = new nsTextEditorTextListener();
   if (nsnull==it) {
      return NS_ERROR_OUT_OF_MEMORY;
   }

   it->SetEditor(aEditor);

   return it->QueryInterface(NS_GET_IID(nsIDOMEventListener), (void **) aInstancePtrResult);
}

Here is the call graph for this function:

Here is the caller graph for this function: