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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/layout/xul/base/src/tree/public/nsITreeBoxObject.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsITreeBoxObject_h__
       6                 : #define __gen_nsITreeBoxObject_h__
       7                 : 
       8                 : 
       9                 : #ifndef __gen_nsISupports_h__
      10                 : #include "nsISupports.h"
      11                 : #endif
      12                 : 
      13                 : #ifndef __gen_domstubs_h__
      14                 : #include "domstubs.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 nsITreeView; /* forward declaration */
      22                 : 
      23                 : class nsITreeSelection; /* forward declaration */
      24                 : 
      25                 : class nsITreeColumn; /* forward declaration */
      26                 : 
      27                 : class nsITreeColumns; /* forward declaration */
      28                 : 
      29                 : class nsIScriptableRegion; /* forward declaration */
      30                 : 
      31                 : 
      32                 : /* starting interface:    nsITreeBoxObject */
      33                 : #define NS_ITREEBOXOBJECT_IID_STR "64ba5199-c4f4-4498-bbdc-f8e4c369086c"
      34                 : 
      35                 : #define NS_ITREEBOXOBJECT_IID \
      36                 :   {0x64ba5199, 0xc4f4, 0x4498, \
      37                 :     { 0xbb, 0xdc, 0xf8, 0xe4, 0xc3, 0x69, 0x08, 0x6c }}
      38                 : 
      39               1 : class NS_NO_VTABLE NS_SCRIPTABLE nsITreeBoxObject : public nsISupports {
      40                 :  public: 
      41                 : 
      42                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_ITREEBOXOBJECT_IID)
      43                 : 
      44                 :   /* readonly attribute nsITreeColumns columns; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetColumns(nsITreeColumns * *aColumns) = 0;
      46                 : 
      47                 :   /* attribute nsITreeView view; */
      48                 :   NS_SCRIPTABLE NS_IMETHOD GetView(nsITreeView * *aView) = 0;
      49                 :   NS_SCRIPTABLE NS_IMETHOD SetView(nsITreeView *aView) = 0;
      50                 : 
      51                 :   /* attribute boolean focused; */
      52                 :   NS_SCRIPTABLE NS_IMETHOD GetFocused(bool *aFocused) = 0;
      53                 :   NS_SCRIPTABLE NS_IMETHOD SetFocused(bool aFocused) = 0;
      54                 : 
      55                 :   /* readonly attribute nsIDOMElement treeBody; */
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetTreeBody(nsIDOMElement * *aTreeBody) = 0;
      57                 : 
      58                 :   /* readonly attribute long rowHeight; */
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetRowHeight(PRInt32 *aRowHeight) = 0;
      60                 : 
      61                 :   /* readonly attribute long rowWidth; */
      62                 :   NS_SCRIPTABLE NS_IMETHOD GetRowWidth(PRInt32 *aRowWidth) = 0;
      63                 : 
      64                 :   /* readonly attribute long horizontalPosition; */
      65                 :   NS_SCRIPTABLE NS_IMETHOD GetHorizontalPosition(PRInt32 *aHorizontalPosition) = 0;
      66                 : 
      67                 :   /* readonly attribute nsIScriptableRegion selectionRegion; */
      68                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectionRegion(nsIScriptableRegion * *aSelectionRegion) = 0;
      69                 : 
      70                 :   /* long getFirstVisibleRow (); */
      71                 :   NS_SCRIPTABLE NS_IMETHOD GetFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM) = 0;
      72                 : 
      73                 :   /* long getLastVisibleRow (); */
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetLastVisibleRow(PRInt32 *_retval NS_OUTPARAM) = 0;
      75                 : 
      76                 :   /* long getPageLength (); */
      77                 :   NS_SCRIPTABLE NS_IMETHOD GetPageLength(PRInt32 *_retval NS_OUTPARAM) = 0;
      78                 : 
      79                 :   /* void ensureRowIsVisible (in long index); */
      80                 :   NS_SCRIPTABLE NS_IMETHOD EnsureRowIsVisible(PRInt32 index) = 0;
      81                 : 
      82                 :   /* void ensureCellIsVisible (in long row, in nsITreeColumn col); */
      83                 :   NS_SCRIPTABLE NS_IMETHOD EnsureCellIsVisible(PRInt32 row, nsITreeColumn *col) = 0;
      84                 : 
      85                 :   /* void scrollToRow (in long index); */
      86                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToRow(PRInt32 index) = 0;
      87                 : 
      88                 :   /* void scrollByLines (in long numLines); */
      89                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) = 0;
      90                 : 
      91                 :   /* void scrollByPages (in long numPages); */
      92                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByPages(PRInt32 numPages) = 0;
      93                 : 
      94                 :   /* void scrollToCell (in long row, in nsITreeColumn col); */
      95                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToCell(PRInt32 row, nsITreeColumn *col) = 0;
      96                 : 
      97                 :   /* void scrollToColumn (in nsITreeColumn col); */
      98                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToColumn(nsITreeColumn *col) = 0;
      99                 : 
     100                 :   /* void scrollToHorizontalPosition (in long horizontalPosition); */
     101                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToHorizontalPosition(PRInt32 horizontalPosition) = 0;
     102                 : 
     103                 :   /* void invalidate (); */
     104                 :   NS_SCRIPTABLE NS_IMETHOD Invalidate(void) = 0;
     105                 : 
     106                 :   /* void invalidateColumn (in nsITreeColumn col); */
     107                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateColumn(nsITreeColumn *col) = 0;
     108                 : 
     109                 :   /* void invalidateRow (in long index); */
     110                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateRow(PRInt32 index) = 0;
     111                 : 
     112                 :   /* void invalidateCell (in long row, in nsITreeColumn col); */
     113                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateCell(PRInt32 row, nsITreeColumn *col) = 0;
     114                 : 
     115                 :   /* void invalidateRange (in long startIndex, in long endIndex); */
     116                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateRange(PRInt32 startIndex, PRInt32 endIndex) = 0;
     117                 : 
     118                 :   /* void invalidateColumnRange (in long startIndex, in long endIndex, in nsITreeColumn col); */
     119                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateColumnRange(PRInt32 startIndex, PRInt32 endIndex, nsITreeColumn *col) = 0;
     120                 : 
     121                 :   /* long getRowAt (in long x, in long y); */
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetRowAt(PRInt32 x, PRInt32 y, PRInt32 *_retval NS_OUTPARAM) = 0;
     123                 : 
     124                 :   /* void getCellAt (in long x, in long y, out long row, out nsITreeColumn col, out ACString childElt); */
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetCellAt(PRInt32 x, PRInt32 y, PRInt32 *row NS_OUTPARAM, nsITreeColumn * *col NS_OUTPARAM, nsACString & childElt NS_OUTPARAM) = 0;
     126                 : 
     127                 :   /* void getCoordsForCellItem (in long row, in nsITreeColumn col, in ACString element, out long x, out long y, out long width, out long height); */
     128                 :   NS_SCRIPTABLE NS_IMETHOD GetCoordsForCellItem(PRInt32 row, nsITreeColumn *col, const nsACString & element, PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) = 0;
     129                 : 
     130                 :   /* boolean isCellCropped (in long row, in nsITreeColumn col); */
     131                 :   NS_SCRIPTABLE NS_IMETHOD IsCellCropped(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) = 0;
     132                 : 
     133                 :   /* void rowCountChanged (in long index, in long count); */
     134                 :   NS_SCRIPTABLE NS_IMETHOD RowCountChanged(PRInt32 index, PRInt32 count) = 0;
     135                 : 
     136                 :   /* void beginUpdateBatch (); */
     137                 :   NS_SCRIPTABLE NS_IMETHOD BeginUpdateBatch(void) = 0;
     138                 : 
     139                 :   /* void endUpdateBatch (); */
     140                 :   NS_SCRIPTABLE NS_IMETHOD EndUpdateBatch(void) = 0;
     141                 : 
     142                 :   /* void clearStyleAndImageCaches (); */
     143                 :   NS_SCRIPTABLE NS_IMETHOD ClearStyleAndImageCaches(void) = 0;
     144                 : 
     145                 : };
     146                 : 
     147                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsITreeBoxObject, NS_ITREEBOXOBJECT_IID)
     148                 : 
     149                 : /* Use this macro when declaring classes that implement this interface. */
     150                 : #define NS_DECL_NSITREEBOXOBJECT \
     151                 :   NS_SCRIPTABLE NS_IMETHOD GetColumns(nsITreeColumns * *aColumns); \
     152                 :   NS_SCRIPTABLE NS_IMETHOD GetView(nsITreeView * *aView); \
     153                 :   NS_SCRIPTABLE NS_IMETHOD SetView(nsITreeView *aView); \
     154                 :   NS_SCRIPTABLE NS_IMETHOD GetFocused(bool *aFocused); \
     155                 :   NS_SCRIPTABLE NS_IMETHOD SetFocused(bool aFocused); \
     156                 :   NS_SCRIPTABLE NS_IMETHOD GetTreeBody(nsIDOMElement * *aTreeBody); \
     157                 :   NS_SCRIPTABLE NS_IMETHOD GetRowHeight(PRInt32 *aRowHeight); \
     158                 :   NS_SCRIPTABLE NS_IMETHOD GetRowWidth(PRInt32 *aRowWidth); \
     159                 :   NS_SCRIPTABLE NS_IMETHOD GetHorizontalPosition(PRInt32 *aHorizontalPosition); \
     160                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectionRegion(nsIScriptableRegion * *aSelectionRegion); \
     161                 :   NS_SCRIPTABLE NS_IMETHOD GetFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM); \
     162                 :   NS_SCRIPTABLE NS_IMETHOD GetLastVisibleRow(PRInt32 *_retval NS_OUTPARAM); \
     163                 :   NS_SCRIPTABLE NS_IMETHOD GetPageLength(PRInt32 *_retval NS_OUTPARAM); \
     164                 :   NS_SCRIPTABLE NS_IMETHOD EnsureRowIsVisible(PRInt32 index); \
     165                 :   NS_SCRIPTABLE NS_IMETHOD EnsureCellIsVisible(PRInt32 row, nsITreeColumn *col); \
     166                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToRow(PRInt32 index); \
     167                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines); \
     168                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByPages(PRInt32 numPages); \
     169                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToCell(PRInt32 row, nsITreeColumn *col); \
     170                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToColumn(nsITreeColumn *col); \
     171                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToHorizontalPosition(PRInt32 horizontalPosition); \
     172                 :   NS_SCRIPTABLE NS_IMETHOD Invalidate(void); \
     173                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateColumn(nsITreeColumn *col); \
     174                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateRow(PRInt32 index); \
     175                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateCell(PRInt32 row, nsITreeColumn *col); \
     176                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateRange(PRInt32 startIndex, PRInt32 endIndex); \
     177                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateColumnRange(PRInt32 startIndex, PRInt32 endIndex, nsITreeColumn *col); \
     178                 :   NS_SCRIPTABLE NS_IMETHOD GetRowAt(PRInt32 x, PRInt32 y, PRInt32 *_retval NS_OUTPARAM); \
     179                 :   NS_SCRIPTABLE NS_IMETHOD GetCellAt(PRInt32 x, PRInt32 y, PRInt32 *row NS_OUTPARAM, nsITreeColumn * *col NS_OUTPARAM, nsACString & childElt NS_OUTPARAM); \
     180                 :   NS_SCRIPTABLE NS_IMETHOD GetCoordsForCellItem(PRInt32 row, nsITreeColumn *col, const nsACString & element, PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM); \
     181                 :   NS_SCRIPTABLE NS_IMETHOD IsCellCropped(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM); \
     182                 :   NS_SCRIPTABLE NS_IMETHOD RowCountChanged(PRInt32 index, PRInt32 count); \
     183                 :   NS_SCRIPTABLE NS_IMETHOD BeginUpdateBatch(void); \
     184                 :   NS_SCRIPTABLE NS_IMETHOD EndUpdateBatch(void); \
     185                 :   NS_SCRIPTABLE NS_IMETHOD ClearStyleAndImageCaches(void); 
     186                 : 
     187                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     188                 : #define NS_FORWARD_NSITREEBOXOBJECT(_to) \
     189                 :   NS_SCRIPTABLE NS_IMETHOD GetColumns(nsITreeColumns * *aColumns) { return _to GetColumns(aColumns); } \
     190                 :   NS_SCRIPTABLE NS_IMETHOD GetView(nsITreeView * *aView) { return _to GetView(aView); } \
     191                 :   NS_SCRIPTABLE NS_IMETHOD SetView(nsITreeView *aView) { return _to SetView(aView); } \
     192                 :   NS_SCRIPTABLE NS_IMETHOD GetFocused(bool *aFocused) { return _to GetFocused(aFocused); } \
     193                 :   NS_SCRIPTABLE NS_IMETHOD SetFocused(bool aFocused) { return _to SetFocused(aFocused); } \
     194                 :   NS_SCRIPTABLE NS_IMETHOD GetTreeBody(nsIDOMElement * *aTreeBody) { return _to GetTreeBody(aTreeBody); } \
     195                 :   NS_SCRIPTABLE NS_IMETHOD GetRowHeight(PRInt32 *aRowHeight) { return _to GetRowHeight(aRowHeight); } \
     196                 :   NS_SCRIPTABLE NS_IMETHOD GetRowWidth(PRInt32 *aRowWidth) { return _to GetRowWidth(aRowWidth); } \
     197                 :   NS_SCRIPTABLE NS_IMETHOD GetHorizontalPosition(PRInt32 *aHorizontalPosition) { return _to GetHorizontalPosition(aHorizontalPosition); } \
     198                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectionRegion(nsIScriptableRegion * *aSelectionRegion) { return _to GetSelectionRegion(aSelectionRegion); } \
     199                 :   NS_SCRIPTABLE NS_IMETHOD GetFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM) { return _to GetFirstVisibleRow(_retval); } \
     200                 :   NS_SCRIPTABLE NS_IMETHOD GetLastVisibleRow(PRInt32 *_retval NS_OUTPARAM) { return _to GetLastVisibleRow(_retval); } \
     201                 :   NS_SCRIPTABLE NS_IMETHOD GetPageLength(PRInt32 *_retval NS_OUTPARAM) { return _to GetPageLength(_retval); } \
     202                 :   NS_SCRIPTABLE NS_IMETHOD EnsureRowIsVisible(PRInt32 index) { return _to EnsureRowIsVisible(index); } \
     203                 :   NS_SCRIPTABLE NS_IMETHOD EnsureCellIsVisible(PRInt32 row, nsITreeColumn *col) { return _to EnsureCellIsVisible(row, col); } \
     204                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToRow(PRInt32 index) { return _to ScrollToRow(index); } \
     205                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) { return _to ScrollByLines(numLines); } \
     206                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByPages(PRInt32 numPages) { return _to ScrollByPages(numPages); } \
     207                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToCell(PRInt32 row, nsITreeColumn *col) { return _to ScrollToCell(row, col); } \
     208                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToColumn(nsITreeColumn *col) { return _to ScrollToColumn(col); } \
     209                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToHorizontalPosition(PRInt32 horizontalPosition) { return _to ScrollToHorizontalPosition(horizontalPosition); } \
     210                 :   NS_SCRIPTABLE NS_IMETHOD Invalidate(void) { return _to Invalidate(); } \
     211                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateColumn(nsITreeColumn *col) { return _to InvalidateColumn(col); } \
     212                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateRow(PRInt32 index) { return _to InvalidateRow(index); } \
     213                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateCell(PRInt32 row, nsITreeColumn *col) { return _to InvalidateCell(row, col); } \
     214                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateRange(PRInt32 startIndex, PRInt32 endIndex) { return _to InvalidateRange(startIndex, endIndex); } \
     215                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateColumnRange(PRInt32 startIndex, PRInt32 endIndex, nsITreeColumn *col) { return _to InvalidateColumnRange(startIndex, endIndex, col); } \
     216                 :   NS_SCRIPTABLE NS_IMETHOD GetRowAt(PRInt32 x, PRInt32 y, PRInt32 *_retval NS_OUTPARAM) { return _to GetRowAt(x, y, _retval); } \
     217                 :   NS_SCRIPTABLE NS_IMETHOD GetCellAt(PRInt32 x, PRInt32 y, PRInt32 *row NS_OUTPARAM, nsITreeColumn * *col NS_OUTPARAM, nsACString & childElt NS_OUTPARAM) { return _to GetCellAt(x, y, row, col, childElt); } \
     218                 :   NS_SCRIPTABLE NS_IMETHOD GetCoordsForCellItem(PRInt32 row, nsITreeColumn *col, const nsACString & element, PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) { return _to GetCoordsForCellItem(row, col, element, x, y, width, height); } \
     219                 :   NS_SCRIPTABLE NS_IMETHOD IsCellCropped(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) { return _to IsCellCropped(row, col, _retval); } \
     220                 :   NS_SCRIPTABLE NS_IMETHOD RowCountChanged(PRInt32 index, PRInt32 count) { return _to RowCountChanged(index, count); } \
     221                 :   NS_SCRIPTABLE NS_IMETHOD BeginUpdateBatch(void) { return _to BeginUpdateBatch(); } \
     222                 :   NS_SCRIPTABLE NS_IMETHOD EndUpdateBatch(void) { return _to EndUpdateBatch(); } \
     223                 :   NS_SCRIPTABLE NS_IMETHOD ClearStyleAndImageCaches(void) { return _to ClearStyleAndImageCaches(); } 
     224                 : 
     225                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     226                 : #define NS_FORWARD_SAFE_NSITREEBOXOBJECT(_to) \
     227                 :   NS_SCRIPTABLE NS_IMETHOD GetColumns(nsITreeColumns * *aColumns) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetColumns(aColumns); } \
     228                 :   NS_SCRIPTABLE NS_IMETHOD GetView(nsITreeView * *aView) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetView(aView); } \
     229                 :   NS_SCRIPTABLE NS_IMETHOD SetView(nsITreeView *aView) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetView(aView); } \
     230                 :   NS_SCRIPTABLE NS_IMETHOD GetFocused(bool *aFocused) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFocused(aFocused); } \
     231                 :   NS_SCRIPTABLE NS_IMETHOD SetFocused(bool aFocused) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetFocused(aFocused); } \
     232                 :   NS_SCRIPTABLE NS_IMETHOD GetTreeBody(nsIDOMElement * *aTreeBody) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetTreeBody(aTreeBody); } \
     233                 :   NS_SCRIPTABLE NS_IMETHOD GetRowHeight(PRInt32 *aRowHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowHeight(aRowHeight); } \
     234                 :   NS_SCRIPTABLE NS_IMETHOD GetRowWidth(PRInt32 *aRowWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowWidth(aRowWidth); } \
     235                 :   NS_SCRIPTABLE NS_IMETHOD GetHorizontalPosition(PRInt32 *aHorizontalPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHorizontalPosition(aHorizontalPosition); } \
     236                 :   NS_SCRIPTABLE NS_IMETHOD GetSelectionRegion(nsIScriptableRegion * *aSelectionRegion) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetSelectionRegion(aSelectionRegion); } \
     237                 :   NS_SCRIPTABLE NS_IMETHOD GetFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstVisibleRow(_retval); } \
     238                 :   NS_SCRIPTABLE NS_IMETHOD GetLastVisibleRow(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastVisibleRow(_retval); } \
     239                 :   NS_SCRIPTABLE NS_IMETHOD GetPageLength(PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPageLength(_retval); } \
     240                 :   NS_SCRIPTABLE NS_IMETHOD EnsureRowIsVisible(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureRowIsVisible(index); } \
     241                 :   NS_SCRIPTABLE NS_IMETHOD EnsureCellIsVisible(PRInt32 row, nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnsureCellIsVisible(row, col); } \
     242                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToRow(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToRow(index); } \
     243                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByLines(PRInt32 numLines) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByLines(numLines); } \
     244                 :   NS_SCRIPTABLE NS_IMETHOD ScrollByPages(PRInt32 numPages) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollByPages(numPages); } \
     245                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToCell(PRInt32 row, nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToCell(row, col); } \
     246                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToColumn(nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToColumn(col); } \
     247                 :   NS_SCRIPTABLE NS_IMETHOD ScrollToHorizontalPosition(PRInt32 horizontalPosition) { return !_to ? NS_ERROR_NULL_POINTER : _to->ScrollToHorizontalPosition(horizontalPosition); } \
     248                 :   NS_SCRIPTABLE NS_IMETHOD Invalidate(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->Invalidate(); } \
     249                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateColumn(nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateColumn(col); } \
     250                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateRow(PRInt32 index) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRow(index); } \
     251                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateCell(PRInt32 row, nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateCell(row, col); } \
     252                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateRange(PRInt32 startIndex, PRInt32 endIndex) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateRange(startIndex, endIndex); } \
     253                 :   NS_SCRIPTABLE NS_IMETHOD InvalidateColumnRange(PRInt32 startIndex, PRInt32 endIndex, nsITreeColumn *col) { return !_to ? NS_ERROR_NULL_POINTER : _to->InvalidateColumnRange(startIndex, endIndex, col); } \
     254                 :   NS_SCRIPTABLE NS_IMETHOD GetRowAt(PRInt32 x, PRInt32 y, PRInt32 *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRowAt(x, y, _retval); } \
     255                 :   NS_SCRIPTABLE NS_IMETHOD GetCellAt(PRInt32 x, PRInt32 y, PRInt32 *row NS_OUTPARAM, nsITreeColumn * *col NS_OUTPARAM, nsACString & childElt NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCellAt(x, y, row, col, childElt); } \
     256                 :   NS_SCRIPTABLE NS_IMETHOD GetCoordsForCellItem(PRInt32 row, nsITreeColumn *col, const nsACString & element, PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCoordsForCellItem(row, col, element, x, y, width, height); } \
     257                 :   NS_SCRIPTABLE NS_IMETHOD IsCellCropped(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsCellCropped(row, col, _retval); } \
     258                 :   NS_SCRIPTABLE NS_IMETHOD RowCountChanged(PRInt32 index, PRInt32 count) { return !_to ? NS_ERROR_NULL_POINTER : _to->RowCountChanged(index, count); } \
     259                 :   NS_SCRIPTABLE NS_IMETHOD BeginUpdateBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginUpdateBatch(); } \
     260                 :   NS_SCRIPTABLE NS_IMETHOD EndUpdateBatch(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndUpdateBatch(); } \
     261                 :   NS_SCRIPTABLE NS_IMETHOD ClearStyleAndImageCaches(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->ClearStyleAndImageCaches(); } 
     262                 : 
     263                 : #if 0
     264                 : /* Use the code below as a template for the implementation class for this interface. */
     265                 : 
     266                 : /* Header file */
     267                 : class nsTreeBoxObject : public nsITreeBoxObject
     268                 : {
     269                 : public:
     270                 :   NS_DECL_ISUPPORTS
     271                 :   NS_DECL_NSITREEBOXOBJECT
     272                 : 
     273                 :   nsTreeBoxObject();
     274                 : 
     275                 : private:
     276                 :   ~nsTreeBoxObject();
     277                 : 
     278                 : protected:
     279                 :   /* additional members */
     280                 : };
     281                 : 
     282                 : /* Implementation file */
     283                 : NS_IMPL_ISUPPORTS1(nsTreeBoxObject, nsITreeBoxObject)
     284                 : 
     285                 : nsTreeBoxObject::nsTreeBoxObject()
     286                 : {
     287                 :   /* member initializers and constructor code */
     288                 : }
     289                 : 
     290                 : nsTreeBoxObject::~nsTreeBoxObject()
     291                 : {
     292                 :   /* destructor code */
     293                 : }
     294                 : 
     295                 : /* readonly attribute nsITreeColumns columns; */
     296                 : NS_IMETHODIMP nsTreeBoxObject::GetColumns(nsITreeColumns * *aColumns)
     297                 : {
     298                 :     return NS_ERROR_NOT_IMPLEMENTED;
     299                 : }
     300                 : 
     301                 : /* attribute nsITreeView view; */
     302                 : NS_IMETHODIMP nsTreeBoxObject::GetView(nsITreeView * *aView)
     303                 : {
     304                 :     return NS_ERROR_NOT_IMPLEMENTED;
     305                 : }
     306                 : NS_IMETHODIMP nsTreeBoxObject::SetView(nsITreeView *aView)
     307                 : {
     308                 :     return NS_ERROR_NOT_IMPLEMENTED;
     309                 : }
     310                 : 
     311                 : /* attribute boolean focused; */
     312                 : NS_IMETHODIMP nsTreeBoxObject::GetFocused(bool *aFocused)
     313                 : {
     314                 :     return NS_ERROR_NOT_IMPLEMENTED;
     315                 : }
     316                 : NS_IMETHODIMP nsTreeBoxObject::SetFocused(bool aFocused)
     317                 : {
     318                 :     return NS_ERROR_NOT_IMPLEMENTED;
     319                 : }
     320                 : 
     321                 : /* readonly attribute nsIDOMElement treeBody; */
     322                 : NS_IMETHODIMP nsTreeBoxObject::GetTreeBody(nsIDOMElement * *aTreeBody)
     323                 : {
     324                 :     return NS_ERROR_NOT_IMPLEMENTED;
     325                 : }
     326                 : 
     327                 : /* readonly attribute long rowHeight; */
     328                 : NS_IMETHODIMP nsTreeBoxObject::GetRowHeight(PRInt32 *aRowHeight)
     329                 : {
     330                 :     return NS_ERROR_NOT_IMPLEMENTED;
     331                 : }
     332                 : 
     333                 : /* readonly attribute long rowWidth; */
     334                 : NS_IMETHODIMP nsTreeBoxObject::GetRowWidth(PRInt32 *aRowWidth)
     335                 : {
     336                 :     return NS_ERROR_NOT_IMPLEMENTED;
     337                 : }
     338                 : 
     339                 : /* readonly attribute long horizontalPosition; */
     340                 : NS_IMETHODIMP nsTreeBoxObject::GetHorizontalPosition(PRInt32 *aHorizontalPosition)
     341                 : {
     342                 :     return NS_ERROR_NOT_IMPLEMENTED;
     343                 : }
     344                 : 
     345                 : /* readonly attribute nsIScriptableRegion selectionRegion; */
     346                 : NS_IMETHODIMP nsTreeBoxObject::GetSelectionRegion(nsIScriptableRegion * *aSelectionRegion)
     347                 : {
     348                 :     return NS_ERROR_NOT_IMPLEMENTED;
     349                 : }
     350                 : 
     351                 : /* long getFirstVisibleRow (); */
     352                 : NS_IMETHODIMP nsTreeBoxObject::GetFirstVisibleRow(PRInt32 *_retval NS_OUTPARAM)
     353                 : {
     354                 :     return NS_ERROR_NOT_IMPLEMENTED;
     355                 : }
     356                 : 
     357                 : /* long getLastVisibleRow (); */
     358                 : NS_IMETHODIMP nsTreeBoxObject::GetLastVisibleRow(PRInt32 *_retval NS_OUTPARAM)
     359                 : {
     360                 :     return NS_ERROR_NOT_IMPLEMENTED;
     361                 : }
     362                 : 
     363                 : /* long getPageLength (); */
     364                 : NS_IMETHODIMP nsTreeBoxObject::GetPageLength(PRInt32 *_retval NS_OUTPARAM)
     365                 : {
     366                 :     return NS_ERROR_NOT_IMPLEMENTED;
     367                 : }
     368                 : 
     369                 : /* void ensureRowIsVisible (in long index); */
     370                 : NS_IMETHODIMP nsTreeBoxObject::EnsureRowIsVisible(PRInt32 index)
     371                 : {
     372                 :     return NS_ERROR_NOT_IMPLEMENTED;
     373                 : }
     374                 : 
     375                 : /* void ensureCellIsVisible (in long row, in nsITreeColumn col); */
     376                 : NS_IMETHODIMP nsTreeBoxObject::EnsureCellIsVisible(PRInt32 row, nsITreeColumn *col)
     377                 : {
     378                 :     return NS_ERROR_NOT_IMPLEMENTED;
     379                 : }
     380                 : 
     381                 : /* void scrollToRow (in long index); */
     382                 : NS_IMETHODIMP nsTreeBoxObject::ScrollToRow(PRInt32 index)
     383                 : {
     384                 :     return NS_ERROR_NOT_IMPLEMENTED;
     385                 : }
     386                 : 
     387                 : /* void scrollByLines (in long numLines); */
     388                 : NS_IMETHODIMP nsTreeBoxObject::ScrollByLines(PRInt32 numLines)
     389                 : {
     390                 :     return NS_ERROR_NOT_IMPLEMENTED;
     391                 : }
     392                 : 
     393                 : /* void scrollByPages (in long numPages); */
     394                 : NS_IMETHODIMP nsTreeBoxObject::ScrollByPages(PRInt32 numPages)
     395                 : {
     396                 :     return NS_ERROR_NOT_IMPLEMENTED;
     397                 : }
     398                 : 
     399                 : /* void scrollToCell (in long row, in nsITreeColumn col); */
     400                 : NS_IMETHODIMP nsTreeBoxObject::ScrollToCell(PRInt32 row, nsITreeColumn *col)
     401                 : {
     402                 :     return NS_ERROR_NOT_IMPLEMENTED;
     403                 : }
     404                 : 
     405                 : /* void scrollToColumn (in nsITreeColumn col); */
     406                 : NS_IMETHODIMP nsTreeBoxObject::ScrollToColumn(nsITreeColumn *col)
     407                 : {
     408                 :     return NS_ERROR_NOT_IMPLEMENTED;
     409                 : }
     410                 : 
     411                 : /* void scrollToHorizontalPosition (in long horizontalPosition); */
     412                 : NS_IMETHODIMP nsTreeBoxObject::ScrollToHorizontalPosition(PRInt32 horizontalPosition)
     413                 : {
     414                 :     return NS_ERROR_NOT_IMPLEMENTED;
     415                 : }
     416                 : 
     417                 : /* void invalidate (); */
     418                 : NS_IMETHODIMP nsTreeBoxObject::Invalidate()
     419                 : {
     420                 :     return NS_ERROR_NOT_IMPLEMENTED;
     421                 : }
     422                 : 
     423                 : /* void invalidateColumn (in nsITreeColumn col); */
     424                 : NS_IMETHODIMP nsTreeBoxObject::InvalidateColumn(nsITreeColumn *col)
     425                 : {
     426                 :     return NS_ERROR_NOT_IMPLEMENTED;
     427                 : }
     428                 : 
     429                 : /* void invalidateRow (in long index); */
     430                 : NS_IMETHODIMP nsTreeBoxObject::InvalidateRow(PRInt32 index)
     431                 : {
     432                 :     return NS_ERROR_NOT_IMPLEMENTED;
     433                 : }
     434                 : 
     435                 : /* void invalidateCell (in long row, in nsITreeColumn col); */
     436                 : NS_IMETHODIMP nsTreeBoxObject::InvalidateCell(PRInt32 row, nsITreeColumn *col)
     437                 : {
     438                 :     return NS_ERROR_NOT_IMPLEMENTED;
     439                 : }
     440                 : 
     441                 : /* void invalidateRange (in long startIndex, in long endIndex); */
     442                 : NS_IMETHODIMP nsTreeBoxObject::InvalidateRange(PRInt32 startIndex, PRInt32 endIndex)
     443                 : {
     444                 :     return NS_ERROR_NOT_IMPLEMENTED;
     445                 : }
     446                 : 
     447                 : /* void invalidateColumnRange (in long startIndex, in long endIndex, in nsITreeColumn col); */
     448                 : NS_IMETHODIMP nsTreeBoxObject::InvalidateColumnRange(PRInt32 startIndex, PRInt32 endIndex, nsITreeColumn *col)
     449                 : {
     450                 :     return NS_ERROR_NOT_IMPLEMENTED;
     451                 : }
     452                 : 
     453                 : /* long getRowAt (in long x, in long y); */
     454                 : NS_IMETHODIMP nsTreeBoxObject::GetRowAt(PRInt32 x, PRInt32 y, PRInt32 *_retval NS_OUTPARAM)
     455                 : {
     456                 :     return NS_ERROR_NOT_IMPLEMENTED;
     457                 : }
     458                 : 
     459                 : /* void getCellAt (in long x, in long y, out long row, out nsITreeColumn col, out ACString childElt); */
     460                 : NS_IMETHODIMP nsTreeBoxObject::GetCellAt(PRInt32 x, PRInt32 y, PRInt32 *row NS_OUTPARAM, nsITreeColumn * *col NS_OUTPARAM, nsACString & childElt NS_OUTPARAM)
     461                 : {
     462                 :     return NS_ERROR_NOT_IMPLEMENTED;
     463                 : }
     464                 : 
     465                 : /* void getCoordsForCellItem (in long row, in nsITreeColumn col, in ACString element, out long x, out long y, out long width, out long height); */
     466                 : NS_IMETHODIMP nsTreeBoxObject::GetCoordsForCellItem(PRInt32 row, nsITreeColumn *col, const nsACString & element, PRInt32 *x NS_OUTPARAM, PRInt32 *y NS_OUTPARAM, PRInt32 *width NS_OUTPARAM, PRInt32 *height NS_OUTPARAM)
     467                 : {
     468                 :     return NS_ERROR_NOT_IMPLEMENTED;
     469                 : }
     470                 : 
     471                 : /* boolean isCellCropped (in long row, in nsITreeColumn col); */
     472                 : NS_IMETHODIMP nsTreeBoxObject::IsCellCropped(PRInt32 row, nsITreeColumn *col, bool *_retval NS_OUTPARAM)
     473                 : {
     474                 :     return NS_ERROR_NOT_IMPLEMENTED;
     475                 : }
     476                 : 
     477                 : /* void rowCountChanged (in long index, in long count); */
     478                 : NS_IMETHODIMP nsTreeBoxObject::RowCountChanged(PRInt32 index, PRInt32 count)
     479                 : {
     480                 :     return NS_ERROR_NOT_IMPLEMENTED;
     481                 : }
     482                 : 
     483                 : /* void beginUpdateBatch (); */
     484                 : NS_IMETHODIMP nsTreeBoxObject::BeginUpdateBatch()
     485                 : {
     486                 :     return NS_ERROR_NOT_IMPLEMENTED;
     487                 : }
     488                 : 
     489                 : /* void endUpdateBatch (); */
     490                 : NS_IMETHODIMP nsTreeBoxObject::EndUpdateBatch()
     491                 : {
     492                 :     return NS_ERROR_NOT_IMPLEMENTED;
     493                 : }
     494                 : 
     495                 : /* void clearStyleAndImageCaches (); */
     496                 : NS_IMETHODIMP nsTreeBoxObject::ClearStyleAndImageCaches()
     497                 : {
     498                 :     return NS_ERROR_NOT_IMPLEMENTED;
     499                 : }
     500                 : 
     501                 : /* End of implementation class template. */
     502                 : #endif
     503                 : 
     504                 : 
     505                 : #endif /* __gen_nsITreeBoxObject_h__ */

Generated by: LCOV version 1.7