1 : /*
2 : * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/embedding/components/find/public/nsIFind.idl
3 : */
4 :
5 : #ifndef __gen_nsIFind_h__
6 : #define __gen_nsIFind_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 nsIDOMRange; /* forward declaration */
18 :
19 : class nsIWordBreaker; /* forward declaration */
20 :
21 :
22 : /* starting interface: nsIFind */
23 : #define NS_IFIND_IID_STR "75125d55-37ee-4575-b9b5-f33bfa68c2a1"
24 :
25 : #define NS_IFIND_IID \
26 : {0x75125d55, 0x37ee, 0x4575, \
27 : { 0xb9, 0xb5, 0xf3, 0x3b, 0xfa, 0x68, 0xc2, 0xa1 }}
28 :
29 0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIFind : public nsISupports {
30 : public:
31 :
32 : NS_DECLARE_STATIC_IID_ACCESSOR(NS_IFIND_IID)
33 :
34 : /* attribute boolean findBackwards; */
35 : NS_SCRIPTABLE NS_IMETHOD GetFindBackwards(bool *aFindBackwards) = 0;
36 : NS_SCRIPTABLE NS_IMETHOD SetFindBackwards(bool aFindBackwards) = 0;
37 :
38 : /* attribute boolean caseSensitive; */
39 : NS_SCRIPTABLE NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) = 0;
40 : NS_SCRIPTABLE NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) = 0;
41 :
42 : /* [noscript] attribute nsIWordBreaker wordBreaker; */
43 : NS_IMETHOD GetWordBreaker(nsIWordBreaker * *aWordBreaker) = 0;
44 : NS_IMETHOD SetWordBreaker(nsIWordBreaker *aWordBreaker) = 0;
45 :
46 : /* nsIDOMRange Find (in wstring aPatText, in nsIDOMRange aSearchRange, in nsIDOMRange aStartPoint, in nsIDOMRange aEndPoint); */
47 : NS_SCRIPTABLE NS_IMETHOD Find(const PRUnichar * aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange * *_retval NS_OUTPARAM) = 0;
48 :
49 : };
50 :
51 : NS_DEFINE_STATIC_IID_ACCESSOR(nsIFind, NS_IFIND_IID)
52 :
53 : /* Use this macro when declaring classes that implement this interface. */
54 : #define NS_DECL_NSIFIND \
55 : NS_SCRIPTABLE NS_IMETHOD GetFindBackwards(bool *aFindBackwards); \
56 : NS_SCRIPTABLE NS_IMETHOD SetFindBackwards(bool aFindBackwards); \
57 : NS_SCRIPTABLE NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive); \
58 : NS_SCRIPTABLE NS_IMETHOD SetCaseSensitive(bool aCaseSensitive); \
59 : NS_IMETHOD GetWordBreaker(nsIWordBreaker * *aWordBreaker); \
60 : NS_IMETHOD SetWordBreaker(nsIWordBreaker *aWordBreaker); \
61 : NS_SCRIPTABLE NS_IMETHOD Find(const PRUnichar * aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange * *_retval NS_OUTPARAM);
62 :
63 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
64 : #define NS_FORWARD_NSIFIND(_to) \
65 : NS_SCRIPTABLE NS_IMETHOD GetFindBackwards(bool *aFindBackwards) { return _to GetFindBackwards(aFindBackwards); } \
66 : NS_SCRIPTABLE NS_IMETHOD SetFindBackwards(bool aFindBackwards) { return _to SetFindBackwards(aFindBackwards); } \
67 : NS_SCRIPTABLE NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) { return _to GetCaseSensitive(aCaseSensitive); } \
68 : NS_SCRIPTABLE NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) { return _to SetCaseSensitive(aCaseSensitive); } \
69 : NS_IMETHOD GetWordBreaker(nsIWordBreaker * *aWordBreaker) { return _to GetWordBreaker(aWordBreaker); } \
70 : NS_IMETHOD SetWordBreaker(nsIWordBreaker *aWordBreaker) { return _to SetWordBreaker(aWordBreaker); } \
71 : NS_SCRIPTABLE NS_IMETHOD Find(const PRUnichar * aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange * *_retval NS_OUTPARAM) { return _to Find(aPatText, aSearchRange, aStartPoint, aEndPoint, _retval); }
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_NSIFIND(_to) \
75 : NS_SCRIPTABLE NS_IMETHOD GetFindBackwards(bool *aFindBackwards) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFindBackwards(aFindBackwards); } \
76 : NS_SCRIPTABLE NS_IMETHOD SetFindBackwards(bool aFindBackwards) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFindBackwards(aFindBackwards); } \
77 : NS_SCRIPTABLE NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaseSensitive(aCaseSensitive); } \
78 : NS_SCRIPTABLE NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaseSensitive(aCaseSensitive); } \
79 : NS_IMETHOD GetWordBreaker(nsIWordBreaker * *aWordBreaker) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWordBreaker(aWordBreaker); } \
80 : NS_IMETHOD SetWordBreaker(nsIWordBreaker *aWordBreaker) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWordBreaker(aWordBreaker); } \
81 : NS_SCRIPTABLE NS_IMETHOD Find(const PRUnichar * aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Find(aPatText, aSearchRange, aStartPoint, aEndPoint, _retval); }
82 :
83 : #if 0
84 : /* Use the code below as a template for the implementation class for this interface. */
85 :
86 : /* Header file */
87 : class nsFind : public nsIFind
88 : {
89 : public:
90 : NS_DECL_ISUPPORTS
91 : NS_DECL_NSIFIND
92 :
93 : nsFind();
94 :
95 : private:
96 : ~nsFind();
97 :
98 : protected:
99 : /* additional members */
100 : };
101 :
102 : /* Implementation file */
103 : NS_IMPL_ISUPPORTS1(nsFind, nsIFind)
104 :
105 : nsFind::nsFind()
106 : {
107 : /* member initializers and constructor code */
108 : }
109 :
110 : nsFind::~nsFind()
111 : {
112 : /* destructor code */
113 : }
114 :
115 : /* attribute boolean findBackwards; */
116 : NS_IMETHODIMP nsFind::GetFindBackwards(bool *aFindBackwards)
117 : {
118 : return NS_ERROR_NOT_IMPLEMENTED;
119 : }
120 : NS_IMETHODIMP nsFind::SetFindBackwards(bool aFindBackwards)
121 : {
122 : return NS_ERROR_NOT_IMPLEMENTED;
123 : }
124 :
125 : /* attribute boolean caseSensitive; */
126 : NS_IMETHODIMP nsFind::GetCaseSensitive(bool *aCaseSensitive)
127 : {
128 : return NS_ERROR_NOT_IMPLEMENTED;
129 : }
130 : NS_IMETHODIMP nsFind::SetCaseSensitive(bool aCaseSensitive)
131 : {
132 : return NS_ERROR_NOT_IMPLEMENTED;
133 : }
134 :
135 : /* [noscript] attribute nsIWordBreaker wordBreaker; */
136 : NS_IMETHODIMP nsFind::GetWordBreaker(nsIWordBreaker * *aWordBreaker)
137 : {
138 : return NS_ERROR_NOT_IMPLEMENTED;
139 : }
140 : NS_IMETHODIMP nsFind::SetWordBreaker(nsIWordBreaker *aWordBreaker)
141 : {
142 : return NS_ERROR_NOT_IMPLEMENTED;
143 : }
144 :
145 : /* nsIDOMRange Find (in wstring aPatText, in nsIDOMRange aSearchRange, in nsIDOMRange aStartPoint, in nsIDOMRange aEndPoint); */
146 : NS_IMETHODIMP nsFind::Find(const PRUnichar * aPatText, nsIDOMRange *aSearchRange, nsIDOMRange *aStartPoint, nsIDOMRange *aEndPoint, nsIDOMRange * *_retval NS_OUTPARAM)
147 : {
148 : return NS_ERROR_NOT_IMPLEMENTED;
149 : }
150 :
151 : /* End of implementation class template. */
152 : #endif
153 :
154 :
155 : #endif /* __gen_nsIFind_h__ */
|