Line data Source code
1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM ../../../dist/idl/nsIFindService.idl
3 : */
4 :
5 : #ifndef __gen_nsIFindService_h__
6 : #define __gen_nsIFindService_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: nsIFindService */
19 : #define NS_IFINDSERVICE_IID_STR "5060b801-340e-11d5-be5b-b3e063ec6a3c"
20 :
21 : #define NS_IFINDSERVICE_IID \
22 : {0x5060b801, 0x340e, 0x11d5, \
23 : { 0xbe, 0x5b, 0xb3, 0xe0, 0x63, 0xec, 0x6a, 0x3c }}
24 :
25 0 : class NS_NO_VTABLE nsIFindService : public nsISupports {
26 : public:
27 :
28 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFINDSERVICE_IID)
29 :
30 : /* attribute AString searchString; */
31 : NS_IMETHOD GetSearchString(nsAString & aSearchString) = 0;
32 : NS_IMETHOD SetSearchString(const nsAString & aSearchString) = 0;
33 :
34 : /* attribute AString replaceString; */
35 : NS_IMETHOD GetReplaceString(nsAString & aReplaceString) = 0;
36 : NS_IMETHOD SetReplaceString(const nsAString & aReplaceString) = 0;
37 :
38 : /* attribute boolean findBackwards; */
39 : NS_IMETHOD GetFindBackwards(bool *aFindBackwards) = 0;
40 : NS_IMETHOD SetFindBackwards(bool aFindBackwards) = 0;
41 :
42 : /* attribute boolean wrapFind; */
43 : NS_IMETHOD GetWrapFind(bool *aWrapFind) = 0;
44 : NS_IMETHOD SetWrapFind(bool aWrapFind) = 0;
45 :
46 : /* attribute boolean entireWord; */
47 : NS_IMETHOD GetEntireWord(bool *aEntireWord) = 0;
48 : NS_IMETHOD SetEntireWord(bool aEntireWord) = 0;
49 :
50 : /* attribute boolean matchCase; */
51 : NS_IMETHOD GetMatchCase(bool *aMatchCase) = 0;
52 : NS_IMETHOD SetMatchCase(bool aMatchCase) = 0;
53 :
54 : };
55 :
56 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFindService, NS_IFINDSERVICE_IID)
57 :
58 : /* Use this macro when declaring classes that implement this interface. */
59 : #define NS_DECL_NSIFINDSERVICE \
60 : NS_IMETHOD GetSearchString(nsAString & aSearchString) override; \
61 : NS_IMETHOD SetSearchString(const nsAString & aSearchString) override; \
62 : NS_IMETHOD GetReplaceString(nsAString & aReplaceString) override; \
63 : NS_IMETHOD SetReplaceString(const nsAString & aReplaceString) override; \
64 : NS_IMETHOD GetFindBackwards(bool *aFindBackwards) override; \
65 : NS_IMETHOD SetFindBackwards(bool aFindBackwards) override; \
66 : NS_IMETHOD GetWrapFind(bool *aWrapFind) override; \
67 : NS_IMETHOD SetWrapFind(bool aWrapFind) override; \
68 : NS_IMETHOD GetEntireWord(bool *aEntireWord) override; \
69 : NS_IMETHOD SetEntireWord(bool aEntireWord) override; \
70 : NS_IMETHOD GetMatchCase(bool *aMatchCase) override; \
71 : NS_IMETHOD SetMatchCase(bool aMatchCase) override;
72 :
73 : /* Use this macro when declaring the members of this interface when the
74 : class doesn't implement the interface. This is useful for forwarding. */
75 : #define NS_DECL_NON_VIRTUAL_NSIFINDSERVICE \
76 : nsresult GetSearchString(nsAString & aSearchString); \
77 : nsresult SetSearchString(const nsAString & aSearchString); \
78 : nsresult GetReplaceString(nsAString & aReplaceString); \
79 : nsresult SetReplaceString(const nsAString & aReplaceString); \
80 : nsresult GetFindBackwards(bool *aFindBackwards); \
81 : nsresult SetFindBackwards(bool aFindBackwards); \
82 : nsresult GetWrapFind(bool *aWrapFind); \
83 : nsresult SetWrapFind(bool aWrapFind); \
84 : nsresult GetEntireWord(bool *aEntireWord); \
85 : nsresult SetEntireWord(bool aEntireWord); \
86 : nsresult GetMatchCase(bool *aMatchCase); \
87 : nsresult SetMatchCase(bool aMatchCase);
88 :
89 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
90 : #define NS_FORWARD_NSIFINDSERVICE(_to) \
91 : NS_IMETHOD GetSearchString(nsAString & aSearchString) override { return _to GetSearchString(aSearchString); } \
92 : NS_IMETHOD SetSearchString(const nsAString & aSearchString) override { return _to SetSearchString(aSearchString); } \
93 : NS_IMETHOD GetReplaceString(nsAString & aReplaceString) override { return _to GetReplaceString(aReplaceString); } \
94 : NS_IMETHOD SetReplaceString(const nsAString & aReplaceString) override { return _to SetReplaceString(aReplaceString); } \
95 : NS_IMETHOD GetFindBackwards(bool *aFindBackwards) override { return _to GetFindBackwards(aFindBackwards); } \
96 : NS_IMETHOD SetFindBackwards(bool aFindBackwards) override { return _to SetFindBackwards(aFindBackwards); } \
97 : NS_IMETHOD GetWrapFind(bool *aWrapFind) override { return _to GetWrapFind(aWrapFind); } \
98 : NS_IMETHOD SetWrapFind(bool aWrapFind) override { return _to SetWrapFind(aWrapFind); } \
99 : NS_IMETHOD GetEntireWord(bool *aEntireWord) override { return _to GetEntireWord(aEntireWord); } \
100 : NS_IMETHOD SetEntireWord(bool aEntireWord) override { return _to SetEntireWord(aEntireWord); } \
101 : NS_IMETHOD GetMatchCase(bool *aMatchCase) override { return _to GetMatchCase(aMatchCase); } \
102 : NS_IMETHOD SetMatchCase(bool aMatchCase) override { return _to SetMatchCase(aMatchCase); }
103 :
104 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
105 : #define NS_FORWARD_SAFE_NSIFINDSERVICE(_to) \
106 : NS_IMETHOD GetSearchString(nsAString & aSearchString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchString(aSearchString); } \
107 : NS_IMETHOD SetSearchString(const nsAString & aSearchString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchString(aSearchString); } \
108 : NS_IMETHOD GetReplaceString(nsAString & aReplaceString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetReplaceString(aReplaceString); } \
109 : NS_IMETHOD SetReplaceString(const nsAString & aReplaceString) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetReplaceString(aReplaceString); } \
110 : NS_IMETHOD GetFindBackwards(bool *aFindBackwards) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFindBackwards(aFindBackwards); } \
111 : NS_IMETHOD SetFindBackwards(bool aFindBackwards) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFindBackwards(aFindBackwards); } \
112 : NS_IMETHOD GetWrapFind(bool *aWrapFind) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWrapFind(aWrapFind); } \
113 : NS_IMETHOD SetWrapFind(bool aWrapFind) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWrapFind(aWrapFind); } \
114 : NS_IMETHOD GetEntireWord(bool *aEntireWord) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntireWord(aEntireWord); } \
115 : NS_IMETHOD SetEntireWord(bool aEntireWord) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEntireWord(aEntireWord); } \
116 : NS_IMETHOD GetMatchCase(bool *aMatchCase) override { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchCase(aMatchCase); } \
117 : NS_IMETHOD SetMatchCase(bool aMatchCase) override { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMatchCase(aMatchCase); }
118 :
119 : #if 0
120 : /* Use the code below as a template for the implementation class for this interface. */
121 :
122 : /* Header file */
123 : class nsFindService : public nsIFindService
124 : {
125 : public:
126 : NS_DECL_ISUPPORTS
127 : NS_DECL_NSIFINDSERVICE
128 :
129 : nsFindService();
130 :
131 : private:
132 : ~nsFindService();
133 :
134 : protected:
135 : /* additional members */
136 : };
137 :
138 : /* Implementation file */
139 : NS_IMPL_ISUPPORTS(nsFindService, nsIFindService)
140 :
141 : nsFindService::nsFindService()
142 : {
143 : /* member initializers and constructor code */
144 : }
145 :
146 : nsFindService::~nsFindService()
147 : {
148 : /* destructor code */
149 : }
150 :
151 : /* attribute AString searchString; */
152 : NS_IMETHODIMP nsFindService::GetSearchString(nsAString & aSearchString)
153 : {
154 : return NS_ERROR_NOT_IMPLEMENTED;
155 : }
156 : NS_IMETHODIMP nsFindService::SetSearchString(const nsAString & aSearchString)
157 : {
158 : return NS_ERROR_NOT_IMPLEMENTED;
159 : }
160 :
161 : /* attribute AString replaceString; */
162 : NS_IMETHODIMP nsFindService::GetReplaceString(nsAString & aReplaceString)
163 : {
164 : return NS_ERROR_NOT_IMPLEMENTED;
165 : }
166 : NS_IMETHODIMP nsFindService::SetReplaceString(const nsAString & aReplaceString)
167 : {
168 : return NS_ERROR_NOT_IMPLEMENTED;
169 : }
170 :
171 : /* attribute boolean findBackwards; */
172 : NS_IMETHODIMP nsFindService::GetFindBackwards(bool *aFindBackwards)
173 : {
174 : return NS_ERROR_NOT_IMPLEMENTED;
175 : }
176 : NS_IMETHODIMP nsFindService::SetFindBackwards(bool aFindBackwards)
177 : {
178 : return NS_ERROR_NOT_IMPLEMENTED;
179 : }
180 :
181 : /* attribute boolean wrapFind; */
182 : NS_IMETHODIMP nsFindService::GetWrapFind(bool *aWrapFind)
183 : {
184 : return NS_ERROR_NOT_IMPLEMENTED;
185 : }
186 : NS_IMETHODIMP nsFindService::SetWrapFind(bool aWrapFind)
187 : {
188 : return NS_ERROR_NOT_IMPLEMENTED;
189 : }
190 :
191 : /* attribute boolean entireWord; */
192 : NS_IMETHODIMP nsFindService::GetEntireWord(bool *aEntireWord)
193 : {
194 : return NS_ERROR_NOT_IMPLEMENTED;
195 : }
196 : NS_IMETHODIMP nsFindService::SetEntireWord(bool aEntireWord)
197 : {
198 : return NS_ERROR_NOT_IMPLEMENTED;
199 : }
200 :
201 : /* attribute boolean matchCase; */
202 : NS_IMETHODIMP nsFindService::GetMatchCase(bool *aMatchCase)
203 : {
204 : return NS_ERROR_NOT_IMPLEMENTED;
205 : }
206 : NS_IMETHODIMP nsFindService::SetMatchCase(bool aMatchCase)
207 : {
208 : return NS_ERROR_NOT_IMPLEMENTED;
209 : }
210 :
211 : /* End of implementation class template. */
212 : #endif
213 :
214 :
215 : #endif /* __gen_nsIFindService_h__ */
|