Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsTextEditRules.cpp File Reference
#include "nsTextEditRules.h"
#include "nsEditor.h"
#include "nsTextEditUtils.h"
#include "nsCRT.h"
#include "nsCOMPtr.h"
#include "nsIServiceManager.h"
#include "nsIDOMNode.h"
#include "nsIDOMElement.h"
#include "nsIDOMText.h"
#include "nsIDOMNodeList.h"
#include "nsISelection.h"
#include "nsISelectionPrivate.h"
#include "nsISelectionController.h"
#include "nsIDOMRange.h"
#include "nsIDOMNSRange.h"
#include "nsIDOMCharacterData.h"
#include "nsIContent.h"
#include "nsIContentIterator.h"
#include "nsEditorUtils.h"
#include "EditTxn.h"
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
#include "nsUnicharUtils.h"
#include "nsIWordBreakerFactory.h"
#include "nsLWBrkCIID.h"
#include "DeleteTextTxn.h"
#include "nsAutoPtr.h"
#include "nsIPresShell.h"

Go to the source code of this file.

Defines

#define CANCEL_OPERATION_IF_READONLY_OR_DISABLED

Functions

nsresult NS_NewTextEditRules (nsIEditRules **aInstancePtrResult)

Define Documentation

Value:
if ((mFlags & nsIPlaintextEditor::eEditorReadonlyMask) || (mFlags & nsIPlaintextEditor::eEditorDisabledMask)) \
  {                     \
    *aCancel = PR_TRUE; \
    return NS_OK;       \
  };

Definition at line 71 of file nsTextEditRules.cpp.


Function Documentation

nsresult NS_NewTextEditRules ( nsIEditRules **  aInstancePtrResult)

Definition at line 80 of file nsTextEditRules.cpp.

{
  nsTextEditRules * rules = new nsTextEditRules();
  if (rules)
    return rules->QueryInterface(NS_GET_IID(nsIEditRules), (void**) aInstancePtrResult);
  return NS_ERROR_OUT_OF_MEMORY;
}

Here is the caller graph for this function: