Back to index

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

#include <nsIParserService.h>

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

List of all members.

Public Member Functions

virtual PRUint32 DecodeEntity (const PRUnichar *aStart, const PRUnichar *aEnd, const PRUnichar **aNext, PRUnichar *aResult)=0
 Decodes an entity into a UTF-16 character.
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 172 of file nsIParserService.h.


Member Function Documentation

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

Implemented in nsParserService.

Here is the caller graph for this function:

virtual PRUint32 nsIParserService_MOZILLA_1_8_BRANCH::DecodeEntity ( const PRUnichar aStart,
const PRUnichar aEnd,
const PRUnichar **  aNext,
PRUnichar aResult 
) [pure virtual]

Decodes an entity into a UTF-16 character.

If a ; is found between aStart and aEnd it will try to decode the entity and set aNext to point to the character after the ;. The resulting UTF-16 character will be written in aResult, so if the entity is a valid numeric entity there needs to be space for at least two PRUnichars.

Parameters:
aStartpointer to the character after the ampersand.
aEndpointer to the position after the last character of the string.
aNext[out] will be set to the character after the ; or null if the decoding was unsuccessful.
aResultthe buffer to write the resulting UTF-16 character in.
Returns:
the number of PRUnichars written to aResult.

Implemented in nsParserService.

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

Implemented in nsParserService.

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

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, inherited]

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, inherited]

Implemented in nsParserService.

Here is the caller graph for this function:

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

Implemented in nsParserService.

Here is the caller graph for this function:

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

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, inherited]

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, inherited]

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, inherited]

Implemented in nsParserService.

Here is the caller graph for this function:

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

Implemented in nsParserService.

Here is the caller graph for this function:

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

Implemented in nsParserService.

Here is the caller graph for this function:

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

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, inherited]

Implemented in nsParserService.

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

Implemented in nsParserService.


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