LCOV - code coverage report
Current view: directory - objdir/dist/include - nsITypeAheadFind.h (source / functions) Found Hit Coverage
Test: app.info Lines: 1 0 0.0 %
Date: 2012-06-02 Functions: 1 0 0.0 %

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/toolkit/components/typeaheadfind/nsITypeAheadFind.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsITypeAheadFind_h__
       6                 : #define __gen_nsITypeAheadFind_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_domstubs_h__
      10                 : #include "domstubs.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsISupports_h__
      14                 : #include "nsISupports.h"
      15                 : #endif
      16                 : 
      17                 : /* For IDL files that don't want to include root IDL files. */
      18                 : #ifndef NS_NO_VTABLE
      19                 : #define NS_NO_VTABLE
      20                 : #endif
      21                 : class nsIDocShell; /* forward declaration */
      22                 : 
      23                 : 
      24                 : /* starting interface:    nsITypeAheadFind */
      25                 : #define NS_ITYPEAHEADFIND_IID_STR "0749a445-19d3-4eb9-9d66-78eca8c6f604"
      26                 : 
      27                 : #define NS_ITYPEAHEADFIND_IID \
      28                 :   {0x0749a445, 0x19d3, 0x4eb9, \
      29                 :     { 0x9d, 0x66, 0x78, 0xec, 0xa8, 0xc6, 0xf6, 0x04 }}
      30                 : 
      31               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsITypeAheadFind : public nsISupports {
      32                 :  public: 
      33                 : 
      34                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITYPEAHEADFIND_IID)
      35                 : 
      36                 :   /* void init (in nsIDocShell aDocShell); */
      37                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIDocShell *aDocShell) = 0;
      38                 : 
      39                 :   /* unsigned short find (in AString aSearchString, in boolean aLinksOnly); */
      40                 :   NS_SCRIPTABLE NS_IMETHOD Find(const nsAString & aSearchString, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM) = 0;
      41                 : 
      42                 :   /* unsigned short findAgain (in boolean findBackwards, in boolean aLinksOnly); */
      43                 :   NS_SCRIPTABLE NS_IMETHOD FindAgain(bool findBackwards, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM) = 0;
      44                 : 
      45                 :   /* void setDocShell (in nsIDocShell aDocShell); */
      46                 :   NS_SCRIPTABLE NS_IMETHOD SetDocShell(nsIDocShell *aDocShell) = 0;
      47                 : 
      48                 :   /* void setSelectionModeAndRepaint (in short toggle); */
      49                 :   NS_SCRIPTABLE NS_IMETHOD SetSelectionModeAndRepaint(PRInt16 toggle) = 0;
      50                 : 
      51                 :   /* void collapseSelection (); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD CollapseSelection(void) = 0;
      53                 : 
      54                 :   /* readonly attribute AString searchString; */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) = 0;
      56                 : 
      57                 :   /* attribute boolean caseSensitive; */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) = 0;
      59                 :   NS_SCRIPTABLE NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) = 0;
      60                 : 
      61                 :   /* readonly attribute nsIDOMElement foundLink; */
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetFoundLink(nsIDOMElement * *aFoundLink) = 0;
      63                 : 
      64                 :   /* readonly attribute nsIDOMElement foundEditable; */
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetFoundEditable(nsIDOMElement * *aFoundEditable) = 0;
      66                 : 
      67                 :   /* readonly attribute nsIDOMWindow currentWindow; */
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentWindow(nsIDOMWindow * *aCurrentWindow) = 0;
      69                 : 
      70                 :   enum {
      71                 :     FIND_FOUND = 0U,
      72                 :     FIND_NOTFOUND = 1U,
      73                 :     FIND_WRAPPED = 2U
      74                 :   };
      75                 : 
      76                 : };
      77                 : 
      78                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITypeAheadFind, NS_ITYPEAHEADFIND_IID)
      79                 : 
      80                 : /* Use this macro when declaring classes that implement this interface. */
      81                 : #define NS_DECL_NSITYPEAHEADFIND \
      82                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIDocShell *aDocShell); \
      83                 :   NS_SCRIPTABLE NS_IMETHOD Find(const nsAString & aSearchString, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM); \
      84                 :   NS_SCRIPTABLE NS_IMETHOD FindAgain(bool findBackwards, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM); \
      85                 :   NS_SCRIPTABLE NS_IMETHOD SetDocShell(nsIDocShell *aDocShell); \
      86                 :   NS_SCRIPTABLE NS_IMETHOD SetSelectionModeAndRepaint(PRInt16 toggle); \
      87                 :   NS_SCRIPTABLE NS_IMETHOD CollapseSelection(void); \
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString); \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD SetCaseSensitive(bool aCaseSensitive); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetFoundLink(nsIDOMElement * *aFoundLink); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetFoundEditable(nsIDOMElement * *aFoundEditable); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentWindow(nsIDOMWindow * *aCurrentWindow); \
      94                 : 
      95                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      96                 : #define NS_FORWARD_NSITYPEAHEADFIND(_to) \
      97                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIDocShell *aDocShell) { return _to Init(aDocShell); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD Find(const nsAString & aSearchString, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM) { return _to Find(aSearchString, aLinksOnly, _retval); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD FindAgain(bool findBackwards, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM) { return _to FindAgain(findBackwards, aLinksOnly, _retval); } \
     100                 :   NS_SCRIPTABLE NS_IMETHOD SetDocShell(nsIDocShell *aDocShell) { return _to SetDocShell(aDocShell); } \
     101                 :   NS_SCRIPTABLE NS_IMETHOD SetSelectionModeAndRepaint(PRInt16 toggle) { return _to SetSelectionModeAndRepaint(toggle); } \
     102                 :   NS_SCRIPTABLE NS_IMETHOD CollapseSelection(void) { return _to CollapseSelection(); } \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) { return _to GetSearchString(aSearchString); } \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) { return _to GetCaseSensitive(aCaseSensitive); } \
     105                 :   NS_SCRIPTABLE NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) { return _to SetCaseSensitive(aCaseSensitive); } \
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetFoundLink(nsIDOMElement * *aFoundLink) { return _to GetFoundLink(aFoundLink); } \
     107                 :   NS_SCRIPTABLE NS_IMETHOD GetFoundEditable(nsIDOMElement * *aFoundEditable) { return _to GetFoundEditable(aFoundEditable); } \
     108                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentWindow(nsIDOMWindow * *aCurrentWindow) { return _to GetCurrentWindow(aCurrentWindow); } \
     109                 : 
     110                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     111                 : #define NS_FORWARD_SAFE_NSITYPEAHEADFIND(_to) \
     112                 :   NS_SCRIPTABLE NS_IMETHOD Init(nsIDocShell *aDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->Init(aDocShell); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD Find(const nsAString & aSearchString, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->Find(aSearchString, aLinksOnly, _retval); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD FindAgain(bool findBackwards, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindAgain(findBackwards, aLinksOnly, _retval); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD SetDocShell(nsIDocShell *aDocShell) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocShell(aDocShell); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD SetSelectionModeAndRepaint(PRInt16 toggle) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelectionModeAndRepaint(toggle); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD CollapseSelection(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->CollapseSelection(); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetSearchString(nsAString & aSearchString) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSearchString(aSearchString); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD GetCaseSensitive(bool *aCaseSensitive) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCaseSensitive(aCaseSensitive); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD SetCaseSensitive(bool aCaseSensitive) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCaseSensitive(aCaseSensitive); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD GetFoundLink(nsIDOMElement * *aFoundLink) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFoundLink(aFoundLink); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetFoundEditable(nsIDOMElement * *aFoundEditable) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFoundEditable(aFoundEditable); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrentWindow(nsIDOMWindow * *aCurrentWindow) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrentWindow(aCurrentWindow); } \
     124                 : 
     125                 : #if 0
     126                 : /* Use the code below as a template for the implementation class for this interface. */
     127                 : 
     128                 : /* Header file */
     129                 : class nsTypeAheadFind : public nsITypeAheadFind
     130                 : {
     131                 : public:
     132                 :   NS_DECL_ISUPPORTS
     133                 :   NS_DECL_NSITYPEAHEADFIND
     134                 : 
     135                 :   nsTypeAheadFind();
     136                 : 
     137                 : private:
     138                 :   ~nsTypeAheadFind();
     139                 : 
     140                 : protected:
     141                 :   /* additional members */
     142                 : };
     143                 : 
     144                 : /* Implementation file */
     145                 : NS_IMPL_ISUPPORTS1(nsTypeAheadFind, nsITypeAheadFind)
     146                 : 
     147                 : nsTypeAheadFind::nsTypeAheadFind()
     148                 : {
     149                 :   /* member initializers and constructor code */
     150                 : }
     151                 : 
     152                 : nsTypeAheadFind::~nsTypeAheadFind()
     153                 : {
     154                 :   /* destructor code */
     155                 : }
     156                 : 
     157                 : /* void init (in nsIDocShell aDocShell); */
     158                 : NS_IMETHODIMP nsTypeAheadFind::Init(nsIDocShell *aDocShell)
     159                 : {
     160                 :     return NS_ERROR_NOT_IMPLEMENTED;
     161                 : }
     162                 : 
     163                 : /* unsigned short find (in AString aSearchString, in boolean aLinksOnly); */
     164                 : NS_IMETHODIMP nsTypeAheadFind::Find(const nsAString & aSearchString, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM)
     165                 : {
     166                 :     return NS_ERROR_NOT_IMPLEMENTED;
     167                 : }
     168                 : 
     169                 : /* unsigned short findAgain (in boolean findBackwards, in boolean aLinksOnly); */
     170                 : NS_IMETHODIMP nsTypeAheadFind::FindAgain(bool findBackwards, bool aLinksOnly, PRUint16 *_retval NS_OUTPARAM)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : 
     175                 : /* void setDocShell (in nsIDocShell aDocShell); */
     176                 : NS_IMETHODIMP nsTypeAheadFind::SetDocShell(nsIDocShell *aDocShell)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : 
     181                 : /* void setSelectionModeAndRepaint (in short toggle); */
     182                 : NS_IMETHODIMP nsTypeAheadFind::SetSelectionModeAndRepaint(PRInt16 toggle)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* void collapseSelection (); */
     188                 : NS_IMETHODIMP nsTypeAheadFind::CollapseSelection()
     189                 : {
     190                 :     return NS_ERROR_NOT_IMPLEMENTED;
     191                 : }
     192                 : 
     193                 : /* readonly attribute AString searchString; */
     194                 : NS_IMETHODIMP nsTypeAheadFind::GetSearchString(nsAString & aSearchString)
     195                 : {
     196                 :     return NS_ERROR_NOT_IMPLEMENTED;
     197                 : }
     198                 : 
     199                 : /* attribute boolean caseSensitive; */
     200                 : NS_IMETHODIMP nsTypeAheadFind::GetCaseSensitive(bool *aCaseSensitive)
     201                 : {
     202                 :     return NS_ERROR_NOT_IMPLEMENTED;
     203                 : }
     204                 : NS_IMETHODIMP nsTypeAheadFind::SetCaseSensitive(bool aCaseSensitive)
     205                 : {
     206                 :     return NS_ERROR_NOT_IMPLEMENTED;
     207                 : }
     208                 : 
     209                 : /* readonly attribute nsIDOMElement foundLink; */
     210                 : NS_IMETHODIMP nsTypeAheadFind::GetFoundLink(nsIDOMElement * *aFoundLink)
     211                 : {
     212                 :     return NS_ERROR_NOT_IMPLEMENTED;
     213                 : }
     214                 : 
     215                 : /* readonly attribute nsIDOMElement foundEditable; */
     216                 : NS_IMETHODIMP nsTypeAheadFind::GetFoundEditable(nsIDOMElement * *aFoundEditable)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* readonly attribute nsIDOMWindow currentWindow; */
     222                 : NS_IMETHODIMP nsTypeAheadFind::GetCurrentWindow(nsIDOMWindow * *aCurrentWindow)
     223                 : {
     224                 :     return NS_ERROR_NOT_IMPLEMENTED;
     225                 : }
     226                 : 
     227                 : /* End of implementation class template. */
     228                 : #endif
     229                 : 
     230                 : 
     231                 : #endif /* __gen_nsITypeAheadFind_h__ */

Generated by: LCOV version 1.7