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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/layout/xul/base/src/tree/public/nsITreeView.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsITreeView_h__
       6                 : #define __gen_nsITreeView_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsITreeBoxObject_h__
      10                 : #include "nsITreeBoxObject.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_nsISupportsArray_h__
      14                 : #include "nsISupportsArray.h"
      15                 : #endif
      16                 : 
      17                 : #ifndef __gen_domstubs_h__
      18                 : #include "domstubs.h"
      19                 : #endif
      20                 : 
      21                 : /* For IDL files that don't want to include root IDL files. */
      22                 : #ifndef NS_NO_VTABLE
      23                 : #define NS_NO_VTABLE
      24                 : #endif
      25                 : class nsITreeSelection; /* forward declaration */
      26                 : 
      27                 : class nsITreeColumn; /* forward declaration */
      28                 : 
      29                 : class nsIDOMDataTransfer; /* forward declaration */
      30                 : 
      31                 : 
      32                 : /* starting interface:    nsITreeView */
      33                 : #define NS_ITREEVIEW_IID_STR "c06dc4d3-63a2-4422-a0a3-5f2eddeca8c1"
      34                 : 
      35                 : #define NS_ITREEVIEW_IID \
      36                 :   {0xc06dc4d3, 0x63a2, 0x4422, \
      37                 :     { 0xa0, 0xa3, 0x5f, 0x2e, 0xdd, 0xec, 0xa8, 0xc1 }}
      38                 : 
      39              41 : class NS_NO_VTABLE NS_SCRIPTABLE nsITreeView : public nsISupports {
      40                 :  public: 
      41                 : 
      42                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITREEVIEW_IID)
      43                 : 
      44                 :   /* readonly attribute long rowCount; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *aRowCount) = 0;
      46                 : 
      47                 :   /* attribute nsITreeSelection selection; */
      48                 :   NS_SCRIPTABLE NS_IMETHOD GetSelection(nsITreeSelection * *aSelection) = 0;
      49                 :   NS_SCRIPTABLE NS_IMETHOD SetSelection(nsITreeSelection *aSelection) = 0;
      50                 : 
      51                 :   /* void getRowProperties (in long index, in nsISupportsArray properties); */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetRowProperties(PRInt32 index, nsISupportsArray *properties) = 0;
      53                 : 
      54                 :   /* void getCellProperties (in long row, in nsITreeColumn col, in nsISupportsArray properties); */
      55                 :   NS_SCRIPTABLE NS_IMETHOD GetCellProperties(PRInt32 row, nsITreeColumn *col, nsISupportsArray *properties) = 0;
      56                 : 
      57                 :   /* void getColumnProperties (in nsITreeColumn col, in nsISupportsArray properties); */
      58                 :   NS_SCRIPTABLE NS_IMETHOD GetColumnProperties(nsITreeColumn *col, nsISupportsArray *properties) = 0;
      59                 : 
      60                 :   /* boolean isContainer (in long index); */
      61                 :   NS_SCRIPTABLE NS_IMETHOD IsContainer(PRInt32 index, bool *_retval NS_OUTPARAM) = 0;
      62                 : 
      63                 :   /* boolean isContainerOpen (in long index); */
      64                 :   NS_SCRIPTABLE NS_IMETHOD IsContainerOpen(PRInt32 index, bool *_retval NS_OUTPARAM) = 0;
      65                 : 
      66                 :   /* boolean isContainerEmpty (in long index); */
      67                 :   NS_SCRIPTABLE NS_IMETHOD IsContainerEmpty(PRInt32 index, bool *_retval NS_OUTPARAM) = 0;
      68                 : 
      69                 :   /* boolean isSeparator (in long index); */
      70                 :   NS_SCRIPTABLE NS_IMETHOD IsSeparator(PRInt32 index, bool *_retval NS_OUTPARAM) = 0;
      71                 : 
      72                 :   /* boolean isSorted (); */
      73                 :   NS_SCRIPTABLE NS_IMETHOD IsSorted(bool *_retval NS_OUTPARAM) = 0;
      74                 : 
      75                 :   enum {
      76                 :     DROP_BEFORE = -1,
      77                 :     DROP_ON = 0,
      78                 :     DROP_AFTER = 1
      79                 :   };
      80                 : 
      81                 :   /* boolean canDrop (in long index, in long orientation, in nsIDOMDataTransfer dataTransfer); */
      82                 :   NS_SCRIPTABLE NS_IMETHOD CanDrop(PRInt32 index, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer, bool *_retval NS_OUTPARAM) = 0;
      83                 : 
      84                 :   /* void drop (in long row, in long orientation, in nsIDOMDataTransfer dataTransfer); */
      85                 :   NS_SCRIPTABLE NS_IMETHOD Drop(PRInt32 row, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer) = 0;
      86                 : 
      87                 :   /* long getParentIndex (in long rowIndex); */
      88                 :   NS_SCRIPTABLE NS_IMETHOD GetParentIndex(PRInt32 rowIndex, PRInt32 *_retval NS_OUTPARAM) = 0;
      89                 : 
      90                 :   /* boolean hasNextSibling (in long rowIndex, in long afterIndex); */
      91                 :   NS_SCRIPTABLE NS_IMETHOD HasNextSibling(PRInt32 rowIndex, PRInt32 afterIndex, bool *_retval NS_OUTPARAM) = 0;
      92                 : 
      93                 :   /* long getLevel (in long index); */
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetLevel(PRInt32 index, PRInt32 *_retval NS_OUTPARAM) = 0;
      95                 : 
      96                 :   /* AString getImageSrc (in long row, in nsITreeColumn col); */
      97                 :   NS_SCRIPTABLE NS_IMETHOD GetImageSrc(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) = 0;
      98                 : 
      99                 :   enum {
     100                 :     PROGRESS_NORMAL = 1,
     101                 :     PROGRESS_UNDETERMINED = 2,
     102                 :     PROGRESS_NONE = 3
     103                 :   };
     104                 : 
     105                 :   /* long getProgressMode (in long row, in nsITreeColumn col); */
     106                 :   NS_SCRIPTABLE NS_IMETHOD GetProgressMode(PRInt32 row, nsITreeColumn *col, PRInt32 *_retval NS_OUTPARAM) = 0;
     107                 : 
     108                 :   /* AString getCellValue (in long row, in nsITreeColumn col); */
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetCellValue(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) = 0;
     110                 : 
     111                 :   /* AString getCellText (in long row, in nsITreeColumn col); */
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetCellText(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) = 0;
     113                 : 
     114                 :   /* void setTree (in nsITreeBoxObject tree); */
     115                 :   NS_SCRIPTABLE NS_IMETHOD SetTree(nsITreeBoxObject *tree) = 0;
     116                 : 
     117                 :   /* void toggleOpenState (in long index); */
     118                 :   NS_SCRIPTABLE NS_IMETHOD ToggleOpenState(PRInt32 index) = 0;
     119                 : 
     120                 :   /* void cycleHeader (in nsITreeColumn col); */
     121                 :   NS_SCRIPTABLE NS_IMETHOD CycleHeader(nsITreeColumn *col) = 0;
     122                 : 
     123                 :   /* void selectionChanged (); */
     124                 :   NS_SCRIPTABLE NS_IMETHOD SelectionChanged(void) = 0;
     125                 : 
     126                 :   /* void cycleCell (in long row, in nsITreeColumn col); */
     127                 :   NS_SCRIPTABLE NS_IMETHOD CycleCell(PRInt32 row, nsITreeColumn *col) = 0;
     128                 : 
     129                 :   /* boolean isEditable (in long row, in nsITreeColumn col); */
     130                 :   NS_SCRIPTABLE NS_IMETHOD IsEditable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) = 0;
     131                 : 
     132                 :   /* boolean isSelectable (in long row, in nsITreeColumn col); */
     133                 :   NS_SCRIPTABLE NS_IMETHOD IsSelectable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) = 0;
     134                 : 
     135                 :   /* void setCellValue (in long row, in nsITreeColumn col, in AString value); */
     136                 :   NS_SCRIPTABLE NS_IMETHOD SetCellValue(PRInt32 row, nsITreeColumn *col, const nsAString & value) = 0;
     137                 : 
     138                 :   /* void setCellText (in long row, in nsITreeColumn col, in AString value); */
     139                 :   NS_SCRIPTABLE NS_IMETHOD SetCellText(PRInt32 row, nsITreeColumn *col, const nsAString & value) = 0;
     140                 : 
     141                 :   /* void performAction (in wstring action); */
     142                 :   NS_SCRIPTABLE NS_IMETHOD PerformAction(const PRUnichar * action) = 0;
     143                 : 
     144                 :   /* void performActionOnRow (in wstring action, in long row); */
     145                 :   NS_SCRIPTABLE NS_IMETHOD PerformActionOnRow(const PRUnichar * action, PRInt32 row) = 0;
     146                 : 
     147                 :   /* void performActionOnCell (in wstring action, in long row, in nsITreeColumn col); */
     148                 :   NS_SCRIPTABLE NS_IMETHOD PerformActionOnCell(const PRUnichar * action, PRInt32 row, nsITreeColumn *col) = 0;
     149                 : 
     150                 : };
     151                 : 
     152                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITreeView, NS_ITREEVIEW_IID)
     153                 : 
     154                 : /* Use this macro when declaring classes that implement this interface. */
     155                 : #define NS_DECL_NSITREEVIEW \
     156                 :   NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *aRowCount); \
     157                 :   NS_SCRIPTABLE NS_IMETHOD GetSelection(nsITreeSelection * *aSelection); \
     158                 :   NS_SCRIPTABLE NS_IMETHOD SetSelection(nsITreeSelection *aSelection); \
     159                 :   NS_SCRIPTABLE NS_IMETHOD GetRowProperties(PRInt32 index, nsISupportsArray *properties); \
     160                 :   NS_SCRIPTABLE NS_IMETHOD GetCellProperties(PRInt32 row, nsITreeColumn *col, nsISupportsArray *properties); \
     161                 :   NS_SCRIPTABLE NS_IMETHOD GetColumnProperties(nsITreeColumn *col, nsISupportsArray *properties); \
     162                 :   NS_SCRIPTABLE NS_IMETHOD IsContainer(PRInt32 index, bool *_retval NS_OUTPARAM); \
     163                 :   NS_SCRIPTABLE NS_IMETHOD IsContainerOpen(PRInt32 index, bool *_retval NS_OUTPARAM); \
     164                 :   NS_SCRIPTABLE NS_IMETHOD IsContainerEmpty(PRInt32 index, bool *_retval NS_OUTPARAM); \
     165                 :   NS_SCRIPTABLE NS_IMETHOD IsSeparator(PRInt32 index, bool *_retval NS_OUTPARAM); \
     166                 :   NS_SCRIPTABLE NS_IMETHOD IsSorted(bool *_retval NS_OUTPARAM); \
     167                 :   NS_SCRIPTABLE NS_IMETHOD CanDrop(PRInt32 index, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer, bool *_retval NS_OUTPARAM); \
     168                 :   NS_SCRIPTABLE NS_IMETHOD Drop(PRInt32 row, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer); \
     169                 :   NS_SCRIPTABLE NS_IMETHOD GetParentIndex(PRInt32 rowIndex, PRInt32 *_retval NS_OUTPARAM); \
     170                 :   NS_SCRIPTABLE NS_IMETHOD HasNextSibling(PRInt32 rowIndex, PRInt32 afterIndex, bool *_retval NS_OUTPARAM); \
     171                 :   NS_SCRIPTABLE NS_IMETHOD GetLevel(PRInt32 index, PRInt32 *_retval NS_OUTPARAM); \
     172                 :   NS_SCRIPTABLE NS_IMETHOD GetImageSrc(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM); \
     173                 :   NS_SCRIPTABLE NS_IMETHOD GetProgressMode(PRInt32 row, nsITreeColumn *col, PRInt32 *_retval NS_OUTPARAM); \
     174                 :   NS_SCRIPTABLE NS_IMETHOD GetCellValue(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM); \
     175                 :   NS_SCRIPTABLE NS_IMETHOD GetCellText(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM); \
     176                 :   NS_SCRIPTABLE NS_IMETHOD SetTree(nsITreeBoxObject *tree); \
     177                 :   NS_SCRIPTABLE NS_IMETHOD ToggleOpenState(PRInt32 index); \
     178                 :   NS_SCRIPTABLE NS_IMETHOD CycleHeader(nsITreeColumn *col); \
     179                 :   NS_SCRIPTABLE NS_IMETHOD SelectionChanged(void); \
     180                 :   NS_SCRIPTABLE NS_IMETHOD CycleCell(PRInt32 row, nsITreeColumn *col); \
     181                 :   NS_SCRIPTABLE NS_IMETHOD IsEditable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM); \
     182                 :   NS_SCRIPTABLE NS_IMETHOD IsSelectable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM); \
     183                 :   NS_SCRIPTABLE NS_IMETHOD SetCellValue(PRInt32 row, nsITreeColumn *col, const nsAString & value); \
     184                 :   NS_SCRIPTABLE NS_IMETHOD SetCellText(PRInt32 row, nsITreeColumn *col, const nsAString & value); \
     185                 :   NS_SCRIPTABLE NS_IMETHOD PerformAction(const PRUnichar * action); \
     186                 :   NS_SCRIPTABLE NS_IMETHOD PerformActionOnRow(const PRUnichar * action, PRInt32 row); \
     187                 :   NS_SCRIPTABLE NS_IMETHOD PerformActionOnCell(const PRUnichar * action, PRInt32 row, nsITreeColumn *col); 
     188                 : 
     189                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     190                 : #define NS_FORWARD_NSITREEVIEW(_to) \
     191                 :   NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *aRowCount) { return _to GetRowCount(aRowCount); } \
     192                 :   NS_SCRIPTABLE NS_IMETHOD GetSelection(nsITreeSelection * *aSelection) { return _to GetSelection(aSelection); } \
     193                 :   NS_SCRIPTABLE NS_IMETHOD SetSelection(nsITreeSelection *aSelection) { return _to SetSelection(aSelection); } \
     194                 :   NS_SCRIPTABLE NS_IMETHOD GetRowProperties(PRInt32 index, nsISupportsArray *properties) { return _to GetRowProperties(index, properties); } \
     195                 :   NS_SCRIPTABLE NS_IMETHOD GetCellProperties(PRInt32 row, nsITreeColumn *col, nsISupportsArray *properties) { return _to GetCellProperties(row, col, properties); } \
     196                 :   NS_SCRIPTABLE NS_IMETHOD GetColumnProperties(nsITreeColumn *col, nsISupportsArray *properties) { return _to GetColumnProperties(col, properties); } \
     197                 :   NS_SCRIPTABLE NS_IMETHOD IsContainer(PRInt32 index, bool *_retval NS_OUTPARAM) { return _to IsContainer(index, _retval); } \
     198                 :   NS_SCRIPTABLE NS_IMETHOD IsContainerOpen(PRInt32 index, bool *_retval NS_OUTPARAM) { return _to IsContainerOpen(index, _retval); } \
     199                 :   NS_SCRIPTABLE NS_IMETHOD IsContainerEmpty(PRInt32 index, bool *_retval NS_OUTPARAM) { return _to IsContainerEmpty(index, _retval); } \
     200                 :   NS_SCRIPTABLE NS_IMETHOD IsSeparator(PRInt32 index, bool *_retval NS_OUTPARAM) { return _to IsSeparator(index, _retval); } \
     201                 :   NS_SCRIPTABLE NS_IMETHOD IsSorted(bool *_retval NS_OUTPARAM) { return _to IsSorted(_retval); } \
     202                 :   NS_SCRIPTABLE NS_IMETHOD CanDrop(PRInt32 index, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer, bool *_retval NS_OUTPARAM) { return _to CanDrop(index, orientation, dataTransfer, _retval); } \
     203                 :   NS_SCRIPTABLE NS_IMETHOD Drop(PRInt32 row, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer) { return _to Drop(row, orientation, dataTransfer); } \
     204                 :   NS_SCRIPTABLE NS_IMETHOD GetParentIndex(PRInt32 rowIndex, PRInt32 *_retval NS_OUTPARAM) { return _to GetParentIndex(rowIndex, _retval); } \
     205                 :   NS_SCRIPTABLE NS_IMETHOD HasNextSibling(PRInt32 rowIndex, PRInt32 afterIndex, bool *_retval NS_OUTPARAM) { return _to HasNextSibling(rowIndex, afterIndex, _retval); } \
     206                 :   NS_SCRIPTABLE NS_IMETHOD GetLevel(PRInt32 index, PRInt32 *_retval NS_OUTPARAM) { return _to GetLevel(index, _retval); } \
     207                 :   NS_SCRIPTABLE NS_IMETHOD GetImageSrc(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) { return _to GetImageSrc(row, col, _retval); } \
     208                 :   NS_SCRIPTABLE NS_IMETHOD GetProgressMode(PRInt32 row, nsITreeColumn *col, PRInt32 *_retval NS_OUTPARAM) { return _to GetProgressMode(row, col, _retval); } \
     209                 :   NS_SCRIPTABLE NS_IMETHOD GetCellValue(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) { return _to GetCellValue(row, col, _retval); } \
     210                 :   NS_SCRIPTABLE NS_IMETHOD GetCellText(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) { return _to GetCellText(row, col, _retval); } \
     211                 :   NS_SCRIPTABLE NS_IMETHOD SetTree(nsITreeBoxObject *tree) { return _to SetTree(tree); } \
     212                 :   NS_SCRIPTABLE NS_IMETHOD ToggleOpenState(PRInt32 index) { return _to ToggleOpenState(index); } \
     213                 :   NS_SCRIPTABLE NS_IMETHOD CycleHeader(nsITreeColumn *col) { return _to CycleHeader(col); } \
     214                 :   NS_SCRIPTABLE NS_IMETHOD SelectionChanged(void) { return _to SelectionChanged(); } \
     215                 :   NS_SCRIPTABLE NS_IMETHOD CycleCell(PRInt32 row, nsITreeColumn *col) { return _to CycleCell(row, col); } \
     216                 :   NS_SCRIPTABLE NS_IMETHOD IsEditable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) { return _to IsEditable(row, col, _retval); } \
     217                 :   NS_SCRIPTABLE NS_IMETHOD IsSelectable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) { return _to IsSelectable(row, col, _retval); } \
     218                 :   NS_SCRIPTABLE NS_IMETHOD SetCellValue(PRInt32 row, nsITreeColumn *col, const nsAString & value) { return _to SetCellValue(row, col, value); } \
     219                 :   NS_SCRIPTABLE NS_IMETHOD SetCellText(PRInt32 row, nsITreeColumn *col, const nsAString & value) { return _to SetCellText(row, col, value); } \
     220                 :   NS_SCRIPTABLE NS_IMETHOD PerformAction(const PRUnichar * action) { return _to PerformAction(action); } \
     221                 :   NS_SCRIPTABLE NS_IMETHOD PerformActionOnRow(const PRUnichar * action, PRInt32 row) { return _to PerformActionOnRow(action, row); } \
     222                 :   NS_SCRIPTABLE NS_IMETHOD PerformActionOnCell(const PRUnichar * action, PRInt32 row, nsITreeColumn *col) { return _to PerformActionOnCell(action, row, col); } 
     223                 : 
     224                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     225                 : #define NS_FORWARD_SAFE_NSITREEVIEW(_to) \
     226                 :   NS_SCRIPTABLE NS_IMETHOD GetRowCount(PRInt32 *aRowCount) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowCount(aRowCount); } \
     227                 :   NS_SCRIPTABLE NS_IMETHOD GetSelection(nsITreeSelection * *aSelection) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelection(aSelection); } \
     228                 :   NS_SCRIPTABLE NS_IMETHOD SetSelection(nsITreeSelection *aSelection) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetSelection(aSelection); } \
     229                 :   NS_SCRIPTABLE NS_IMETHOD GetRowProperties(PRInt32 index, nsISupportsArray *properties) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowProperties(index, properties); } \
     230                 :   NS_SCRIPTABLE NS_IMETHOD GetCellProperties(PRInt32 row, nsITreeColumn *col, nsISupportsArray *properties) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCellProperties(row, col, properties); } \
     231                 :   NS_SCRIPTABLE NS_IMETHOD GetColumnProperties(nsITreeColumn *col, nsISupportsArray *properties) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumnProperties(col, properties); } \
     232                 :   NS_SCRIPTABLE NS_IMETHOD IsContainer(PRInt32 index, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsContainer(index, _retval); } \
     233                 :   NS_SCRIPTABLE NS_IMETHOD IsContainerOpen(PRInt32 index, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsContainerOpen(index, _retval); } \
     234                 :   NS_SCRIPTABLE NS_IMETHOD IsContainerEmpty(PRInt32 index, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsContainerEmpty(index, _retval); } \
     235                 :   NS_SCRIPTABLE NS_IMETHOD IsSeparator(PRInt32 index, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSeparator(index, _retval); } \
     236                 :   NS_SCRIPTABLE NS_IMETHOD IsSorted(bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSorted(_retval); } \
     237                 :   NS_SCRIPTABLE NS_IMETHOD CanDrop(PRInt32 index, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->CanDrop(index, orientation, dataTransfer, _retval); } \
     238                 :   NS_SCRIPTABLE NS_IMETHOD Drop(PRInt32 row, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer) { return !_to ? NS_ERROR_NULL_POINTER : _to->Drop(row, orientation, dataTransfer); } \
     239                 :   NS_SCRIPTABLE NS_IMETHOD GetParentIndex(PRInt32 rowIndex, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentIndex(rowIndex, _retval); } \
     240                 :   NS_SCRIPTABLE NS_IMETHOD HasNextSibling(PRInt32 rowIndex, PRInt32 afterIndex, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->HasNextSibling(rowIndex, afterIndex, _retval); } \
     241                 :   NS_SCRIPTABLE NS_IMETHOD GetLevel(PRInt32 index, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLevel(index, _retval); } \
     242                 :   NS_SCRIPTABLE NS_IMETHOD GetImageSrc(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetImageSrc(row, col, _retval); } \
     243                 :   NS_SCRIPTABLE NS_IMETHOD GetProgressMode(PRInt32 row, nsITreeColumn *col, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProgressMode(row, col, _retval); } \
     244                 :   NS_SCRIPTABLE NS_IMETHOD GetCellValue(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCellValue(row, col, _retval); } \
     245                 :   NS_SCRIPTABLE NS_IMETHOD GetCellText(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCellText(row, col, _retval); } \
     246                 :   NS_SCRIPTABLE NS_IMETHOD SetTree(nsITreeBoxObject *tree) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetTree(tree); } \
     247                 :   NS_SCRIPTABLE NS_IMETHOD ToggleOpenState(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->ToggleOpenState(index); } \
     248                 :   NS_SCRIPTABLE NS_IMETHOD CycleHeader(nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->CycleHeader(col); } \
     249                 :   NS_SCRIPTABLE NS_IMETHOD SelectionChanged(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->SelectionChanged(); } \
     250                 :   NS_SCRIPTABLE NS_IMETHOD CycleCell(PRInt32 row, nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->CycleCell(row, col); } \
     251                 :   NS_SCRIPTABLE NS_IMETHOD IsEditable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsEditable(row, col, _retval); } \
     252                 :   NS_SCRIPTABLE NS_IMETHOD IsSelectable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsSelectable(row, col, _retval); } \
     253                 :   NS_SCRIPTABLE NS_IMETHOD SetCellValue(PRInt32 row, nsITreeColumn *col, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCellValue(row, col, value); } \
     254                 :   NS_SCRIPTABLE NS_IMETHOD SetCellText(PRInt32 row, nsITreeColumn *col, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCellText(row, col, value); } \
     255                 :   NS_SCRIPTABLE NS_IMETHOD PerformAction(const PRUnichar * action) { return !_to ? NS_ERROR_NULL_POINTER : _to->PerformAction(action); } \
     256                 :   NS_SCRIPTABLE NS_IMETHOD PerformActionOnRow(const PRUnichar * action, PRInt32 row) { return !_to ? NS_ERROR_NULL_POINTER : _to->PerformActionOnRow(action, row); } \
     257                 :   NS_SCRIPTABLE NS_IMETHOD PerformActionOnCell(const PRUnichar * action, PRInt32 row, nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->PerformActionOnCell(action, row, col); } 
     258                 : 
     259                 : #if 0
     260                 : /* Use the code below as a template for the implementation class for this interface. */
     261                 : 
     262                 : /* Header file */
     263                 : class nsTreeView : public nsITreeView
     264                 : {
     265                 : public:
     266                 :   NS_DECL_ISUPPORTS
     267                 :   NS_DECL_NSITREEVIEW
     268                 : 
     269                 :   nsTreeView();
     270                 : 
     271                 : private:
     272                 :   ~nsTreeView();
     273                 : 
     274                 : protected:
     275                 :   /* additional members */
     276                 : };
     277                 : 
     278                 : /* Implementation file */
     279                 : NS_IMPL_ISUPPORTS1(nsTreeView, nsITreeView)
     280                 : 
     281                 : nsTreeView::nsTreeView()
     282                 : {
     283                 :   /* member initializers and constructor code */
     284                 : }
     285                 : 
     286                 : nsTreeView::~nsTreeView()
     287                 : {
     288                 :   /* destructor code */
     289                 : }
     290                 : 
     291                 : /* readonly attribute long rowCount; */
     292                 : NS_IMETHODIMP nsTreeView::GetRowCount(PRInt32 *aRowCount)
     293                 : {
     294                 :     return NS_ERROR_NOT_IMPLEMENTED;
     295                 : }
     296                 : 
     297                 : /* attribute nsITreeSelection selection; */
     298                 : NS_IMETHODIMP nsTreeView::GetSelection(nsITreeSelection * *aSelection)
     299                 : {
     300                 :     return NS_ERROR_NOT_IMPLEMENTED;
     301                 : }
     302                 : NS_IMETHODIMP nsTreeView::SetSelection(nsITreeSelection *aSelection)
     303                 : {
     304                 :     return NS_ERROR_NOT_IMPLEMENTED;
     305                 : }
     306                 : 
     307                 : /* void getRowProperties (in long index, in nsISupportsArray properties); */
     308                 : NS_IMETHODIMP nsTreeView::GetRowProperties(PRInt32 index, nsISupportsArray *properties)
     309                 : {
     310                 :     return NS_ERROR_NOT_IMPLEMENTED;
     311                 : }
     312                 : 
     313                 : /* void getCellProperties (in long row, in nsITreeColumn col, in nsISupportsArray properties); */
     314                 : NS_IMETHODIMP nsTreeView::GetCellProperties(PRInt32 row, nsITreeColumn *col, nsISupportsArray *properties)
     315                 : {
     316                 :     return NS_ERROR_NOT_IMPLEMENTED;
     317                 : }
     318                 : 
     319                 : /* void getColumnProperties (in nsITreeColumn col, in nsISupportsArray properties); */
     320                 : NS_IMETHODIMP nsTreeView::GetColumnProperties(nsITreeColumn *col, nsISupportsArray *properties)
     321                 : {
     322                 :     return NS_ERROR_NOT_IMPLEMENTED;
     323                 : }
     324                 : 
     325                 : /* boolean isContainer (in long index); */
     326                 : NS_IMETHODIMP nsTreeView::IsContainer(PRInt32 index, bool *_retval NS_OUTPARAM)
     327                 : {
     328                 :     return NS_ERROR_NOT_IMPLEMENTED;
     329                 : }
     330                 : 
     331                 : /* boolean isContainerOpen (in long index); */
     332                 : NS_IMETHODIMP nsTreeView::IsContainerOpen(PRInt32 index, bool *_retval NS_OUTPARAM)
     333                 : {
     334                 :     return NS_ERROR_NOT_IMPLEMENTED;
     335                 : }
     336                 : 
     337                 : /* boolean isContainerEmpty (in long index); */
     338                 : NS_IMETHODIMP nsTreeView::IsContainerEmpty(PRInt32 index, bool *_retval NS_OUTPARAM)
     339                 : {
     340                 :     return NS_ERROR_NOT_IMPLEMENTED;
     341                 : }
     342                 : 
     343                 : /* boolean isSeparator (in long index); */
     344                 : NS_IMETHODIMP nsTreeView::IsSeparator(PRInt32 index, bool *_retval NS_OUTPARAM)
     345                 : {
     346                 :     return NS_ERROR_NOT_IMPLEMENTED;
     347                 : }
     348                 : 
     349                 : /* boolean isSorted (); */
     350                 : NS_IMETHODIMP nsTreeView::IsSorted(bool *_retval NS_OUTPARAM)
     351                 : {
     352                 :     return NS_ERROR_NOT_IMPLEMENTED;
     353                 : }
     354                 : 
     355                 : /* boolean canDrop (in long index, in long orientation, in nsIDOMDataTransfer dataTransfer); */
     356                 : NS_IMETHODIMP nsTreeView::CanDrop(PRInt32 index, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer, bool *_retval NS_OUTPARAM)
     357                 : {
     358                 :     return NS_ERROR_NOT_IMPLEMENTED;
     359                 : }
     360                 : 
     361                 : /* void drop (in long row, in long orientation, in nsIDOMDataTransfer dataTransfer); */
     362                 : NS_IMETHODIMP nsTreeView::Drop(PRInt32 row, PRInt32 orientation, nsIDOMDataTransfer *dataTransfer)
     363                 : {
     364                 :     return NS_ERROR_NOT_IMPLEMENTED;
     365                 : }
     366                 : 
     367                 : /* long getParentIndex (in long rowIndex); */
     368                 : NS_IMETHODIMP nsTreeView::GetParentIndex(PRInt32 rowIndex, PRInt32 *_retval NS_OUTPARAM)
     369                 : {
     370                 :     return NS_ERROR_NOT_IMPLEMENTED;
     371                 : }
     372                 : 
     373                 : /* boolean hasNextSibling (in long rowIndex, in long afterIndex); */
     374                 : NS_IMETHODIMP nsTreeView::HasNextSibling(PRInt32 rowIndex, PRInt32 afterIndex, bool *_retval NS_OUTPARAM)
     375                 : {
     376                 :     return NS_ERROR_NOT_IMPLEMENTED;
     377                 : }
     378                 : 
     379                 : /* long getLevel (in long index); */
     380                 : NS_IMETHODIMP nsTreeView::GetLevel(PRInt32 index, PRInt32 *_retval NS_OUTPARAM)
     381                 : {
     382                 :     return NS_ERROR_NOT_IMPLEMENTED;
     383                 : }
     384                 : 
     385                 : /* AString getImageSrc (in long row, in nsITreeColumn col); */
     386                 : NS_IMETHODIMP nsTreeView::GetImageSrc(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM)
     387                 : {
     388                 :     return NS_ERROR_NOT_IMPLEMENTED;
     389                 : }
     390                 : 
     391                 : /* long getProgressMode (in long row, in nsITreeColumn col); */
     392                 : NS_IMETHODIMP nsTreeView::GetProgressMode(PRInt32 row, nsITreeColumn *col, PRInt32 *_retval NS_OUTPARAM)
     393                 : {
     394                 :     return NS_ERROR_NOT_IMPLEMENTED;
     395                 : }
     396                 : 
     397                 : /* AString getCellValue (in long row, in nsITreeColumn col); */
     398                 : NS_IMETHODIMP nsTreeView::GetCellValue(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM)
     399                 : {
     400                 :     return NS_ERROR_NOT_IMPLEMENTED;
     401                 : }
     402                 : 
     403                 : /* AString getCellText (in long row, in nsITreeColumn col); */
     404                 : NS_IMETHODIMP nsTreeView::GetCellText(PRInt32 row, nsITreeColumn *col, nsAString & _retval NS_OUTPARAM)
     405                 : {
     406                 :     return NS_ERROR_NOT_IMPLEMENTED;
     407                 : }
     408                 : 
     409                 : /* void setTree (in nsITreeBoxObject tree); */
     410                 : NS_IMETHODIMP nsTreeView::SetTree(nsITreeBoxObject *tree)
     411                 : {
     412                 :     return NS_ERROR_NOT_IMPLEMENTED;
     413                 : }
     414                 : 
     415                 : /* void toggleOpenState (in long index); */
     416                 : NS_IMETHODIMP nsTreeView::ToggleOpenState(PRInt32 index)
     417                 : {
     418                 :     return NS_ERROR_NOT_IMPLEMENTED;
     419                 : }
     420                 : 
     421                 : /* void cycleHeader (in nsITreeColumn col); */
     422                 : NS_IMETHODIMP nsTreeView::CycleHeader(nsITreeColumn *col)
     423                 : {
     424                 :     return NS_ERROR_NOT_IMPLEMENTED;
     425                 : }
     426                 : 
     427                 : /* void selectionChanged (); */
     428                 : NS_IMETHODIMP nsTreeView::SelectionChanged()
     429                 : {
     430                 :     return NS_ERROR_NOT_IMPLEMENTED;
     431                 : }
     432                 : 
     433                 : /* void cycleCell (in long row, in nsITreeColumn col); */
     434                 : NS_IMETHODIMP nsTreeView::CycleCell(PRInt32 row, nsITreeColumn *col)
     435                 : {
     436                 :     return NS_ERROR_NOT_IMPLEMENTED;
     437                 : }
     438                 : 
     439                 : /* boolean isEditable (in long row, in nsITreeColumn col); */
     440                 : NS_IMETHODIMP nsTreeView::IsEditable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM)
     441                 : {
     442                 :     return NS_ERROR_NOT_IMPLEMENTED;
     443                 : }
     444                 : 
     445                 : /* boolean isSelectable (in long row, in nsITreeColumn col); */
     446                 : NS_IMETHODIMP nsTreeView::IsSelectable(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM)
     447                 : {
     448                 :     return NS_ERROR_NOT_IMPLEMENTED;
     449                 : }
     450                 : 
     451                 : /* void setCellValue (in long row, in nsITreeColumn col, in AString value); */
     452                 : NS_IMETHODIMP nsTreeView::SetCellValue(PRInt32 row, nsITreeColumn *col, const nsAString & value)
     453                 : {
     454                 :     return NS_ERROR_NOT_IMPLEMENTED;
     455                 : }
     456                 : 
     457                 : /* void setCellText (in long row, in nsITreeColumn col, in AString value); */
     458                 : NS_IMETHODIMP nsTreeView::SetCellText(PRInt32 row, nsITreeColumn *col, const nsAString & value)
     459                 : {
     460                 :     return NS_ERROR_NOT_IMPLEMENTED;
     461                 : }
     462                 : 
     463                 : /* void performAction (in wstring action); */
     464                 : NS_IMETHODIMP nsTreeView::PerformAction(const PRUnichar * action)
     465                 : {
     466                 :     return NS_ERROR_NOT_IMPLEMENTED;
     467                 : }
     468                 : 
     469                 : /* void performActionOnRow (in wstring action, in long row); */
     470                 : NS_IMETHODIMP nsTreeView::PerformActionOnRow(const PRUnichar * action, PRInt32 row)
     471                 : {
     472                 :     return NS_ERROR_NOT_IMPLEMENTED;
     473                 : }
     474                 : 
     475                 : /* void performActionOnCell (in wstring action, in long row, in nsITreeColumn col); */
     476                 : NS_IMETHODIMP nsTreeView::PerformActionOnCell(const PRUnichar * action, PRInt32 row, nsITreeColumn *col)
     477                 : {
     478                 :     return NS_ERROR_NOT_IMPLEMENTED;
     479                 : }
     480                 : 
     481                 : /* End of implementation class template. */
     482                 : #endif
     483                 : 
     484                 : 
     485                 : /* starting interface:    nsINativeTreeView */
     486                 : #define NS_INATIVETREEVIEW_IID_STR "46c90265-6553-41ae-8d39-7022e7d09145"
     487                 : 
     488                 : #define NS_INATIVETREEVIEW_IID \
     489                 :   {0x46c90265, 0x6553, 0x41ae, \
     490                 :     { 0x8d, 0x39, 0x70, 0x22, 0xe7, 0xd0, 0x91, 0x45 }}
     491                 : 
     492               0 : class NS_NO_VTABLE nsINativeTreeView : public nsITreeView {
     493                 :  public: 
     494                 : 
     495                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_INATIVETREEVIEW_IID)
     496                 : 
     497                 :   /* [noscript] void ensureNative (); */
     498                 :   NS_IMETHOD EnsureNative(void) = 0;
     499                 : 
     500                 : };
     501                 : 
     502                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsINativeTreeView, NS_INATIVETREEVIEW_IID)
     503                 : 
     504                 : /* Use this macro when declaring classes that implement this interface. */
     505                 : #define NS_DECL_NSINATIVETREEVIEW \
     506                 :   NS_IMETHOD EnsureNative(void); 
     507                 : 
     508                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     509                 : #define NS_FORWARD_NSINATIVETREEVIEW(_to) \
     510                 :   NS_IMETHOD EnsureNative(void) { return _to EnsureNative(); } 
     511                 : 
     512                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     513                 : #define NS_FORWARD_SAFE_NSINATIVETREEVIEW(_to) \
     514                 :   NS_IMETHOD EnsureNative(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureNative(); } 
     515                 : 
     516                 : #if 0
     517                 : /* Use the code below as a template for the implementation class for this interface. */
     518                 : 
     519                 : /* Header file */
     520                 : class nsNativeTreeView : public nsINativeTreeView
     521                 : {
     522                 : public:
     523                 :   NS_DECL_ISUPPORTS
     524                 :   NS_DECL_NSINATIVETREEVIEW
     525                 : 
     526                 :   nsNativeTreeView();
     527                 : 
     528                 : private:
     529                 :   ~nsNativeTreeView();
     530                 : 
     531                 : protected:
     532                 :   /* additional members */
     533                 : };
     534                 : 
     535                 : /* Implementation file */
     536                 : NS_IMPL_ISUPPORTS1(nsNativeTreeView, nsINativeTreeView)
     537                 : 
     538                 : nsNativeTreeView::nsNativeTreeView()
     539                 : {
     540                 :   /* member initializers and constructor code */
     541                 : }
     542                 : 
     543                 : nsNativeTreeView::~nsNativeTreeView()
     544                 : {
     545                 :   /* destructor code */
     546                 : }
     547                 : 
     548                 : /* [noscript] void ensureNative (); */
     549                 : NS_IMETHODIMP nsNativeTreeView::EnsureNative()
     550                 : {
     551                 :     return NS_ERROR_NOT_IMPLEMENTED;
     552                 : }
     553                 : 
     554                 : /* End of implementation class template. */
     555                 : #endif
     556                 : 
     557                 : 
     558                 : #endif /* __gen_nsITreeView_h__ */

Generated by: LCOV version 1.7