Source code

Revision control

Other Tools

1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* This Source Code Form is subject to the terms of the Mozilla Public
3
* License, v. 2.0. If a copy of the MPL was not distributed with this
4
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5
6
#include "nsISupports.idl"
7
8
[scriptable, builtinclass, uuid(4805e682-49b9-11d3-9ce4-ed60bd6cb5bc)]
9
interface nsIEditorStyleSheets : nsISupports
10
{
11
/** Load and apply an override style sheet, specified by aURL, to
12
* the editor's document, on top of any that are already there.
13
* This is always synchronous, so aURL should be a local file with only
14
* local @imports. This action is not undoable. It is not intended for
15
* "user" style sheets, only for editor developers to add sheets to change
16
* display behavior for editing (like showing special cursors) that will
17
* not be affected by loading "document" style sheets with addStyleSheet or
18
* especially replaceStyleSheet.
19
*
20
* @param aURL The style sheet to be loaded and applied.
21
*/
22
void addOverrideStyleSheet(in AString aURL);
23
24
/** Remove the given override style sheet from the editor's document
25
* This is always synchronous
26
*
27
* @param aURL The style sheet to be removed.
28
*/
29
void removeOverrideStyleSheet(in AString aURL);
30
31
/** Enable or disable the given style sheet from the editor's document
32
* This is always synchronous
33
*
34
* @param aURL The style sheet to be enabled or disabled
35
* @param aEnable true to enable, or false to disable the style sheet
36
*/
37
void enableStyleSheet(in AString aURL, in boolean aEnable);
38
};