Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions
nsIEditorStyleSheets Interface Reference

import "nsIEditorStyleSheets.idl";

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

List of all members.

Public Member Functions

void replaceStyleSheet (in AString aURL)
 load and apply the style sheet, specified by aURL, to the editor's document, replacing the last style sheet added (if any).
void addStyleSheet (in AString aURL)
 Add the given Style Sheet to the editor's document, on top of any that are already there.
void replaceOverrideStyleSheet (in AString aURL)
 load and apply the style sheet, specified by aURL, to the editor's document, replacing the last style sheet added (if any).
void addOverrideStyleSheet (in AString aURL)
 load and apply an Override style sheet, specified by aURL, to the editor's document, on top of any that are already there.
void removeStyleSheet (in AString aURL)
 Remove the given Style Sheet from the editor's document This is always synchronous.
void removeOverrideStyleSheet (in AString aURL)
 Remove the given Override Style Sheet from the editor's document This is always synchronous.
void enableStyleSheet (in AString aURL, in PRBool aEnable)
 Enable or disable the given Style Sheet from the editor's document This is always synchronous.
nsICSSStyleSheet getStyleSheetForURL (in AString aURL)
 Get the nsICSSStyleSheet associated with the given URL.
AString getURLForStyleSheet (in nsICSSStyleSheet aStyleSheet)
 Get the URL associated with the given nsICSSStyleSheet.

Detailed Description

Definition at line 49 of file nsIEditorStyleSheets.idl.


Member Function Documentation

load and apply an Override style sheet, specified by aURL, 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 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.

Parameters:
aURLThe style sheet to be loaded and applied.

Add the given Style Sheet to the editor's document, on top of any that are already there.

This is always synchronous.

Parameters:
aURLThe style sheet to be applied.
void nsIEditorStyleSheets::enableStyleSheet ( in AString  aURL,
in PRBool  aEnable 
)

Enable or disable the given Style Sheet from the editor's document This is always synchronous.

Parameters:
aURLThe style sheet to be removed

Get the nsICSSStyleSheet associated with the given URL.

Parameters:
aURLThe style sheet's URL
Returns:
the style sheet

Get the URL associated with the given nsICSSStyleSheet.

Parameters:
aStyleSheetThe style sheet
Returns:
the style sheet's URL

Remove the given Override Style Sheet from the editor's document This is always synchronous.

Parameters:
aURLThe style sheet to be removed.

Remove the given Style Sheet from the editor's document This is always synchronous.

Parameters:
aURLThe style sheet to be removed

load and apply the style sheet, specified by aURL, to the editor's document, replacing the last style sheet added (if any).

This is always synchronous.

Parameters:
aURLThe style sheet to be loaded and applied.

load and apply the style sheet, specified by aURL, to the editor's document, replacing the last style sheet added (if any).

This can involve asynchronous network I/O.

Parameters:
aURLThe style sheet to be loaded and applied.

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