~mc.../inkscape/inkscape

« back to all changes in this revision

Viewing changes to src/dom/stylesheets.idl

  • Committer: mental
  • Date: 2006-01-16 02:36:01 UTC
  • Revision ID: mental@users.sourceforge.net-20060116023601-wkr0h7edl5veyudq
moving trunk for module inkscape

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright (c) 2000 World Wide Web Consortium,
 
3
 * (Massachusetts Institute of Technology, Institut National de
 
4
 * Recherche en Informatique et en Automatique, Keio University). All
 
5
 * Rights Reserved. This program is distributed under the W3C's Software
 
6
 * Intellectual Property License. This program is distributed in the
 
7
 * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
 
8
 * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
 
9
 * PURPOSE.
 
10
 * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
 
11
 */
 
12
 
 
13
// File: http://www.w3.org/TR/2000/REC-DOM-Level-2-Style-20001113/stylesheets.idl
 
14
 
 
15
#ifndef _STYLESHEETS_IDL_
 
16
#define _STYLESHEETS_IDL_
 
17
 
 
18
#include "dom.idl"
 
19
 
 
20
#pragma prefix "dom.w3c.org"
 
21
module stylesheets
 
22
{
 
23
 
 
24
  typedef dom::DOMString DOMString;
 
25
  typedef dom::Node Node;
 
26
 
 
27
  interface MediaList;
 
28
 
 
29
  // Introduced in DOM Level 2:
 
30
  interface StyleSheet {
 
31
    readonly attribute DOMString        type;
 
32
             attribute boolean          disabled;
 
33
    readonly attribute Node             ownerNode;
 
34
    readonly attribute StyleSheet       parentStyleSheet;
 
35
    readonly attribute DOMString        href;
 
36
    readonly attribute DOMString        title;
 
37
    readonly attribute MediaList        media;
 
38
  };
 
39
 
 
40
  // Introduced in DOM Level 2:
 
41
  interface StyleSheetList {
 
42
    readonly attribute unsigned long    length;
 
43
    StyleSheet         item(in unsigned long index);
 
44
  };
 
45
 
 
46
  // Introduced in DOM Level 2:
 
47
  interface MediaList {
 
48
             attribute DOMString        mediaText;
 
49
                                        // raises(dom::DOMException) on setting
 
50
 
 
51
    readonly attribute unsigned long    length;
 
52
    DOMString          item(in unsigned long index);
 
53
    void               deleteMedium(in DOMString oldMedium)
 
54
                                        raises(dom::DOMException);
 
55
    void               appendMedium(in DOMString newMedium)
 
56
                                        raises(dom::DOMException);
 
57
  };
 
58
 
 
59
  // Introduced in DOM Level 2:
 
60
  interface LinkStyle {
 
61
    readonly attribute StyleSheet       sheet;
 
62
  };
 
63
 
 
64
  // Introduced in DOM Level 2:
 
65
  interface DocumentStyle {
 
66
    readonly attribute StyleSheetList   styleSheets;
 
67
  };
 
68
};
 
69
 
 
70
#endif // _STYLESHEETS_IDL_
 
71