nsIEditorStyleSheets
| IID: | 4805e682-49b9-11d3-9ce4-ed60bd6cb5bc |
| Inherits From: | nsISupports |
This interface is implemented by the following components:
Methods
void addOverrideStyleSheet ( AString URL )
void addStyleSheet ( AString URL )
void enableStyleSheet ( AString URL , PRBool enable )
[noscript] nsICSSStyleSheet getStyleSheetForURL ( AString URL )
[noscript] AString getURLForStyleSheet ( nsICSSStyleSheet styleSheet )
void removeOverrideStyleSheet ( AString URL )
void removeStyleSheet ( AString URL )
void replaceOverrideStyleSheet ( AString URL )
void replaceStyleSheet ( AString URL )
void addOverrideStyleSheet ( AString URL )
Load and apply an Override style sheet, specified by uRL, to the editor's document, on top of any that are already there. IMPORTANT: This is assumed to be synchronous: URL is a local file with no @import used This action is not undoable. It is not intended for use by "user", only editor developers to change display behavior for editing (like showing special cursors) that will not be affected by loading other "document" style sheets loaded using addStyleSheet or replaceStyleSheet.
- Arguments:
- URL: The style sheet to be loaded and applied.
void addStyleSheet ( AString URL )
Add the given Style Sheet to the editor's document, on top of any that are already there. This is always synchronous.
- Arguments:
- URL: The style sheet to be applied.
void enableStyleSheet ( AString URL , PRBool enable )
Enable or disable the given Style Sheet from the editor's document This is always synchronous
- Arguments:
- URL: The style sheet to be removed
- enable
nsICSSStyleSheet getStyleSheetForURL ( AString URL )
Get the nsICSSStyleSheet associated with the given URL.
- Arguments:
- URL: The style sheet's URL
- Returns:
- the style sheet
AString getURLForStyleSheet ( nsICSSStyleSheet styleSheet )
Get the URL associated with the given nsICSSStyleSheet.
- Arguments:
- styleSheet: The style sheet
- Returns:
- the style sheet's URL
void removeOverrideStyleSheet ( AString URL )
Remove the given Override Style Sheet from the editor's document This is always synchronous
- Arguments:
- URL: The style sheet to be removed.
void removeStyleSheet ( AString URL )
Remove the given Style Sheet from the editor's document This is always synchronous
- Arguments:
- URL: The style sheet to be removed
void replaceOverrideStyleSheet ( AString URL )
Load and apply the style sheet, specified by uRL, to the editor's document, replacing the last style sheet added (if any). This is always synchronous.
- Arguments:
- URL: The style sheet to be loaded and applied.
void replaceStyleSheet ( AString URL )
Load and apply the style sheet, specified by uRL, to the editor's document, replacing the last style sheet added (if any). This can involve asynchronous network I/O.
- Arguments:
- URL: The style sheet to be loaded and applied.
Reference documentation is generated from Mozilla's source.
