Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMCSSStyleRule.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMCSSStyleRule_h__
6 : #define __gen_nsIDOMCSSStyleRule_h__
7 :
8 :
9 : #ifndef __gen_nsISupports_h__
10 : #include "nsISupports.h"
11 : #endif
12 :
13 : /* For IDL files that don't want to include root IDL files. */
14 : #ifndef NS_NO_VTABLE
15 : #define NS_NO_VTABLE
16 : #endif
17 : class nsIDOMCSSStyleDeclaration; /* forward declaration */
18 :
19 :
20 : /* starting interface: nsIDOMCSSStyleRule */
21 : #define NS_IDOMCSSSTYLERULE_IID_STR "b5e9af48-a7c2-4f88-aae3-58307af4b5a5"
22 :
23 : #define NS_IDOMCSSSTYLERULE_IID \
24 : {0xb5e9af48, 0xa7c2, 0x4f88, \
25 : { 0xaa, 0xe3, 0x58, 0x30, 0x7a, 0xf4, 0xb5, 0xa5 }}
26 :
27 2933 : class NS_NO_VTABLE nsIDOMCSSStyleRule : public nsISupports {
28 : public:
29 :
30 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMCSSSTYLERULE_IID)
31 :
32 : /* attribute DOMString selectorText; */
33 : NS_IMETHOD GetSelectorText(nsAString & aSelectorText) = 0;
34 : NS_IMETHOD SetSelectorText(const nsAString & aSelectorText) = 0;
35 :
36 : /* readonly attribute nsIDOMCSSStyleDeclaration style; */
37 : NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) = 0;
38 :
39 : };
40 :
41 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMCSSStyleRule, NS_IDOMCSSSTYLERULE_IID)
42 :
43 : /* Use this macro when declaring classes that implement this interface. */
44 : #define NS_DECL_NSIDOMCSSSTYLERULE \
45 : NS_IMETHOD GetSelectorText(nsAString & aSelectorText) override; \
46 : NS_IMETHOD SetSelectorText(const nsAString & aSelectorText) override; \
47 : NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) override;
48 :
49 : /* Use this macro when declaring the members of this interface when the
50 : class doesn't implement the interface. This is useful for forwarding. */
51 : #define NS_DECL_NON_VIRTUAL_NSIDOMCSSSTYLERULE \
52 : nsresult GetSelectorText(nsAString & aSelectorText); \
53 : nsresult SetSelectorText(const nsAString & aSelectorText); \
54 : nsresult GetStyle(nsIDOMCSSStyleDeclaration * *aStyle);
55 :
56 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
57 : #define NS_FORWARD_NSIDOMCSSSTYLERULE(_to) \
58 : NS_IMETHOD GetSelectorText(nsAString & aSelectorText) override { return _to GetSelectorText(aSelectorText); } \
59 : NS_IMETHOD SetSelectorText(const nsAString & aSelectorText) override { return _to SetSelectorText(aSelectorText); } \
60 : NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) override { return _to GetStyle(aStyle); }
61 :
62 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
63 : #define NS_FORWARD_SAFE_NSIDOMCSSSTYLERULE(_to) \
64 : NS_IMETHOD GetSelectorText(nsAString & aSelectorText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectorText(aSelectorText); } \
65 : NS_IMETHOD SetSelectorText(const nsAString & aSelectorText) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectorText(aSelectorText); } \
66 : NS_IMETHOD GetStyle(nsIDOMCSSStyleDeclaration * *aStyle) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyle(aStyle); }
67 :
68 : #if 0
69 : /* Use the code below as a template for the implementation class for this interface. */
70 :
71 : /* Header file */
72 : class nsDOMCSSStyleRule : public nsIDOMCSSStyleRule
73 : {
74 : public:
75 : NS_DECL_ISUPPORTS
76 : NS_DECL_NSIDOMCSSSTYLERULE
77 :
78 : nsDOMCSSStyleRule();
79 :
80 : private:
81 : ~nsDOMCSSStyleRule();
82 :
83 : protected:
84 : /* additional members */
85 : };
86 :
87 : /* Implementation file */
88 : NS_IMPL_ISUPPORTS(nsDOMCSSStyleRule, nsIDOMCSSStyleRule)
89 :
90 : nsDOMCSSStyleRule::nsDOMCSSStyleRule()
91 : {
92 : /* member initializers and constructor code */
93 : }
94 :
95 : nsDOMCSSStyleRule::~nsDOMCSSStyleRule()
96 : {
97 : /* destructor code */
98 : }
99 :
100 : /* attribute DOMString selectorText; */
101 : NS_IMETHODIMP nsDOMCSSStyleRule::GetSelectorText(nsAString & aSelectorText)
102 : {
103 : return NS_ERROR_NOT_IMPLEMENTED;
104 : }
105 : NS_IMETHODIMP nsDOMCSSStyleRule::SetSelectorText(const nsAString & aSelectorText)
106 : {
107 : return NS_ERROR_NOT_IMPLEMENTED;
108 : }
109 :
110 : /* readonly attribute nsIDOMCSSStyleDeclaration style; */
111 : NS_IMETHODIMP nsDOMCSSStyleRule::GetStyle(nsIDOMCSSStyleDeclaration * *aStyle)
112 : {
113 : return NS_ERROR_NOT_IMPLEMENTED;
114 : }
115 :
116 : /* End of implementation class template. */
117 : #endif
118 :
119 :
120 : #endif /* __gen_nsIDOMCSSStyleRule_h__ */
|