import "nsIEditorStyleSheets.idl";
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 override style sheet, specified by aURL, to the editor's document, replacing the last override 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.
|
Member Function Documentation
void nsIEditorStyleSheets::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.
This is always synchronous, so the same caveats about local files and no non-local as replaceOverrideStyleSheet apply here, too.
- Parameters:
-
| aURL | The style sheet to be loaded and applied. |
void nsIEditorStyleSheets::addStyleSheet |
( |
in AString |
aURL |
) |
|
Add the given style sheet to the editor's document, on top of any that are already there.
This is always asynchronous, and may cause network I/O.
- Parameters:
-
| aURL | The style sheet to be loaded and 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:
-
| aURL | The style sheet to be enabled or disabled |
| aEnable | true to enable, or false to disable the style sheet |
nsICSSStyleSheet nsIEditorStyleSheets::getStyleSheetForURL |
( |
in AString |
aURL |
) |
|
Get the nsICSSStyleSheet associated with the given URL.
- Parameters:
-
| aURL | The style sheet's URL |
- Returns:
- the style sheet
AString nsIEditorStyleSheets::getURLForStyleSheet |
( |
in nsICSSStyleSheet |
aStyleSheet |
) |
|
Get the URL associated with the given nsICSSStyleSheet.
- Parameters:
-
| aStyleSheet | The style sheet |
- Returns:
- the style sheet's URL
void nsIEditorStyleSheets::removeOverrideStyleSheet |
( |
in AString |
aURL |
) |
|
Remove the given override style sheet from the editor's document This is always synchronous.
- Parameters:
-
| aURL | The style sheet to be removed. |
void nsIEditorStyleSheets::removeStyleSheet |
( |
in AString |
aURL |
) |
|
Remove the given style sheet from the editor's document This is always synchronous.
- Parameters:
-
| aURL | The style sheet to be removed |
void nsIEditorStyleSheets::replaceOverrideStyleSheet |
( |
in AString |
aURL |
) |
|
Load and apply the override style sheet, specified by aURL, to the editor's document, replacing the last override style sheet added (if any).
This is always synchronous, so aURL should be a local file with only local . This action is not undoable. It is not intended for "user" style sheets, only for editor developers to add sheets to change display behavior for editing (like showing special cursors) that will not be affected by loading "document" style sheets with addStyleSheet or especially replaceStyleSheet.
- Parameters:
-
| aURL | The style sheet to be loaded and applied. |
void nsIEditorStyleSheets::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).
This is always asynchronous, and may cause network I/O.
- Parameters:
-
| aURL | The style sheet to be loaded and applied. |
The documentation for this interface was generated from the following file: