Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIParserService Class Reference

#include <nsIParserService.h>

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

List of all members.

Public Member Functions

virtual PRInt32 HTMLAtomTagToId (nsIAtom *aAtom) const =0
 Looks up the nsHTMLTag enum value corresponding to the tag in aAtom.
virtual PRInt32 HTMLCaseSensitiveAtomTagToId (nsIAtom *aAtom) const =0
 Looks up the nsHTMLTag enum value corresponding to the tag in aAtom.
virtual PRInt32 HTMLStringTagToId (const nsAString &aTag) const =0
 Looks up the nsHTMLTag enum value corresponding to the tag in aTag.
virtual const PRUnicharHTMLIdToStringTag (PRInt32 aId) const =0
 Gets the tag corresponding to the nsHTMLTag enum value in aId.
virtual nsIAtomHTMLIdToAtomTag (PRInt32 aId) const =0
 Gets the tag corresponding to the nsHTMLTag enum value in aId.
NS_IMETHOD HTMLConvertEntityToUnicode (const nsAString &aEntity, PRInt32 *aUnicode) const =0
NS_IMETHOD HTMLConvertUnicodeToEntity (PRInt32 aUnicode, nsCString &aEntity) const =0
NS_IMETHOD IsContainer (PRInt32 aId, PRBool &aIsContainer) const =0
NS_IMETHOD IsBlock (PRInt32 aId, PRBool &aIsBlock) const =0
NS_IMETHOD RegisterObserver (nsIElementObserver *aObserver, const nsAString &aTopic, const eHTMLTags *aTags=nsnull)=0
NS_IMETHOD UnregisterObserver (nsIElementObserver *aObserver, const nsAString &aTopic)=0
NS_IMETHOD GetTopicObservers (const nsAString &aTopic, nsIObserverEntry **aEntry)=0
virtual nsresult CheckQName (const nsASingleFragmentString &aQName, PRBool aNamespaceAware, const PRUnichar **aColon)=0
virtual PRBool IsXMLLetter (PRUnichar aChar)=0
virtual PRBool IsXMLNCNameChar (PRUnichar aChar)=0

Detailed Description

Definition at line 72 of file nsIParserService.h.


Member Function Documentation

virtual nsresult nsIParserService::CheckQName ( const nsASingleFragmentString aQName,
PRBool  aNamespaceAware,
const PRUnichar **  aColon 
) [pure virtual]

Implemented in nsParserService.

Here is the caller graph for this function:

NS_IMETHOD nsIParserService::GetTopicObservers ( const nsAString &  aTopic,
nsIObserverEntry **  aEntry 
) [pure virtual]

Implemented in nsParserService.

virtual PRInt32 nsIParserService::HTMLAtomTagToId ( nsIAtom aAtom) const [pure virtual]

Looks up the nsHTMLTag enum value corresponding to the tag in aAtom.

The lookup happens case insensitively.

Parameters:
aAtomThe tag to look up.
Returns:
PRInt32 The nsHTMLTag enum value corresponding to the tag in aAtom or eHTMLTag_userdefined if the tag does not correspond to any of the tag nsHTMLTag enum values.

Implemented in nsParserService.

Here is the caller graph for this function:

virtual PRInt32 nsIParserService::HTMLCaseSensitiveAtomTagToId ( nsIAtom aAtom) const [pure virtual]

Looks up the nsHTMLTag enum value corresponding to the tag in aAtom.

Parameters:
aAtomThe tag to look up.
Returns:
PRInt32 The nsHTMLTag enum value corresponding to the tag in aAtom or eHTMLTag_userdefined if the tag does not correspond to any of the tag nsHTMLTag enum values.

Implemented in nsParserService.

Here is the caller graph for this function:

NS_IMETHOD nsIParserService::HTMLConvertEntityToUnicode ( const nsAString &  aEntity,
PRInt32 aUnicode 
) const [pure virtual]

Implemented in nsParserService.

Here is the caller graph for this function:

NS_IMETHOD nsIParserService::HTMLConvertUnicodeToEntity ( PRInt32  aUnicode,
nsCString aEntity 
) const [pure virtual]

Implemented in nsParserService.

Here is the caller graph for this function:

virtual nsIAtom* nsIParserService::HTMLIdToAtomTag ( PRInt32  aId) const [pure virtual]

Gets the tag corresponding to the nsHTMLTag enum value in aId.

The returned tag will be in lowercase.

Parameters:
aIdThe nsHTMLTag enum value to get the tag for.
Returns:
nsIAtom* The tag corresponding to the nsHTMLTag enum value, or nsnull if the enum value doesn't correspond to a tag (eHTMLTag_unknown, eHTMLTag_userdefined, eHTMLTag_text, ...).

Implemented in nsParserService.

Here is the caller graph for this function:

virtual const PRUnichar* nsIParserService::HTMLIdToStringTag ( PRInt32  aId) const [pure virtual]

Gets the tag corresponding to the nsHTMLTag enum value in aId.

The returned tag will be in lowercase.

Parameters:
aIdThe nsHTMLTag enum value to get the tag for.
Returns:
const PRUnichar* The tag corresponding to the nsHTMLTag enum value, or nsnull if the enum value doesn't correspond to a tag (eHTMLTag_unknown, eHTMLTag_userdefined, eHTMLTag_text, ...).

Implemented in nsParserService.

Here is the caller graph for this function:

virtual PRInt32 nsIParserService::HTMLStringTagToId ( const nsAString &  aTag) const [pure virtual]

Looks up the nsHTMLTag enum value corresponding to the tag in aTag.

The lookup happens case insensitively.

Parameters:
aTagThe tag to look up.
Returns:
PRInt32 The nsHTMLTag enum value corresponding to the tag in aTag or eHTMLTag_userdefined if the tag does not correspond to any of the tag nsHTMLTag enum values.

Implemented in nsParserService.

Here is the caller graph for this function:

NS_IMETHOD nsIParserService::IsBlock ( PRInt32  aId,
PRBool aIsBlock 
) const [pure virtual]

Implemented in nsParserService.

Here is the caller graph for this function:

NS_IMETHOD nsIParserService::IsContainer ( PRInt32  aId,
PRBool aIsContainer 
) const [pure virtual]

Implemented in nsParserService.

Here is the caller graph for this function:

virtual PRBool nsIParserService::IsXMLLetter ( PRUnichar  aChar) [pure virtual]

Implemented in nsParserService.

Here is the caller graph for this function:

virtual PRBool nsIParserService::IsXMLNCNameChar ( PRUnichar  aChar) [pure virtual]

Implemented in nsParserService.

Here is the caller graph for this function:

NS_IMETHOD nsIParserService::RegisterObserver ( nsIElementObserver aObserver,
const nsAString &  aTopic,
const eHTMLTags aTags = nsnull 
) [pure virtual]

Implemented in nsParserService.

NS_IMETHOD nsIParserService::UnregisterObserver ( nsIElementObserver aObserver,
const nsAString &  aTopic 
) [pure virtual]

Implemented in nsParserService.


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