Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsComposeTxtSrvFilter Class Reference

This class implements a filter interface, that enables those using it to skip over certain nodes when traversing content. More...

#include <nsComposeTxtSrvFilter.h>

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

List of all members.

Public Member Functions

 nsComposeTxtSrvFilter ()
virtual ~nsComposeTxtSrvFilter ()
NS_DECL_ISUPPORTS
NS_DECL_NSITEXTSERVICESFILTER
void 
Init (PRBool aIsForMail)
boolean skip (in nsIDOMNode aNode)
 Indicates whether the content node should be skipped by the iterator.

Protected Attributes

PRBool mIsForMail
nsCOMPtr< nsIAtommBlockQuoteAtom
nsCOMPtr< nsIAtommPreAtom
nsCOMPtr< nsIAtommSpanAtom
nsCOMPtr< nsIAtommMozQuoteAtom
nsCOMPtr< nsIAtommTableAtom
nsCOMPtr< nsIAtommClassAtom
nsCOMPtr< nsIAtommTypeAtom
nsCOMPtr< nsIAtommScriptAtom
nsCOMPtr< nsIAtommTextAreaAtom
nsCOMPtr< nsIAtommSelectAreaAtom
nsCOMPtr< nsIAtommMapAtom

Detailed Description

This class implements a filter interface, that enables those using it to skip over certain nodes when traversing content.

This filter is used to skip over various form control nodes and mail's cite nodes

Definition at line 51 of file nsComposeTxtSrvFilter.h.


Constructor & Destructor Documentation

Definition at line 44 of file nsComposeTxtSrvFilter.cpp.

                                             :
  mIsForMail(PR_FALSE)
{

  mBlockQuoteAtom  = do_GetAtom("blockquote");
  mPreAtom         = do_GetAtom("pre");
  mSpanAtom        = do_GetAtom("span");
  mTableAtom       = do_GetAtom("table");
  mMozQuoteAtom    = do_GetAtom("_moz_quote");
  mClassAtom       = do_GetAtom("class");
  mTypeAtom        = do_GetAtom("type");
  mScriptAtom      = do_GetAtom("script");
  mTextAreaAtom    = do_GetAtom("textarea");
  mSelectAreaAtom  = do_GetAtom("select");
  mMapAtom         = do_GetAtom("map");
}

Here is the call graph for this function:

virtual nsComposeTxtSrvFilter::~nsComposeTxtSrvFilter ( ) [inline, virtual]

Definition at line 55 of file nsComposeTxtSrvFilter.h.

{};

Member Function Documentation

NS_DECL_ISUPPORTS NS_DECL_NSITEXTSERVICESFILTER void nsComposeTxtSrvFilter::Init ( PRBool  aIsForMail) [inline]

Definition at line 64 of file nsComposeTxtSrvFilter.h.

{ mIsForMail = aIsForMail; }

Here is the caller graph for this function:

Indicates whether the content node should be skipped by the iterator.

Parameters:
aNode- node to skip

Member Data Documentation

Definition at line 68 of file nsComposeTxtSrvFilter.h.

Definition at line 73 of file nsComposeTxtSrvFilter.h.

Definition at line 67 of file nsComposeTxtSrvFilter.h.

Definition at line 78 of file nsComposeTxtSrvFilter.h.

Definition at line 71 of file nsComposeTxtSrvFilter.h.

Definition at line 69 of file nsComposeTxtSrvFilter.h.

Definition at line 75 of file nsComposeTxtSrvFilter.h.

Definition at line 77 of file nsComposeTxtSrvFilter.h.

Definition at line 70 of file nsComposeTxtSrvFilter.h.

Definition at line 72 of file nsComposeTxtSrvFilter.h.

Definition at line 76 of file nsComposeTxtSrvFilter.h.

Definition at line 74 of file nsComposeTxtSrvFilter.h.


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