Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIDOMSerializer.idl
3 : */
4 :
5 : #ifndef __gen_nsIDOMSerializer_h__
6 : #define __gen_nsIDOMSerializer_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 nsIOutputStream; /* forward declaration */
18 :
19 : class nsIDOMNode; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIDOMSerializer */
23 : #define NS_IDOMSERIALIZER_IID_STR "9fd4ba15-e67c-4c98-b52c-7715f62c9196"
24 :
25 : #define NS_IDOMSERIALIZER_IID \
26 : {0x9fd4ba15, 0xe67c, 0x4c98, \
27 : { 0xb5, 0x2c, 0x77, 0x15, 0xf6, 0x2c, 0x91, 0x96 }}
28 :
29 0 : class NS_NO_VTABLE nsIDOMSerializer : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMSERIALIZER_IID)
33 :
34 : /* AString serializeToString (in nsIDOMNode root); */
35 : NS_IMETHOD SerializeToString(nsIDOMNode *root, nsAString & _retval) = 0;
36 :
37 : /* void serializeToStream (in nsIDOMNode root, in nsIOutputStream stream, in AUTF8String charset); */
38 : NS_IMETHOD SerializeToStream(nsIDOMNode *root, nsIOutputStream *stream, const nsACString & charset) = 0;
39 :
40 : };
41 :
42 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMSerializer, NS_IDOMSERIALIZER_IID)
43 :
44 : /* Use this macro when declaring classes that implement this interface. */
45 : #define NS_DECL_NSIDOMSERIALIZER \
46 : NS_IMETHOD SerializeToString(nsIDOMNode *root, nsAString & _retval) override; \
47 : NS_IMETHOD SerializeToStream(nsIDOMNode *root, nsIOutputStream *stream, const nsACString & charset) 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_NSIDOMSERIALIZER \
52 : nsresult SerializeToString(nsIDOMNode *root, nsAString & _retval); \
53 : nsresult SerializeToStream(nsIDOMNode *root, nsIOutputStream *stream, const nsACString & charset);
54 :
55 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
56 : #define NS_FORWARD_NSIDOMSERIALIZER(_to) \
57 : NS_IMETHOD SerializeToString(nsIDOMNode *root, nsAString & _retval) override { return _to SerializeToString(root, _retval); } \
58 : NS_IMETHOD SerializeToStream(nsIDOMNode *root, nsIOutputStream *stream, const nsACString & charset) override { return _to SerializeToStream(root, stream, charset); }
59 :
60 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
61 : #define NS_FORWARD_SAFE_NSIDOMSERIALIZER(_to) \
62 : NS_IMETHOD SerializeToString(nsIDOMNode *root, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SerializeToString(root, _retval); } \
63 : NS_IMETHOD SerializeToStream(nsIDOMNode *root, nsIOutputStream *stream, const nsACString & charset) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SerializeToStream(root, stream, charset); }
64 :
65 : #if 0
66 : /* Use the code below as a template for the implementation class for this interface. */
67 :
68 : /* Header file */
69 : class nsDOMSerializer : public nsIDOMSerializer
70 : {
71 : public:
72 : NS_DECL_ISUPPORTS
73 : NS_DECL_NSIDOMSERIALIZER
74 :
75 : nsDOMSerializer();
76 :
77 : private:
78 : ~nsDOMSerializer();
79 :
80 : protected:
81 : /* additional members */
82 : };
83 :
84 : /* Implementation file */
85 : NS_IMPL_ISUPPORTS(nsDOMSerializer, nsIDOMSerializer)
86 :
87 : nsDOMSerializer::nsDOMSerializer()
88 : {
89 : /* member initializers and constructor code */
90 : }
91 :
92 : nsDOMSerializer::~nsDOMSerializer()
93 : {
94 : /* destructor code */
95 : }
96 :
97 : /* AString serializeToString (in nsIDOMNode root); */
98 : NS_IMETHODIMP nsDOMSerializer::SerializeToString(nsIDOMNode *root, nsAString & _retval)
99 : {
100 : return NS_ERROR_NOT_IMPLEMENTED;
101 : }
102 :
103 : /* void serializeToStream (in nsIDOMNode root, in nsIOutputStream stream, in AUTF8String charset); */
104 : NS_IMETHODIMP nsDOMSerializer::SerializeToStream(nsIDOMNode *root, nsIOutputStream *stream, const nsACString & charset)
105 : {
106 : return NS_ERROR_NOT_IMPLEMENTED;
107 : }
108 :
109 : /* End of implementation class template. */
110 : #endif
111 :
112 : #define NS_XMLSERIALIZER_CID \
113 : { /* a6cf9124-15b3-11d2-932e-00805f8add32 */ \
114 : 0xa6cf9124, 0x15b3, 0x11d2, \
115 : {0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32} }
116 : #define NS_XMLSERIALIZER_CONTRACTID \
117 : "@mozilla.org/xmlextras/xmlserializer;1"
118 :
119 : #endif /* __gen_nsIDOMSerializer_h__ */
|