Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/mozISpellI18NUtil.idl
3 : */
4 :
5 : #ifndef __gen_mozISpellI18NUtil_h__
6 : #define __gen_mozISpellI18NUtil_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 :
18 : /* starting interface: mozISpellI18NUtil */
19 : #define MOZISPELLI18NUTIL_IID_STR "b075d5dc-1df1-441a-bebf-680d8caaa19c"
20 :
21 : #define MOZISPELLI18NUTIL_IID \
22 : {0xb075d5dc, 0x1df1, 0x441a, \
23 : { 0xbe, 0xbf, 0x68, 0x0d, 0x8c, 0xaa, 0xa1, 0x9c }}
24 :
25 0 : class NS_NO_VTABLE mozISpellI18NUtil : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(MOZISPELLI18NUTIL_IID)
29 :
30 : enum {
31 : kCheck = 0U,
32 : kSuggest = 1U
33 : };
34 :
35 : /* readonly attribute wstring language; */
36 : NS_IMETHOD GetLanguage(char16_t * *aLanguage) = 0;
37 :
38 : /* void getRootForm (in wstring word, in uint32_t type, [array, size_is (count)] out wstring words, out uint32_t count); */
39 : NS_IMETHOD GetRootForm(const char16_t * word, uint32_t type, char16_t * **words, uint32_t *count) = 0;
40 :
41 : /* void fromRootForm (in wstring word, [array, size_is (icount)] in wstring iwords, in uint32_t icount, [array, size_is (ocount)] out wstring owords, out uint32_t ocount); */
42 : NS_IMETHOD FromRootForm(const char16_t * word, const char16_t * *iwords, uint32_t icount, char16_t * **owords, uint32_t *ocount) = 0;
43 :
44 : /* void findNextWord (in wstring word, in uint32_t length, in uint32_t offset, out int32_t begin, out int32_t end); */
45 : NS_IMETHOD FindNextWord(const char16_t * word, uint32_t length, uint32_t offset, int32_t *begin, int32_t *end) = 0;
46 :
47 : };
48 :
49 : NS_DEFINE_STATIC_IID_ACCESSOR(mozISpellI18NUtil, MOZISPELLI18NUTIL_IID)
50 :
51 : /* Use this macro when declaring classes that implement this interface. */
52 : #define NS_DECL_MOZISPELLI18NUTIL \
53 : NS_IMETHOD GetLanguage(char16_t * *aLanguage) override; \
54 : NS_IMETHOD GetRootForm(const char16_t * word, uint32_t type, char16_t * **words, uint32_t *count) override; \
55 : NS_IMETHOD FromRootForm(const char16_t * word, const char16_t * *iwords, uint32_t icount, char16_t * **owords, uint32_t *ocount) override; \
56 : NS_IMETHOD FindNextWord(const char16_t * word, uint32_t length, uint32_t offset, int32_t *begin, int32_t *end) override;
57 :
58 : /* Use this macro when declaring the members of this interface when the
59 : class doesn't implement the interface. This is useful for forwarding. */
60 : #define NS_DECL_NON_VIRTUAL_MOZISPELLI18NUTIL \
61 : nsresult GetLanguage(char16_t * *aLanguage); \
62 : nsresult GetRootForm(const char16_t * word, uint32_t type, char16_t * **words, uint32_t *count); \
63 : nsresult FromRootForm(const char16_t * word, const char16_t * *iwords, uint32_t icount, char16_t * **owords, uint32_t *ocount); \
64 : nsresult FindNextWord(const char16_t * word, uint32_t length, uint32_t offset, int32_t *begin, int32_t *end);
65 :
66 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
67 : #define NS_FORWARD_MOZISPELLI18NUTIL(_to) \
68 : NS_IMETHOD GetLanguage(char16_t * *aLanguage) override { return _to GetLanguage(aLanguage); } \
69 : NS_IMETHOD GetRootForm(const char16_t * word, uint32_t type, char16_t * **words, uint32_t *count) override { return _to GetRootForm(word, type, words, count); } \
70 : NS_IMETHOD FromRootForm(const char16_t * word, const char16_t * *iwords, uint32_t icount, char16_t * **owords, uint32_t *ocount) override { return _to FromRootForm(word, iwords, icount, owords, ocount); } \
71 : NS_IMETHOD FindNextWord(const char16_t * word, uint32_t length, uint32_t offset, int32_t *begin, int32_t *end) override { return _to FindNextWord(word, length, offset, begin, end); }
72 :
73 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
74 : #define NS_FORWARD_SAFE_MOZISPELLI18NUTIL(_to) \
75 : NS_IMETHOD GetLanguage(char16_t * *aLanguage) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLanguage(aLanguage); } \
76 : NS_IMETHOD GetRootForm(const char16_t * word, uint32_t type, char16_t * **words, uint32_t *count) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootForm(word, type, words, count); } \
77 : NS_IMETHOD FromRootForm(const char16_t * word, const char16_t * *iwords, uint32_t icount, char16_t * **owords, uint32_t *ocount) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FromRootForm(word, iwords, icount, owords, ocount); } \
78 : NS_IMETHOD FindNextWord(const char16_t * word, uint32_t length, uint32_t offset, int32_t *begin, int32_t *end) override { return !_to ? NS_ERROR_NULL_POINTER : _to->FindNextWord(word, length, offset, begin, end); }
79 :
80 : #if 0
81 : /* Use the code below as a template for the implementation class for this interface. */
82 :
83 : /* Header file */
84 : class _MYCLASS_ : public mozISpellI18NUtil
85 : {
86 : public:
87 : NS_DECL_ISUPPORTS
88 : NS_DECL_MOZISPELLI18NUTIL
89 :
90 : _MYCLASS_();
91 :
92 : private:
93 : ~_MYCLASS_();
94 :
95 : protected:
96 : /* additional members */
97 : };
98 :
99 : /* Implementation file */
100 : NS_IMPL_ISUPPORTS(_MYCLASS_, mozISpellI18NUtil)
101 :
102 : _MYCLASS_::_MYCLASS_()
103 : {
104 : /* member initializers and constructor code */
105 : }
106 :
107 : _MYCLASS_::~_MYCLASS_()
108 : {
109 : /* destructor code */
110 : }
111 :
112 : /* readonly attribute wstring language; */
113 : NS_IMETHODIMP _MYCLASS_::GetLanguage(char16_t * *aLanguage)
114 : {
115 : return NS_ERROR_NOT_IMPLEMENTED;
116 : }
117 :
118 : /* void getRootForm (in wstring word, in uint32_t type, [array, size_is (count)] out wstring words, out uint32_t count); */
119 : NS_IMETHODIMP _MYCLASS_::GetRootForm(const char16_t * word, uint32_t type, char16_t * **words, uint32_t *count)
120 : {
121 : return NS_ERROR_NOT_IMPLEMENTED;
122 : }
123 :
124 : /* void fromRootForm (in wstring word, [array, size_is (icount)] in wstring iwords, in uint32_t icount, [array, size_is (ocount)] out wstring owords, out uint32_t ocount); */
125 : NS_IMETHODIMP _MYCLASS_::FromRootForm(const char16_t * word, const char16_t * *iwords, uint32_t icount, char16_t * **owords, uint32_t *ocount)
126 : {
127 : return NS_ERROR_NOT_IMPLEMENTED;
128 : }
129 :
130 : /* void findNextWord (in wstring word, in uint32_t length, in uint32_t offset, out int32_t begin, out int32_t end); */
131 : NS_IMETHODIMP _MYCLASS_::FindNextWord(const char16_t * word, uint32_t length, uint32_t offset, int32_t *begin, int32_t *end)
132 : {
133 : return NS_ERROR_NOT_IMPLEMENTED;
134 : }
135 :
136 : /* End of implementation class template. */
137 : #endif
138 :
139 :
140 : #endif /* __gen_mozISpellI18NUtil_h__ */
|