/*
 * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIFindComponent.idl
 */

#ifndef __gen_nsIFindComponent_h__
#define __gen_nsIFindComponent_h__


#ifndef __gen_nsIEditorShell_h__
#include "nsIEditorShell.h"
#endif

/* For IDL files that don't want to include root IDL files. */
#ifndef NS_NO_VTABLE
#define NS_NO_VTABLE
#endif
class nsIDOMWindowInternal;
class nsIEditorShell;

/* starting interface:    nsIFindComponent */
#define NS_IFINDCOMPONENT_IID_STR "a6cf90ee-15b3-11d2-932e-00805f8add32"

#define NS_IFINDCOMPONENT_IID \
  {0xa6cf90ee, 0x15b3, 0x11d2, \
    { 0x93, 0x2e, 0x00, 0x80, 0x5f, 0x8a, 0xdd, 0x32 }}

class NS_NO_VTABLE nsIFindComponent : public nsISupports {
 public: 

  NS_DEFINE_STATIC_IID_ACCESSOR(NS_IFINDCOMPONENT_IID)

  /* nsISupports createContext (in nsIDOMWindowInternal aWindow, in nsIEditorShell aEditor); */
  NS_IMETHOD CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval) = 0;

  /* boolean find (in nsISupports aContext); */
  NS_IMETHOD Find(nsISupports *aContext, PRBool *_retval) = 0;

  /* boolean findNext (in nsISupports aContext); */
  NS_IMETHOD FindNext(nsISupports *aContext, PRBool *_retval) = 0;

  /* void replace (in nsISupports aContext); */
  NS_IMETHOD Replace(nsISupports *aContext) = 0;

  /* boolean replaceNext (in nsISupports aContext, in boolean allOccurrences); */
  NS_IMETHOD ReplaceNext(nsISupports *aContext, PRBool allOccurrences, PRBool *_retval) = 0;

  /* void resetContext (in nsISupports aContext, in nsIDOMWindowInternal aWindow, in nsIEditorShell aEditor); */
  NS_IMETHOD ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor) = 0;

};

/* Use this macro when declaring classes that implement this interface. */
#define NS_DECL_NSIFINDCOMPONENT \
  NS_IMETHOD CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval); \
  NS_IMETHOD Find(nsISupports *aContext, PRBool *_retval); \
  NS_IMETHOD FindNext(nsISupports *aContext, PRBool *_retval); \
  NS_IMETHOD Replace(nsISupports *aContext); \
  NS_IMETHOD ReplaceNext(nsISupports *aContext, PRBool allOccurrences, PRBool *_retval); \
  NS_IMETHOD ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor); 

/* Use this macro to declare functions that forward the behavior of this interface to another object. */
#define NS_FORWARD_NSIFINDCOMPONENT(_to) \
  NS_IMETHOD CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval) { return _to CreateContext(aWindow, aEditor, _retval); } \
  NS_IMETHOD Find(nsISupports *aContext, PRBool *_retval) { return _to Find(aContext, _retval); } \
  NS_IMETHOD FindNext(nsISupports *aContext, PRBool *_retval) { return _to FindNext(aContext, _retval); } \
  NS_IMETHOD Replace(nsISupports *aContext) { return _to Replace(aContext); } \
  NS_IMETHOD ReplaceNext(nsISupports *aContext, PRBool allOccurrences, PRBool *_retval) { return _to ReplaceNext(aContext, allOccurrences, _retval); } \
  NS_IMETHOD ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor) { return _to ResetContext(aContext, aWindow, aEditor); } 

/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
#define NS_FORWARD_SAFE_NSIFINDCOMPONENT(_to) \
  NS_IMETHOD CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateContext(aWindow, aEditor, _retval); } \
  NS_IMETHOD Find(nsISupports *aContext, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Find(aContext, _retval); } \
  NS_IMETHOD FindNext(nsISupports *aContext, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindNext(aContext, _retval); } \
  NS_IMETHOD Replace(nsISupports *aContext) { return !_to ? NS_ERROR_NULL_POINTER : _to->Replace(aContext); } \
  NS_IMETHOD ReplaceNext(nsISupports *aContext, PRBool allOccurrences, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ReplaceNext(aContext, allOccurrences, _retval); } \
  NS_IMETHOD ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor) { return !_to ? NS_ERROR_NULL_POINTER : _to->ResetContext(aContext, aWindow, aEditor); } 

#if 0
/* Use the code below as a template for the implementation class for this interface. */

/* Header file */
class nsFindComponent : public nsIFindComponent
{
public:
  NS_DECL_ISUPPORTS
  NS_DECL_NSIFINDCOMPONENT

  nsFindComponent();
  virtual ~nsFindComponent();
  /* additional members */
};

/* Implementation file */
NS_IMPL_ISUPPORTS1(nsFindComponent, nsIFindComponent)

nsFindComponent::nsFindComponent()
{
  NS_INIT_ISUPPORTS();
  /* member initializers and constructor code */
}

nsFindComponent::~nsFindComponent()
{
  /* destructor code */
}

/* nsISupports createContext (in nsIDOMWindowInternal aWindow, in nsIEditorShell aEditor); */
NS_IMETHODIMP nsFindComponent::CreateContext(nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor, nsISupports **_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean find (in nsISupports aContext); */
NS_IMETHODIMP nsFindComponent::Find(nsISupports *aContext, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean findNext (in nsISupports aContext); */
NS_IMETHODIMP nsFindComponent::FindNext(nsISupports *aContext, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void replace (in nsISupports aContext); */
NS_IMETHODIMP nsFindComponent::Replace(nsISupports *aContext)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* boolean replaceNext (in nsISupports aContext, in boolean allOccurrences); */
NS_IMETHODIMP nsFindComponent::ReplaceNext(nsISupports *aContext, PRBool allOccurrences, PRBool *_retval)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* void resetContext (in nsISupports aContext, in nsIDOMWindowInternal aWindow, in nsIEditorShell aEditor); */
NS_IMETHODIMP nsFindComponent::ResetContext(nsISupports *aContext, nsIDOMWindowInternal *aWindow, nsIEditorShell *aEditor)
{
    return NS_ERROR_NOT_IMPLEMENTED;
}

/* End of implementation class template. */
#endif

#define NS_IFINDCOMPONENT_CONTRACTID "@mozilla.org/appshell/component/find;1"
#define NS_IFINDCOMPONENT_CLASSNAME "Mozilla Find Component"

#endif /* __gen_nsIFindComponent_h__ */
