Back to index

lightning-sunbird  0.9+nobinonly
Classes | Enumerations | Functions
nsHTMLEditRules.cpp File Reference
#include "nsHTMLEditRules.h"
#include "nsEditor.h"
#include "nsTextEditUtils.h"
#include "nsHTMLEditUtils.h"
#include "nsHTMLCSSUtils.h"
#include "nsHTMLEditor.h"
#include "nsIServiceManager.h"
#include "nsCRT.h"
#include "nsIContent.h"
#include "nsIContentIterator.h"
#include "nsIDOMNode.h"
#include "nsIDOMText.h"
#include "nsIDOMElement.h"
#include "nsIDOMNodeList.h"
#include "nsISelection.h"
#include "nsISelectionPrivate.h"
#include "nsISelectionController.h"
#include "nsIDOMRange.h"
#include "nsIDOMNSRange.h"
#include "nsIRangeUtils.h"
#include "nsIDOMCharacterData.h"
#include "nsIEnumerator.h"
#include "nsIPresShell.h"
#include "nsIPrefBranch.h"
#include "nsIPrefService.h"
#include "nsIDOMNamedNodeMap.h"
#include "nsEditorUtils.h"
#include "nsWSRunObject.h"
#include "InsertTextTxn.h"
#include "DeleteTextTxn.h"
#include "nsReadableUtils.h"
#include "nsUnicharUtils.h"

Go to the source code of this file.

Classes

class  nsTableCellAndListItemFunctor
class  nsBRNodeFunctor
class  nsEmptyFunctor
class  nsEditableTextFunctor
class  nsUniqueFunctor

Enumerations

enum  { kLonely = 0, kPrevSib = 1, kNextSib = 2, kBothSibs = 3 }

Functions

static PRBool IsBlockNode (nsIDOMNode *node)
static PRBool IsInlineNode (nsIDOMNode *node)
nsresult NS_NewHTMLEditRules (nsIEditRules **aInstancePtrResult)
nsIAtomMarginPropertyAtomForIndent (nsHTMLCSSUtils *aHTMLCSSUtils, nsIDOMNode *aNode)

Enumeration Type Documentation

anonymous enum
Enumerator:
kLonely 
kPrevSib 
kNextSib 
kBothSibs 

Definition at line 87 of file nsHTMLEditRules.cpp.

{
  kLonely = 0,
  kPrevSib = 1,
  kNextSib = 2,
  kBothSibs = 3
};

Function Documentation

static PRBool IsBlockNode ( nsIDOMNode node) [static]

Definition at line 99 of file nsHTMLEditRules.cpp.

{
  PRBool isBlock (PR_FALSE);
  nsHTMLEditor::NodeIsBlockStatic(node, &isBlock);
  return isBlock;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static PRBool IsInlineNode ( nsIDOMNode node) [static]

Definition at line 106 of file nsHTMLEditRules.cpp.

{
  return !IsBlockNode(node);
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsIAtom* MarginPropertyAtomForIndent ( nsHTMLCSSUtils aHTMLCSSUtils,
nsIDOMNode aNode 
)

Definition at line 933 of file nsHTMLEditRules.cpp.

                                                                                       {
  nsAutoString direction;
  aHTMLCSSUtils->GetComputedProperty(aNode, nsEditProperty::cssDirection, direction);
  return direction.EqualsLiteral("rtl") ?
    nsEditProperty::cssMarginRight : nsEditProperty::cssMarginLeft;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewHTMLEditRules ( nsIEditRules **  aInstancePtrResult)

Definition at line 174 of file nsHTMLEditRules.cpp.

{
  nsHTMLEditRules * rules = new nsHTMLEditRules();
  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: