LCOV - code coverage report
Current view: top level - obj-x86_64-pc-linux-gnu/dist/include - nsITreeBoxObject.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 1 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 1 0.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.13