PageRenderTime 965ms CodeModel.GetById 82ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/nsIWebBrowserFind.h

http://firefox-mac-pdf.googlecode.com/
C Header | 457 lines | 242 code | 66 blank | 149 comment | 0 complexity | 871898e1644c34d7b9d77d52693e2f56 MD5 | raw file
  1. /*
  2. * DO NOT EDIT. THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/embedding/components/find/public/nsIWebBrowserFind.idl
  3. */
  4. #ifndef __gen_nsIWebBrowserFind_h__
  5. #define __gen_nsIWebBrowserFind_h__
  6. #ifndef __gen_nsISupports_h__
  7. #include "nsISupports.h"
  8. #endif
  9. #ifndef __gen_domstubs_h__
  10. #include "domstubs.h"
  11. #endif
  12. /* For IDL files that don't want to include root IDL files. */
  13. #ifndef NS_NO_VTABLE
  14. #define NS_NO_VTABLE
  15. #endif
  16. /* starting interface: nsIWebBrowserFind */
  17. #define NS_IWEBBROWSERFIND_IID_STR "2f977d44-5485-11d4-87e2-0010a4e75ef2"
  18. #define NS_IWEBBROWSERFIND_IID \
  19. {0x2f977d44, 0x5485, 0x11d4, \
  20. { 0x87, 0xe2, 0x00, 0x10, 0xa4, 0xe7, 0x5e, 0xf2 }}
  21. /**
  22. * nsIWebBrowserFind
  23. *
  24. * Searches for text in a web browser.
  25. *
  26. * Get one by doing a GetInterface on an nsIWebBrowser.
  27. *
  28. * By default, the implementation will search the focussed frame, or
  29. * if there is no focussed frame, the web browser content area. It
  30. * does not by default search subframes or iframes. To change this
  31. * behaviour, and to explicitly set the frame to search,
  32. * QueryInterface to nsIWebBrowserFindInFrames.
  33. *
  34. * @status FROZEN
  35. */
  36. class NS_NO_VTABLE NS_SCRIPTABLE nsIWebBrowserFind : public nsISupports {
  37. public:
  38. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERFIND_IID)
  39. /**
  40. * findNext
  41. *
  42. * Finds, highlights, and scrolls into view the next occurrence of the
  43. * search string, using the current search settings. Fails if the
  44. * search string is empty.
  45. *
  46. * @return Whether an occurrence was found
  47. */
  48. /* boolean findNext (); */
  49. NS_SCRIPTABLE NS_IMETHOD FindNext(PRBool *_retval) = 0;
  50. /**
  51. * searchString
  52. *
  53. * The string to search for. This must be non-empty to search.
  54. */
  55. /* attribute wstring searchString; */
  56. NS_SCRIPTABLE NS_IMETHOD GetSearchString(PRUnichar * *aSearchString) = 0;
  57. NS_SCRIPTABLE NS_IMETHOD SetSearchString(const PRUnichar * aSearchString) = 0;
  58. /**
  59. * findBackwards
  60. *
  61. * Whether to find backwards (towards the beginning of the document).
  62. * Default is false (search forward).
  63. */
  64. /* attribute boolean findBackwards; */
  65. NS_SCRIPTABLE NS_IMETHOD GetFindBackwards(PRBool *aFindBackwards) = 0;
  66. NS_SCRIPTABLE NS_IMETHOD SetFindBackwards(PRBool aFindBackwards) = 0;
  67. /**
  68. * wrapFind
  69. *
  70. * Whether the search wraps around to the start (or end) of the document
  71. * if no match was found between the current position and the end (or
  72. * beginning). Works correctly when searching backwards. Default is
  73. * false.
  74. */
  75. /* attribute boolean wrapFind; */
  76. NS_SCRIPTABLE NS_IMETHOD GetWrapFind(PRBool *aWrapFind) = 0;
  77. NS_SCRIPTABLE NS_IMETHOD SetWrapFind(PRBool aWrapFind) = 0;
  78. /**
  79. * entireWord
  80. *
  81. * Whether to match entire words only. Default is false.
  82. */
  83. /* attribute boolean entireWord; */
  84. NS_SCRIPTABLE NS_IMETHOD GetEntireWord(PRBool *aEntireWord) = 0;
  85. NS_SCRIPTABLE NS_IMETHOD SetEntireWord(PRBool aEntireWord) = 0;
  86. /**
  87. * matchCase
  88. *
  89. * Whether to match case (case sensitive) when searching. Default is false.
  90. */
  91. /* attribute boolean matchCase; */
  92. NS_SCRIPTABLE NS_IMETHOD GetMatchCase(PRBool *aMatchCase) = 0;
  93. NS_SCRIPTABLE NS_IMETHOD SetMatchCase(PRBool aMatchCase) = 0;
  94. /**
  95. * searchFrames
  96. *
  97. * Whether to search through all frames in the content area. Default is true.
  98. *
  99. * Note that you can control whether the search propagates into child or
  100. * parent frames explicitly using nsIWebBrowserFindInFrames, but if one,
  101. * but not both, of searchSubframes and searchParentFrames are set, this
  102. * returns false.
  103. */
  104. /* attribute boolean searchFrames; */
  105. NS_SCRIPTABLE NS_IMETHOD GetSearchFrames(PRBool *aSearchFrames) = 0;
  106. NS_SCRIPTABLE NS_IMETHOD SetSearchFrames(PRBool aSearchFrames) = 0;
  107. };
  108. NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserFind, NS_IWEBBROWSERFIND_IID)
  109. /* Use this macro when declaring classes that implement this interface. */
  110. #define NS_DECL_NSIWEBBROWSERFIND \
  111. NS_SCRIPTABLE NS_IMETHOD FindNext(PRBool *_retval); \
  112. NS_SCRIPTABLE NS_IMETHOD GetSearchString(PRUnichar * *aSearchString); \
  113. NS_SCRIPTABLE NS_IMETHOD SetSearchString(const PRUnichar * aSearchString); \
  114. NS_SCRIPTABLE NS_IMETHOD GetFindBackwards(PRBool *aFindBackwards); \
  115. NS_SCRIPTABLE NS_IMETHOD SetFindBackwards(PRBool aFindBackwards); \
  116. NS_SCRIPTABLE NS_IMETHOD GetWrapFind(PRBool *aWrapFind); \
  117. NS_SCRIPTABLE NS_IMETHOD SetWrapFind(PRBool aWrapFind); \
  118. NS_SCRIPTABLE NS_IMETHOD GetEntireWord(PRBool *aEntireWord); \
  119. NS_SCRIPTABLE NS_IMETHOD SetEntireWord(PRBool aEntireWord); \
  120. NS_SCRIPTABLE NS_IMETHOD GetMatchCase(PRBool *aMatchCase); \
  121. NS_SCRIPTABLE NS_IMETHOD SetMatchCase(PRBool aMatchCase); \
  122. NS_SCRIPTABLE NS_IMETHOD GetSearchFrames(PRBool *aSearchFrames); \
  123. NS_SCRIPTABLE NS_IMETHOD SetSearchFrames(PRBool aSearchFrames);
  124. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  125. #define NS_FORWARD_NSIWEBBROWSERFIND(_to) \
  126. NS_SCRIPTABLE NS_IMETHOD FindNext(PRBool *_retval) { return _to FindNext(_retval); } \
  127. NS_SCRIPTABLE NS_IMETHOD GetSearchString(PRUnichar * *aSearchString) { return _to GetSearchString(aSearchString); } \
  128. NS_SCRIPTABLE NS_IMETHOD SetSearchString(const PRUnichar * aSearchString) { return _to SetSearchString(aSearchString); } \
  129. NS_SCRIPTABLE NS_IMETHOD GetFindBackwards(PRBool *aFindBackwards) { return _to GetFindBackwards(aFindBackwards); } \
  130. NS_SCRIPTABLE NS_IMETHOD SetFindBackwards(PRBool aFindBackwards) { return _to SetFindBackwards(aFindBackwards); } \
  131. NS_SCRIPTABLE NS_IMETHOD GetWrapFind(PRBool *aWrapFind) { return _to GetWrapFind(aWrapFind); } \
  132. NS_SCRIPTABLE NS_IMETHOD SetWrapFind(PRBool aWrapFind) { return _to SetWrapFind(aWrapFind); } \
  133. NS_SCRIPTABLE NS_IMETHOD GetEntireWord(PRBool *aEntireWord) { return _to GetEntireWord(aEntireWord); } \
  134. NS_SCRIPTABLE NS_IMETHOD SetEntireWord(PRBool aEntireWord) { return _to SetEntireWord(aEntireWord); } \
  135. NS_SCRIPTABLE NS_IMETHOD GetMatchCase(PRBool *aMatchCase) { return _to GetMatchCase(aMatchCase); } \
  136. NS_SCRIPTABLE NS_IMETHOD SetMatchCase(PRBool aMatchCase) { return _to SetMatchCase(aMatchCase); } \
  137. NS_SCRIPTABLE NS_IMETHOD GetSearchFrames(PRBool *aSearchFrames) { return _to GetSearchFrames(aSearchFrames); } \
  138. NS_SCRIPTABLE NS_IMETHOD SetSearchFrames(PRBool aSearchFrames) { return _to SetSearchFrames(aSearchFrames); }
  139. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  140. #define NS_FORWARD_SAFE_NSIWEBBROWSERFIND(_to) \
  141. NS_SCRIPTABLE NS_IMETHOD FindNext(PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindNext(_retval); } \
  142. NS_SCRIPTABLE NS_IMETHOD GetSearchString(PRUnichar * *aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchString(aSearchString); } \
  143. NS_SCRIPTABLE NS_IMETHOD SetSearchString(const PRUnichar * aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchString(aSearchString); } \
  144. NS_SCRIPTABLE NS_IMETHOD GetFindBackwards(PRBool *aFindBackwards) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFindBackwards(aFindBackwards); } \
  145. NS_SCRIPTABLE NS_IMETHOD SetFindBackwards(PRBool aFindBackwards) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFindBackwards(aFindBackwards); } \
  146. NS_SCRIPTABLE NS_IMETHOD GetWrapFind(PRBool *aWrapFind) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWrapFind(aWrapFind); } \
  147. NS_SCRIPTABLE NS_IMETHOD SetWrapFind(PRBool aWrapFind) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetWrapFind(aWrapFind); } \
  148. NS_SCRIPTABLE NS_IMETHOD GetEntireWord(PRBool *aEntireWord) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetEntireWord(aEntireWord); } \
  149. NS_SCRIPTABLE NS_IMETHOD SetEntireWord(PRBool aEntireWord) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetEntireWord(aEntireWord); } \
  150. NS_SCRIPTABLE NS_IMETHOD GetMatchCase(PRBool *aMatchCase) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetMatchCase(aMatchCase); } \
  151. NS_SCRIPTABLE NS_IMETHOD SetMatchCase(PRBool aMatchCase) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetMatchCase(aMatchCase); } \
  152. NS_SCRIPTABLE NS_IMETHOD GetSearchFrames(PRBool *aSearchFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchFrames(aSearchFrames); } \
  153. NS_SCRIPTABLE NS_IMETHOD SetSearchFrames(PRBool aSearchFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchFrames(aSearchFrames); }
  154. #if 0
  155. /* Use the code below as a template for the implementation class for this interface. */
  156. /* Header file */
  157. class nsWebBrowserFind : public nsIWebBrowserFind
  158. {
  159. public:
  160. NS_DECL_ISUPPORTS
  161. NS_DECL_NSIWEBBROWSERFIND
  162. nsWebBrowserFind();
  163. private:
  164. ~nsWebBrowserFind();
  165. protected:
  166. /* additional members */
  167. };
  168. /* Implementation file */
  169. NS_IMPL_ISUPPORTS1(nsWebBrowserFind, nsIWebBrowserFind)
  170. nsWebBrowserFind::nsWebBrowserFind()
  171. {
  172. /* member initializers and constructor code */
  173. }
  174. nsWebBrowserFind::~nsWebBrowserFind()
  175. {
  176. /* destructor code */
  177. }
  178. /* boolean findNext (); */
  179. NS_IMETHODIMP nsWebBrowserFind::FindNext(PRBool *_retval)
  180. {
  181. return NS_ERROR_NOT_IMPLEMENTED;
  182. }
  183. /* attribute wstring searchString; */
  184. NS_IMETHODIMP nsWebBrowserFind::GetSearchString(PRUnichar * *aSearchString)
  185. {
  186. return NS_ERROR_NOT_IMPLEMENTED;
  187. }
  188. NS_IMETHODIMP nsWebBrowserFind::SetSearchString(const PRUnichar * aSearchString)
  189. {
  190. return NS_ERROR_NOT_IMPLEMENTED;
  191. }
  192. /* attribute boolean findBackwards; */
  193. NS_IMETHODIMP nsWebBrowserFind::GetFindBackwards(PRBool *aFindBackwards)
  194. {
  195. return NS_ERROR_NOT_IMPLEMENTED;
  196. }
  197. NS_IMETHODIMP nsWebBrowserFind::SetFindBackwards(PRBool aFindBackwards)
  198. {
  199. return NS_ERROR_NOT_IMPLEMENTED;
  200. }
  201. /* attribute boolean wrapFind; */
  202. NS_IMETHODIMP nsWebBrowserFind::GetWrapFind(PRBool *aWrapFind)
  203. {
  204. return NS_ERROR_NOT_IMPLEMENTED;
  205. }
  206. NS_IMETHODIMP nsWebBrowserFind::SetWrapFind(PRBool aWrapFind)
  207. {
  208. return NS_ERROR_NOT_IMPLEMENTED;
  209. }
  210. /* attribute boolean entireWord; */
  211. NS_IMETHODIMP nsWebBrowserFind::GetEntireWord(PRBool *aEntireWord)
  212. {
  213. return NS_ERROR_NOT_IMPLEMENTED;
  214. }
  215. NS_IMETHODIMP nsWebBrowserFind::SetEntireWord(PRBool aEntireWord)
  216. {
  217. return NS_ERROR_NOT_IMPLEMENTED;
  218. }
  219. /* attribute boolean matchCase; */
  220. NS_IMETHODIMP nsWebBrowserFind::GetMatchCase(PRBool *aMatchCase)
  221. {
  222. return NS_ERROR_NOT_IMPLEMENTED;
  223. }
  224. NS_IMETHODIMP nsWebBrowserFind::SetMatchCase(PRBool aMatchCase)
  225. {
  226. return NS_ERROR_NOT_IMPLEMENTED;
  227. }
  228. /* attribute boolean searchFrames; */
  229. NS_IMETHODIMP nsWebBrowserFind::GetSearchFrames(PRBool *aSearchFrames)
  230. {
  231. return NS_ERROR_NOT_IMPLEMENTED;
  232. }
  233. NS_IMETHODIMP nsWebBrowserFind::SetSearchFrames(PRBool aSearchFrames)
  234. {
  235. return NS_ERROR_NOT_IMPLEMENTED;
  236. }
  237. /* End of implementation class template. */
  238. #endif
  239. /* starting interface: nsIWebBrowserFindInFrames */
  240. #define NS_IWEBBROWSERFINDINFRAMES_IID_STR "e0f5d182-34bc-11d5-be5b-b760676c6ebc"
  241. #define NS_IWEBBROWSERFINDINFRAMES_IID \
  242. {0xe0f5d182, 0x34bc, 0x11d5, \
  243. { 0xbe, 0x5b, 0xb7, 0x60, 0x67, 0x6c, 0x6e, 0xbc }}
  244. /**
  245. * nsIWebBrowserFindInFrames
  246. *
  247. * Controls how find behaves when multiple frames or iframes are present.
  248. *
  249. * Get by doing a QueryInterface from nsIWebBrowserFind.
  250. *
  251. * @status FROZEN
  252. */
  253. class NS_NO_VTABLE NS_SCRIPTABLE nsIWebBrowserFindInFrames : public nsISupports {
  254. public:
  255. NS_DECLARE_STATIC_IID_ACCESSOR(NS_IWEBBROWSERFINDINFRAMES_IID)
  256. /**
  257. * currentSearchFrame
  258. *
  259. * Frame at which to start the search. Once the search is done, this will
  260. * be set to be the last frame searched, whether or not a result was found.
  261. * Has to be equal to or contained within the rootSearchFrame.
  262. */
  263. /* attribute nsIDOMWindow currentSearchFrame; */
  264. NS_SCRIPTABLE NS_IMETHOD GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame) = 0;
  265. NS_SCRIPTABLE NS_IMETHOD SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame) = 0;
  266. /**
  267. * rootSearchFrame
  268. *
  269. * Frame within which to confine the search (normally the content area frame).
  270. * Set this to only search a subtree of the frame hierarchy.
  271. */
  272. /* attribute nsIDOMWindow rootSearchFrame; */
  273. NS_SCRIPTABLE NS_IMETHOD GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame) = 0;
  274. NS_SCRIPTABLE NS_IMETHOD SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame) = 0;
  275. /**
  276. * searchSubframes
  277. *
  278. * Whether to recurse down into subframes while searching. Default is true.
  279. *
  280. * Setting nsIWebBrowserfind.searchFrames to true sets this to true.
  281. */
  282. /* attribute boolean searchSubframes; */
  283. NS_SCRIPTABLE NS_IMETHOD GetSearchSubframes(PRBool *aSearchSubframes) = 0;
  284. NS_SCRIPTABLE NS_IMETHOD SetSearchSubframes(PRBool aSearchSubframes) = 0;
  285. /**
  286. * searchParentFrames
  287. *
  288. * Whether to allow the search to propagate out of the currentSearchFrame into its
  289. * parent frame(s). Search is always confined within the rootSearchFrame. Default
  290. * is true.
  291. *
  292. * Setting nsIWebBrowserfind.searchFrames to true sets this to true.
  293. */
  294. /* attribute boolean searchParentFrames; */
  295. NS_SCRIPTABLE NS_IMETHOD GetSearchParentFrames(PRBool *aSearchParentFrames) = 0;
  296. NS_SCRIPTABLE NS_IMETHOD SetSearchParentFrames(PRBool aSearchParentFrames) = 0;
  297. };
  298. NS_DEFINE_STATIC_IID_ACCESSOR(nsIWebBrowserFindInFrames, NS_IWEBBROWSERFINDINFRAMES_IID)
  299. /* Use this macro when declaring classes that implement this interface. */
  300. #define NS_DECL_NSIWEBBROWSERFINDINFRAMES \
  301. NS_SCRIPTABLE NS_IMETHOD GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame); \
  302. NS_SCRIPTABLE NS_IMETHOD SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame); \
  303. NS_SCRIPTABLE NS_IMETHOD GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame); \
  304. NS_SCRIPTABLE NS_IMETHOD SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame); \
  305. NS_SCRIPTABLE NS_IMETHOD GetSearchSubframes(PRBool *aSearchSubframes); \
  306. NS_SCRIPTABLE NS_IMETHOD SetSearchSubframes(PRBool aSearchSubframes); \
  307. NS_SCRIPTABLE NS_IMETHOD GetSearchParentFrames(PRBool *aSearchParentFrames); \
  308. NS_SCRIPTABLE NS_IMETHOD SetSearchParentFrames(PRBool aSearchParentFrames);
  309. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  310. #define NS_FORWARD_NSIWEBBROWSERFINDINFRAMES(_to) \
  311. NS_SCRIPTABLE NS_IMETHOD GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame) { return _to GetCurrentSearchFrame(aCurrentSearchFrame); } \
  312. NS_SCRIPTABLE NS_IMETHOD SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame) { return _to SetCurrentSearchFrame(aCurrentSearchFrame); } \
  313. NS_SCRIPTABLE NS_IMETHOD GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame) { return _to GetRootSearchFrame(aRootSearchFrame); } \
  314. NS_SCRIPTABLE NS_IMETHOD SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame) { return _to SetRootSearchFrame(aRootSearchFrame); } \
  315. NS_SCRIPTABLE NS_IMETHOD GetSearchSubframes(PRBool *aSearchSubframes) { return _to GetSearchSubframes(aSearchSubframes); } \
  316. NS_SCRIPTABLE NS_IMETHOD SetSearchSubframes(PRBool aSearchSubframes) { return _to SetSearchSubframes(aSearchSubframes); } \
  317. NS_SCRIPTABLE NS_IMETHOD GetSearchParentFrames(PRBool *aSearchParentFrames) { return _to GetSearchParentFrames(aSearchParentFrames); } \
  318. NS_SCRIPTABLE NS_IMETHOD SetSearchParentFrames(PRBool aSearchParentFrames) { return _to SetSearchParentFrames(aSearchParentFrames); }
  319. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  320. #define NS_FORWARD_SAFE_NSIWEBBROWSERFINDINFRAMES(_to) \
  321. NS_SCRIPTABLE NS_IMETHOD GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentSearchFrame(aCurrentSearchFrame); } \
  322. NS_SCRIPTABLE NS_IMETHOD SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCurrentSearchFrame(aCurrentSearchFrame); } \
  323. NS_SCRIPTABLE NS_IMETHOD GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRootSearchFrame(aRootSearchFrame); } \
  324. NS_SCRIPTABLE NS_IMETHOD SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetRootSearchFrame(aRootSearchFrame); } \
  325. NS_SCRIPTABLE NS_IMETHOD GetSearchSubframes(PRBool *aSearchSubframes) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchSubframes(aSearchSubframes); } \
  326. NS_SCRIPTABLE NS_IMETHOD SetSearchSubframes(PRBool aSearchSubframes) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchSubframes(aSearchSubframes); } \
  327. NS_SCRIPTABLE NS_IMETHOD GetSearchParentFrames(PRBool *aSearchParentFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchParentFrames(aSearchParentFrames); } \
  328. NS_SCRIPTABLE NS_IMETHOD SetSearchParentFrames(PRBool aSearchParentFrames) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSearchParentFrames(aSearchParentFrames); }
  329. #if 0
  330. /* Use the code below as a template for the implementation class for this interface. */
  331. /* Header file */
  332. class nsWebBrowserFindInFrames : public nsIWebBrowserFindInFrames
  333. {
  334. public:
  335. NS_DECL_ISUPPORTS
  336. NS_DECL_NSIWEBBROWSERFINDINFRAMES
  337. nsWebBrowserFindInFrames();
  338. private:
  339. ~nsWebBrowserFindInFrames();
  340. protected:
  341. /* additional members */
  342. };
  343. /* Implementation file */
  344. NS_IMPL_ISUPPORTS1(nsWebBrowserFindInFrames, nsIWebBrowserFindInFrames)
  345. nsWebBrowserFindInFrames::nsWebBrowserFindInFrames()
  346. {
  347. /* member initializers and constructor code */
  348. }
  349. nsWebBrowserFindInFrames::~nsWebBrowserFindInFrames()
  350. {
  351. /* destructor code */
  352. }
  353. /* attribute nsIDOMWindow currentSearchFrame; */
  354. NS_IMETHODIMP nsWebBrowserFindInFrames::GetCurrentSearchFrame(nsIDOMWindow * *aCurrentSearchFrame)
  355. {
  356. return NS_ERROR_NOT_IMPLEMENTED;
  357. }
  358. NS_IMETHODIMP nsWebBrowserFindInFrames::SetCurrentSearchFrame(nsIDOMWindow * aCurrentSearchFrame)
  359. {
  360. return NS_ERROR_NOT_IMPLEMENTED;
  361. }
  362. /* attribute nsIDOMWindow rootSearchFrame; */
  363. NS_IMETHODIMP nsWebBrowserFindInFrames::GetRootSearchFrame(nsIDOMWindow * *aRootSearchFrame)
  364. {
  365. return NS_ERROR_NOT_IMPLEMENTED;
  366. }
  367. NS_IMETHODIMP nsWebBrowserFindInFrames::SetRootSearchFrame(nsIDOMWindow * aRootSearchFrame)
  368. {
  369. return NS_ERROR_NOT_IMPLEMENTED;
  370. }
  371. /* attribute boolean searchSubframes; */
  372. NS_IMETHODIMP nsWebBrowserFindInFrames::GetSearchSubframes(PRBool *aSearchSubframes)
  373. {
  374. return NS_ERROR_NOT_IMPLEMENTED;
  375. }
  376. NS_IMETHODIMP nsWebBrowserFindInFrames::SetSearchSubframes(PRBool aSearchSubframes)
  377. {
  378. return NS_ERROR_NOT_IMPLEMENTED;
  379. }
  380. /* attribute boolean searchParentFrames; */
  381. NS_IMETHODIMP nsWebBrowserFindInFrames::GetSearchParentFrames(PRBool *aSearchParentFrames)
  382. {
  383. return NS_ERROR_NOT_IMPLEMENTED;
  384. }
  385. NS_IMETHODIMP nsWebBrowserFindInFrames::SetSearchParentFrames(PRBool aSearchParentFrames)
  386. {
  387. return NS_ERROR_NOT_IMPLEMENTED;
  388. }
  389. /* End of implementation class template. */
  390. #endif
  391. #endif /* __gen_nsIWebBrowserFind_h__ */