Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIScriptableUnescapeHTML.idl
3 : */
4 :
5 : #ifndef __gen_nsIScriptableUnescapeHTML_h__
6 : #define __gen_nsIScriptableUnescapeHTML_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 nsIDOMElement; /* forward declaration */
18 :
19 : class nsIDOMDocumentFragment; /* forward declaration */
20 :
21 : class nsIURI; /* forward declaration */
22 :
23 :
24 : /* starting interface: nsIScriptableUnescapeHTML */
25 : #define NS_ISCRIPTABLEUNESCAPEHTML_IID_STR "3ab244a9-f09d-44da-9e3f-ee4d67367f2d"
26 :
27 : #define NS_ISCRIPTABLEUNESCAPEHTML_IID \
28 : {0x3ab244a9, 0xf09d, 0x44da, \
29 : { 0x9e, 0x3f, 0xee, 0x4d, 0x67, 0x36, 0x7f, 0x2d }}
30 :
31 0 : class NS_NO_VTABLE nsIScriptableUnescapeHTML : public nsISupports {
32 : public:
33 :
34 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISCRIPTABLEUNESCAPEHTML_IID)
35 :
36 : /* AString unescape (in AString src); */
37 : NS_IMETHOD Unescape(const nsAString & src, nsAString & _retval) = 0;
38 :
39 : /* nsIDOMDocumentFragment parseFragment (in AString fragment, in boolean isXML, in nsIURI baseURI, in nsIDOMElement element); */
40 : NS_IMETHOD ParseFragment(const nsAString & fragment, bool isXML, nsIURI *baseURI, nsIDOMElement *element, nsIDOMDocumentFragment * *_retval) = 0;
41 :
42 : };
43 :
44 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIScriptableUnescapeHTML, NS_ISCRIPTABLEUNESCAPEHTML_IID)
45 :
46 : /* Use this macro when declaring classes that implement this interface. */
47 : #define NS_DECL_NSISCRIPTABLEUNESCAPEHTML \
48 : NS_IMETHOD Unescape(const nsAString & src, nsAString & _retval) override; \
49 : NS_IMETHOD ParseFragment(const nsAString & fragment, bool isXML, nsIURI *baseURI, nsIDOMElement *element, nsIDOMDocumentFragment * *_retval) override;
50 :
51 : /* Use this macro when declaring the members of this interface when the
52 : class doesn't implement the interface. This is useful for forwarding. */
53 : #define NS_DECL_NON_VIRTUAL_NSISCRIPTABLEUNESCAPEHTML \
54 : nsresult Unescape(const nsAString & src, nsAString & _retval); \
55 : nsresult ParseFragment(const nsAString & fragment, bool isXML, nsIURI *baseURI, nsIDOMElement *element, nsIDOMDocumentFragment * *_retval);
56 :
57 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
58 : #define NS_FORWARD_NSISCRIPTABLEUNESCAPEHTML(_to) \
59 : NS_IMETHOD Unescape(const nsAString & src, nsAString & _retval) override { return _to Unescape(src, _retval); } \
60 : NS_IMETHOD ParseFragment(const nsAString & fragment, bool isXML, nsIURI *baseURI, nsIDOMElement *element, nsIDOMDocumentFragment * *_retval) override { return _to ParseFragment(fragment, isXML, baseURI, element, _retval); }
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_NSISCRIPTABLEUNESCAPEHTML(_to) \
64 : NS_IMETHOD Unescape(const nsAString & src, nsAString & _retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->Unescape(src, _retval); } \
65 : NS_IMETHOD ParseFragment(const nsAString & fragment, bool isXML, nsIURI *baseURI, nsIDOMElement *element, nsIDOMDocumentFragment * *_retval) override { return !_to ? NS_ERROR_NULL_POINTER : _to->ParseFragment(fragment, isXML, baseURI, element, _retval); }
66 :
67 : #if 0
68 : /* Use the code below as a template for the implementation class for this interface. */
69 :
70 : /* Header file */
71 : class nsScriptableUnescapeHTML : public nsIScriptableUnescapeHTML
72 : {
73 : public:
74 : NS_DECL_ISUPPORTS
75 : NS_DECL_NSISCRIPTABLEUNESCAPEHTML
76 :
77 : nsScriptableUnescapeHTML();
78 :
79 : private:
80 : ~nsScriptableUnescapeHTML();
81 :
82 : protected:
83 : /* additional members */
84 : };
85 :
86 : /* Implementation file */
87 : NS_IMPL_ISUPPORTS(nsScriptableUnescapeHTML, nsIScriptableUnescapeHTML)
88 :
89 : nsScriptableUnescapeHTML::nsScriptableUnescapeHTML()
90 : {
91 : /* member initializers and constructor code */
92 : }
93 :
94 : nsScriptableUnescapeHTML::~nsScriptableUnescapeHTML()
95 : {
96 : /* destructor code */
97 : }
98 :
99 : /* AString unescape (in AString src); */
100 : NS_IMETHODIMP nsScriptableUnescapeHTML::Unescape(const nsAString & src, nsAString & _retval)
101 : {
102 : return NS_ERROR_NOT_IMPLEMENTED;
103 : }
104 :
105 : /* nsIDOMDocumentFragment parseFragment (in AString fragment, in boolean isXML, in nsIURI baseURI, in nsIDOMElement element); */
106 : NS_IMETHODIMP nsScriptableUnescapeHTML::ParseFragment(const nsAString & fragment, bool isXML, nsIURI *baseURI, nsIDOMElement *element, nsIDOMDocumentFragment * *_retval)
107 : {
108 : return NS_ERROR_NOT_IMPLEMENTED;
109 : }
110 :
111 : /* End of implementation class template. */
112 : #endif
113 :
114 : #define NS_SCRIPTABLEUNESCAPEHTML_CONTRACTID \
115 : "@mozilla.org/feed-unescapehtml;1"
116 : #define NS_SCRIPTABLEUNESCAPEHTML_CID \
117 : { 0x10f2f5f0, 0xf103, 0x4901, { 0x98, 0x0f, 0xba, 0x11, 0xbd, 0x70, 0xd6, 0x0d} }
118 :
119 : #endif /* __gen_nsIScriptableUnescapeHTML_h__ */
|