1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/netwerk/streamconv/public/mozITXTToHTMLConv.idl
3 : */
4 :
5 : #ifndef __gen_mozITXTToHTMLConv_h__
6 : #define __gen_mozITXTToHTMLConv_h__
7 :
8 :
9 : #ifndef __gen_nsIStreamConverter_h__
10 : #include "nsIStreamConverter.h"
11 : #endif
12 :
13 : #ifndef __gen_nsrootidl_h__
14 : #include "nsrootidl.h"
15 : #endif
16 :
17 : /* For IDL files that don't want to include root IDL files. */
18 : #ifndef NS_NO_VTABLE
19 : #define NS_NO_VTABLE
20 : #endif
21 : // {77c0e42a-1dd2-11b2-8ebf-edc6606f2f4b}
22 : #define MOZITXTTOHTMLCONV_CID \
23 : { 0x77c0e42a, 0x1dd2, 0x11b2, \
24 : { 0x8e, 0xbf, 0xed, 0xc6, 0x60, 0x6f, 0x2f, 0x4b } }
25 :
26 : #define MOZ_TXTTOHTMLCONV_CONTRACTID \
27 : "@mozilla.org/txttohtmlconv;1"
28 :
29 : /* starting interface: mozITXTToHTMLConv */
30 : #define MOZITXTTOHTMLCONV_IID_STR "77c0e42a-1dd2-11b2-8ebf-edc6606f2f4b"
31 :
32 : #define MOZITXTTOHTMLCONV_IID \
33 : {0x77c0e42a, 0x1dd2, 0x11b2, \
34 : { 0x8e, 0xbf, 0xed, 0xc6, 0x60, 0x6f, 0x2f, 0x4b }}
35 :
36 0 : class NS_NO_VTABLE NS_SCRIPTABLE mozITXTToHTMLConv : public nsIStreamConverter {
37 : public:
38 :
39 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZITXTTOHTMLCONV_IID)
40 :
41 : enum {
42 : kEntities = 0U,
43 : kURLs = 2U,
44 : kGlyphSubstitution = 4U,
45 : kStructPhrase = 8U
46 : };
47 :
48 : /* wstring scanTXT (in wstring text, in unsigned long whattodo); */
49 : NS_SCRIPTABLE NS_IMETHOD ScanTXT(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM) = 0;
50 :
51 : /* wstring scanHTML (in wstring text, in unsigned long whattodo); */
52 : NS_SCRIPTABLE NS_IMETHOD ScanHTML(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM) = 0;
53 :
54 : /* unsigned long citeLevelTXT (in wstring line, out unsigned long logLineStart); */
55 : NS_SCRIPTABLE NS_IMETHOD CiteLevelTXT(const PRUnichar * line, PRUint32 *logLineStart NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) = 0;
56 :
57 : /* void findURLInPlaintext (in wstring text, in long aLength, in long aPos, out long aStartPos, out long aEndPos); */
58 : NS_SCRIPTABLE NS_IMETHOD FindURLInPlaintext(const PRUnichar * text, PRInt32 aLength, PRInt32 aPos, PRInt32 *aStartPos NS_OUTPARAM, PRInt32 *aEndPos NS_OUTPARAM) = 0;
59 :
60 : };
61 :
62 : NS_DEFINE_STATIC_IID_ACCESSOR(mozITXTToHTMLConv, MOZITXTTOHTMLCONV_IID)
63 :
64 : /* Use this macro when declaring classes that implement this interface. */
65 : #define NS_DECL_MOZITXTTOHTMLCONV \
66 : NS_SCRIPTABLE NS_IMETHOD ScanTXT(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM); \
67 : NS_SCRIPTABLE NS_IMETHOD ScanHTML(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM); \
68 : NS_SCRIPTABLE NS_IMETHOD CiteLevelTXT(const PRUnichar * line, PRUint32 *logLineStart NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM); \
69 : NS_SCRIPTABLE NS_IMETHOD FindURLInPlaintext(const PRUnichar * text, PRInt32 aLength, PRInt32 aPos, PRInt32 *aStartPos NS_OUTPARAM, PRInt32 *aEndPos NS_OUTPARAM);
70 :
71 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
72 : #define NS_FORWARD_MOZITXTTOHTMLCONV(_to) \
73 : NS_SCRIPTABLE NS_IMETHOD ScanTXT(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM) { return _to ScanTXT(text, whattodo, _retval); } \
74 : NS_SCRIPTABLE NS_IMETHOD ScanHTML(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM) { return _to ScanHTML(text, whattodo, _retval); } \
75 : NS_SCRIPTABLE NS_IMETHOD CiteLevelTXT(const PRUnichar * line, PRUint32 *logLineStart NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) { return _to CiteLevelTXT(line, logLineStart, _retval); } \
76 : NS_SCRIPTABLE NS_IMETHOD FindURLInPlaintext(const PRUnichar * text, PRInt32 aLength, PRInt32 aPos, PRInt32 *aStartPos NS_OUTPARAM, PRInt32 *aEndPos NS_OUTPARAM) { return _to FindURLInPlaintext(text, aLength, aPos, aStartPos, aEndPos); }
77 :
78 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
79 : #define NS_FORWARD_SAFE_MOZITXTTOHTMLCONV(_to) \
80 : NS_SCRIPTABLE NS_IMETHOD ScanTXT(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScanTXT(text, whattodo, _retval); } \
81 : NS_SCRIPTABLE NS_IMETHOD ScanHTML(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScanHTML(text, whattodo, _retval); } \
82 : NS_SCRIPTABLE NS_IMETHOD CiteLevelTXT(const PRUnichar * line, PRUint32 *logLineStart NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CiteLevelTXT(line, logLineStart, _retval); } \
83 : NS_SCRIPTABLE NS_IMETHOD FindURLInPlaintext(const PRUnichar * text, PRInt32 aLength, PRInt32 aPos, PRInt32 *aStartPos NS_OUTPARAM, PRInt32 *aEndPos NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindURLInPlaintext(text, aLength, aPos, aStartPos, aEndPos); }
84 :
85 : #if 0
86 : /* Use the code below as a template for the implementation class for this interface. */
87 :
88 : /* Header file */
89 : class _MYCLASS_ : public mozITXTToHTMLConv
90 : {
91 : public:
92 : NS_DECL_ISUPPORTS
93 : NS_DECL_MOZITXTTOHTMLCONV
94 :
95 : _MYCLASS_();
96 :
97 : private:
98 : ~_MYCLASS_();
99 :
100 : protected:
101 : /* additional members */
102 : };
103 :
104 : /* Implementation file */
105 : NS_IMPL_ISUPPORTS1(_MYCLASS_, mozITXTToHTMLConv)
106 :
107 : _MYCLASS_::_MYCLASS_()
108 : {
109 : /* member initializers and constructor code */
110 : }
111 :
112 : _MYCLASS_::~_MYCLASS_()
113 : {
114 : /* destructor code */
115 : }
116 :
117 : /* wstring scanTXT (in wstring text, in unsigned long whattodo); */
118 : NS_IMETHODIMP _MYCLASS_::ScanTXT(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM)
119 : {
120 : return NS_ERROR_NOT_IMPLEMENTED;
121 : }
122 :
123 : /* wstring scanHTML (in wstring text, in unsigned long whattodo); */
124 : NS_IMETHODIMP _MYCLASS_::ScanHTML(const PRUnichar * text, PRUint32 whattodo, PRUnichar * *_retval NS_OUTPARAM)
125 : {
126 : return NS_ERROR_NOT_IMPLEMENTED;
127 : }
128 :
129 : /* unsigned long citeLevelTXT (in wstring line, out unsigned long logLineStart); */
130 : NS_IMETHODIMP _MYCLASS_::CiteLevelTXT(const PRUnichar * line, PRUint32 *logLineStart NS_OUTPARAM, PRUint32 *_retval NS_OUTPARAM)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* void findURLInPlaintext (in wstring text, in long aLength, in long aPos, out long aStartPos, out long aEndPos); */
136 : NS_IMETHODIMP _MYCLASS_::FindURLInPlaintext(const PRUnichar * text, PRInt32 aLength, PRInt32 aPos, PRInt32 *aStartPos NS_OUTPARAM, PRInt32 *aEndPos NS_OUTPARAM)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 :
141 : /* End of implementation class template. */
142 : #endif
143 :
144 :
145 : #endif /* __gen_mozITXTToHTMLConv_h__ */
|