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