Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsEmptyFunctor Class Reference
Inheritance diagram for nsEmptyFunctor:
Inheritance graph
Collaboration diagram for nsEmptyFunctor:
Collaboration graph

List of all members.

Public Member Functions

 nsEmptyFunctor (nsHTMLEditor *editor)
virtual PRBool operator() (nsIDOMNode *aNode)

Protected Attributes


Detailed Description

Definition at line 132 of file nsHTMLEditRules.cpp.

Constructor & Destructor Documentation

Definition at line 135 of file nsHTMLEditRules.cpp.

: mHTMLEditor(editor) {}

Member Function Documentation

virtual PRBool nsEmptyFunctor::operator() ( nsIDOMNode aNode) [inline, virtual]

Implements nsBoolDomIterFunctor.

Definition at line 136 of file nsHTMLEditRules.cpp.

      if (nsHTMLEditUtils::IsListItem(aNode) || nsHTMLEditUtils::IsTableCellOrCaption(aNode))
        PRBool bIsEmptyNode;
        nsresult res = mHTMLEditor->IsEmptyNode(aNode, &bIsEmptyNode, PR_FALSE, PR_FALSE);
        if (NS_FAILED(res)) return PR_FALSE;
        if (bIsEmptyNode) 
          return PR_TRUE;
      return PR_FALSE;

Here is the call graph for this function:

Member Data Documentation

Definition at line 149 of file nsHTMLEditRules.cpp.

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