diff options
Diffstat (limited to 'src/dom/stylesheets.idl')
| -rwxr-xr-x | src/dom/stylesheets.idl | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/src/dom/stylesheets.idl b/src/dom/stylesheets.idl new file mode 100755 index 000000000..1bc307370 --- /dev/null +++ b/src/dom/stylesheets.idl @@ -0,0 +1,71 @@ +/* + * Copyright (c) 2000 World Wide Web Consortium, + * (Massachusetts Institute of Technology, Institut National de + * Recherche en Informatique et en Automatique, Keio University). All + * Rights Reserved. This program is distributed under the W3C's Software + * Intellectual Property License. This program is distributed in the + * hope that it will be useful, but WITHOUT ANY WARRANTY; without even + * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + * PURPOSE. + * See W3C License http://www.w3.org/Consortium/Legal/ for more details. + */ + +// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.idl + +#ifndef _STYLESHEETS_IDL_ +#define _STYLESHEETS_IDL_ + +#include "dom.idl" + +#pragma prefix "dom.w3c.org" +module stylesheets +{ + + typedef dom::DOMString DOMString; + typedef dom::Node Node; + + interface MediaList; + + // Introduced in DOM Level 2: + interface StyleSheet { + readonly attribute DOMString type; + attribute boolean disabled; + readonly attribute Node ownerNode; + readonly attribute StyleSheet parentStyleSheet; + readonly attribute DOMString href; + readonly attribute DOMString title; + readonly attribute MediaList media; + }; + + // Introduced in DOM Level 2: + interface StyleSheetList { + readonly attribute unsigned long length; + StyleSheet item(in unsigned long index); + }; + + // Introduced in DOM Level 2: + interface MediaList { + attribute DOMString mediaText; + // raises(dom::DOMException) on setting + + readonly attribute unsigned long length; + DOMString item(in unsigned long index); + void deleteMedium(in DOMString oldMedium) + raises(dom::DOMException); + void appendMedium(in DOMString newMedium) + raises(dom::DOMException); + }; + + // Introduced in DOM Level 2: + interface LinkStyle { + readonly attribute StyleSheet sheet; + }; + + // Introduced in DOM Level 2: + interface DocumentStyle { + readonly attribute StyleSheetList styleSheets; + }; +}; + +#endif // _STYLESHEETS_IDL_ + |
