Back to index

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

#include <nsIStyleSheetLinkingElement.h>

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

List of all members.

Public Member Functions

NS_IMETHOD SetStyleSheet (nsIStyleSheet *aStyleSheet)=0
 Used to make the association between a style sheet and the element that linked it to the document.
NS_IMETHOD GetStyleSheet (nsIStyleSheet *&aStyleSheet)=0
 Used to obtain the style sheet linked in by this element.
NS_IMETHOD InitStyleLinkElement (nsIParser *aParser, PRBool aDontLoadStyle)=0
 Initialize the stylesheet linking element.
NS_IMETHOD UpdateStyleSheet (nsIDocument *aOldDocument, nsICSSLoaderObserver *aObserver)=0
 Tells this element to update the stylesheet.
NS_IMETHOD SetEnableUpdates (PRBool aEnableUpdates)=0
 Tells this element wether to update the stylesheet when the element's properties change.
NS_IMETHOD GetCharset (nsAString &aCharset)=0
 Gets the charset that the element claims the style sheet is in.
virtual void SetLineNumber (PRUint32 aLineNumber)=0

Detailed Description

Definition at line 53 of file nsIStyleSheetLinkingElement.h.


Member Function Documentation

NS_IMETHOD nsIStyleSheetLinkingElement::GetCharset ( nsAString &  aCharset) [pure virtual]

Gets the charset that the element claims the style sheet is in.

Parameters:
aCharsetthe charset

Implemented in nsXMLStylesheetPI, and nsStyleLinkElement.

Used to obtain the style sheet linked in by this element.

Parameters:
aStyleSheetout parameter that returns the style sheet associated with this element.

Implemented in nsStyleLinkElement.

NS_IMETHOD nsIStyleSheetLinkingElement::InitStyleLinkElement ( nsIParser aParser,
PRBool  aDontLoadStyle 
) [pure virtual]

Initialize the stylesheet linking element.

This method passes in a parser that the element blocks if the stylesheet is a stylesheet that should be loaded with the parser blocked. If aDontLoadStyle is true the element will ignore the first modification to the element that would cause a stylesheet to be loaded. Subsequent modifications to the element will not be ignored.

Implemented in nsStyleLinkElement.

Tells this element wether to update the stylesheet when the element's properties change.

Parameters:
aEnableUpdatesupdate on changes or not.

Implemented in nsStyleLinkElement.

virtual void nsIStyleSheetLinkingElement::SetLineNumber ( PRUint32  aLineNumber) [pure virtual]

Implemented in nsStyleLinkElement.

Used to make the association between a style sheet and the element that linked it to the document.

Parameters:
aStyleSheetthe style sheet associated with this element.

Implemented in nsStyleLinkElement.

NS_IMETHOD nsIStyleSheetLinkingElement::UpdateStyleSheet ( nsIDocument aOldDocument,
nsICSSLoaderObserver aObserver 
) [pure virtual]

Tells this element to update the stylesheet.

Parameters:
aOldDocumentthe document that this element was part of (nsnull if we're not moving the element from one document to another).
aObserverobserver to notify once the stylesheet is loaded. It might be notified before the function returns.

Implemented in nsStyleLinkElement.


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