LCOV - code coverage report
Current view: directory - objdir/dist/include - nsIBoxObject.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/public/nsIBoxObject.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIBoxObject_h__
       6                 : #define __gen_nsIBoxObject_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                 : 
      20                 : /* starting interface:    nsIBoxObject */
      21                 : #define NS_IBOXOBJECT_IID_STR "ce572460-b0f2-4650-a9e7-c53a99d3b6ad"
      22                 : 
      23                 : #define NS_IBOXOBJECT_IID \
      24                 :   {0xce572460, 0xb0f2, 0x4650, \
      25                 :     { 0xa9, 0xe7, 0xc5, 0x3a, 0x99, 0xd3, 0xb6, 0xad }}
      26                 : 
      27               1 : class NS_NO_VTABLE NS_SCRIPTABLE nsIBoxObject : public nsISupports {
      28                 :  public: 
      29                 : 
      30                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IBOXOBJECT_IID)
      31                 : 
      32                 :   /* readonly attribute nsIDOMElement element; */
      33                 :   NS_SCRIPTABLE NS_IMETHOD GetElement(nsIDOMElement * *aElement) = 0;
      34                 : 
      35                 :   /* readonly attribute long x; */
      36                 :   NS_SCRIPTABLE NS_IMETHOD GetX(PRInt32 *aX) = 0;
      37                 : 
      38                 :   /* readonly attribute long y; */
      39                 :   NS_SCRIPTABLE NS_IMETHOD GetY(PRInt32 *aY) = 0;
      40                 : 
      41                 :   /* readonly attribute long screenX; */
      42                 :   NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) = 0;
      43                 : 
      44                 :   /* readonly attribute long screenY; */
      45                 :   NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) = 0;
      46                 : 
      47                 :   /* readonly attribute long width; */
      48                 :   NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) = 0;
      49                 : 
      50                 :   /* readonly attribute long height; */
      51                 :   NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) = 0;
      52                 : 
      53                 :   /* nsISupports getPropertyAsSupports (in wstring propertyName); */
      54                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsSupports(const PRUnichar * propertyName, nsISupports * *_retval NS_OUTPARAM) = 0;
      55                 : 
      56                 :   /* void setPropertyAsSupports (in wstring propertyName, in nsISupports value); */
      57                 :   NS_SCRIPTABLE NS_IMETHOD SetPropertyAsSupports(const PRUnichar * propertyName, nsISupports *value) = 0;
      58                 : 
      59                 :   /* wstring getProperty (in wstring propertyName); */
      60                 :   NS_SCRIPTABLE NS_IMETHOD GetProperty(const PRUnichar * propertyName, PRUnichar * *_retval NS_OUTPARAM) = 0;
      61                 : 
      62                 :   /* void setProperty (in wstring propertyName, in wstring propertyValue); */
      63                 :   NS_SCRIPTABLE NS_IMETHOD SetProperty(const PRUnichar * propertyName, const PRUnichar * propertyValue) = 0;
      64                 : 
      65                 :   /* void removeProperty (in wstring propertyName); */
      66                 :   NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const PRUnichar * propertyName) = 0;
      67                 : 
      68                 :   /* readonly attribute nsIDOMElement parentBox; */
      69                 :   NS_SCRIPTABLE NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) = 0;
      70                 : 
      71                 :   /* readonly attribute nsIDOMElement firstChild; */
      72                 :   NS_SCRIPTABLE NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) = 0;
      73                 : 
      74                 :   /* readonly attribute nsIDOMElement lastChild; */
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) = 0;
      76                 : 
      77                 :   /* readonly attribute nsIDOMElement nextSibling; */
      78                 :   NS_SCRIPTABLE NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) = 0;
      79                 : 
      80                 :   /* readonly attribute nsIDOMElement previousSibling; */
      81                 :   NS_SCRIPTABLE NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) = 0;
      82                 : 
      83                 : };
      84                 : 
      85                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIBoxObject, NS_IBOXOBJECT_IID)
      86                 : 
      87                 : /* Use this macro when declaring classes that implement this interface. */
      88                 : #define NS_DECL_NSIBOXOBJECT \
      89                 :   NS_SCRIPTABLE NS_IMETHOD GetElement(nsIDOMElement * *aElement); \
      90                 :   NS_SCRIPTABLE NS_IMETHOD GetX(PRInt32 *aX); \
      91                 :   NS_SCRIPTABLE NS_IMETHOD GetY(PRInt32 *aY); \
      92                 :   NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX); \
      93                 :   NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY); \
      94                 :   NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth); \
      95                 :   NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight); \
      96                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsSupports(const PRUnichar * propertyName, nsISupports * *_retval NS_OUTPARAM); \
      97                 :   NS_SCRIPTABLE NS_IMETHOD SetPropertyAsSupports(const PRUnichar * propertyName, nsISupports *value); \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetProperty(const PRUnichar * propertyName, PRUnichar * *_retval NS_OUTPARAM); \
      99                 :   NS_SCRIPTABLE NS_IMETHOD SetProperty(const PRUnichar * propertyName, const PRUnichar * propertyValue); \
     100                 :   NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const PRUnichar * propertyName); \
     101                 :   NS_SCRIPTABLE NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox); \
     102                 :   NS_SCRIPTABLE NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild); \
     103                 :   NS_SCRIPTABLE NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild); \
     104                 :   NS_SCRIPTABLE NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling); \
     105                 :   NS_SCRIPTABLE NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling); 
     106                 : 
     107                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
     108                 : #define NS_FORWARD_NSIBOXOBJECT(_to) \
     109                 :   NS_SCRIPTABLE NS_IMETHOD GetElement(nsIDOMElement * *aElement) { return _to GetElement(aElement); } \
     110                 :   NS_SCRIPTABLE NS_IMETHOD GetX(PRInt32 *aX) { return _to GetX(aX); } \
     111                 :   NS_SCRIPTABLE NS_IMETHOD GetY(PRInt32 *aY) { return _to GetY(aY); } \
     112                 :   NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return _to GetScreenX(aScreenX); } \
     113                 :   NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return _to GetScreenY(aScreenY); } \
     114                 :   NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return _to GetWidth(aWidth); } \
     115                 :   NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return _to GetHeight(aHeight); } \
     116                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsSupports(const PRUnichar * propertyName, nsISupports * *_retval NS_OUTPARAM) { return _to GetPropertyAsSupports(propertyName, _retval); } \
     117                 :   NS_SCRIPTABLE NS_IMETHOD SetPropertyAsSupports(const PRUnichar * propertyName, nsISupports *value) { return _to SetPropertyAsSupports(propertyName, value); } \
     118                 :   NS_SCRIPTABLE NS_IMETHOD GetProperty(const PRUnichar * propertyName, PRUnichar * *_retval NS_OUTPARAM) { return _to GetProperty(propertyName, _retval); } \
     119                 :   NS_SCRIPTABLE NS_IMETHOD SetProperty(const PRUnichar * propertyName, const PRUnichar * propertyValue) { return _to SetProperty(propertyName, propertyValue); } \
     120                 :   NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const PRUnichar * propertyName) { return _to RemoveProperty(propertyName); } \
     121                 :   NS_SCRIPTABLE NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) { return _to GetParentBox(aParentBox); } \
     122                 :   NS_SCRIPTABLE NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) { return _to GetFirstChild(aFirstChild); } \
     123                 :   NS_SCRIPTABLE NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) { return _to GetLastChild(aLastChild); } \
     124                 :   NS_SCRIPTABLE NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) { return _to GetNextSibling(aNextSibling); } \
     125                 :   NS_SCRIPTABLE NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) { return _to GetPreviousSibling(aPreviousSibling); } 
     126                 : 
     127                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
     128                 : #define NS_FORWARD_SAFE_NSIBOXOBJECT(_to) \
     129                 :   NS_SCRIPTABLE NS_IMETHOD GetElement(nsIDOMElement * *aElement) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetElement(aElement); } \
     130                 :   NS_SCRIPTABLE NS_IMETHOD GetX(PRInt32 *aX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetX(aX); } \
     131                 :   NS_SCRIPTABLE NS_IMETHOD GetY(PRInt32 *aY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetY(aY); } \
     132                 :   NS_SCRIPTABLE NS_IMETHOD GetScreenX(PRInt32 *aScreenX) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenX(aScreenX); } \
     133                 :   NS_SCRIPTABLE NS_IMETHOD GetScreenY(PRInt32 *aScreenY) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetScreenY(aScreenY); } \
     134                 :   NS_SCRIPTABLE NS_IMETHOD GetWidth(PRInt32 *aWidth) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetWidth(aWidth); } \
     135                 :   NS_SCRIPTABLE NS_IMETHOD GetHeight(PRInt32 *aHeight) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetHeight(aHeight); } \
     136                 :   NS_SCRIPTABLE NS_IMETHOD GetPropertyAsSupports(const PRUnichar * propertyName, nsISupports * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPropertyAsSupports(propertyName, _retval); } \
     137                 :   NS_SCRIPTABLE NS_IMETHOD SetPropertyAsSupports(const PRUnichar * propertyName, nsISupports *value) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetPropertyAsSupports(propertyName, value); } \
     138                 :   NS_SCRIPTABLE NS_IMETHOD GetProperty(const PRUnichar * propertyName, PRUnichar * *_retval NS_OUTPARAM) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProperty(propertyName, _retval); } \
     139                 :   NS_SCRIPTABLE NS_IMETHOD SetProperty(const PRUnichar * propertyName, const PRUnichar * propertyValue) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetProperty(propertyName, propertyValue); } \
     140                 :   NS_SCRIPTABLE NS_IMETHOD RemoveProperty(const PRUnichar * propertyName) { return !_to ? NS_ERROR_NULL_POINTER : _to->RemoveProperty(propertyName); } \
     141                 :   NS_SCRIPTABLE NS_IMETHOD GetParentBox(nsIDOMElement * *aParentBox) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetParentBox(aParentBox); } \
     142                 :   NS_SCRIPTABLE NS_IMETHOD GetFirstChild(nsIDOMElement * *aFirstChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetFirstChild(aFirstChild); } \
     143                 :   NS_SCRIPTABLE NS_IMETHOD GetLastChild(nsIDOMElement * *aLastChild) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetLastChild(aLastChild); } \
     144                 :   NS_SCRIPTABLE NS_IMETHOD GetNextSibling(nsIDOMElement * *aNextSibling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetNextSibling(aNextSibling); } \
     145                 :   NS_SCRIPTABLE NS_IMETHOD GetPreviousSibling(nsIDOMElement * *aPreviousSibling) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPreviousSibling(aPreviousSibling); } 
     146                 : 
     147                 : #if 0
     148                 : /* Use the code below as a template for the implementation class for this interface. */
     149                 : 
     150                 : /* Header file */
     151                 : class nsBoxObject : public nsIBoxObject
     152                 : {
     153                 : public:
     154                 :   NS_DECL_ISUPPORTS
     155                 :   NS_DECL_NSIBOXOBJECT
     156                 : 
     157                 :   nsBoxObject();
     158                 : 
     159                 : private:
     160                 :   ~nsBoxObject();
     161                 : 
     162                 : protected:
     163                 :   /* additional members */
     164                 : };
     165                 : 
     166                 : /* Implementation file */
     167                 : NS_IMPL_ISUPPORTS1(nsBoxObject, nsIBoxObject)
     168                 : 
     169                 : nsBoxObject::nsBoxObject()
     170                 : {
     171                 :   /* member initializers and constructor code */
     172                 : }
     173                 : 
     174                 : nsBoxObject::~nsBoxObject()
     175                 : {
     176                 :   /* destructor code */
     177                 : }
     178                 : 
     179                 : /* readonly attribute nsIDOMElement element; */
     180                 : NS_IMETHODIMP nsBoxObject::GetElement(nsIDOMElement * *aElement)
     181                 : {
     182                 :     return NS_ERROR_NOT_IMPLEMENTED;
     183                 : }
     184                 : 
     185                 : /* readonly attribute long x; */
     186                 : NS_IMETHODIMP nsBoxObject::GetX(PRInt32 *aX)
     187                 : {
     188                 :     return NS_ERROR_NOT_IMPLEMENTED;
     189                 : }
     190                 : 
     191                 : /* readonly attribute long y; */
     192                 : NS_IMETHODIMP nsBoxObject::GetY(PRInt32 *aY)
     193                 : {
     194                 :     return NS_ERROR_NOT_IMPLEMENTED;
     195                 : }
     196                 : 
     197                 : /* readonly attribute long screenX; */
     198                 : NS_IMETHODIMP nsBoxObject::GetScreenX(PRInt32 *aScreenX)
     199                 : {
     200                 :     return NS_ERROR_NOT_IMPLEMENTED;
     201                 : }
     202                 : 
     203                 : /* readonly attribute long screenY; */
     204                 : NS_IMETHODIMP nsBoxObject::GetScreenY(PRInt32 *aScreenY)
     205                 : {
     206                 :     return NS_ERROR_NOT_IMPLEMENTED;
     207                 : }
     208                 : 
     209                 : /* readonly attribute long width; */
     210                 : NS_IMETHODIMP nsBoxObject::GetWidth(PRInt32 *aWidth)
     211                 : {
     212                 :     return NS_ERROR_NOT_IMPLEMENTED;
     213                 : }
     214                 : 
     215                 : /* readonly attribute long height; */
     216                 : NS_IMETHODIMP nsBoxObject::GetHeight(PRInt32 *aHeight)
     217                 : {
     218                 :     return NS_ERROR_NOT_IMPLEMENTED;
     219                 : }
     220                 : 
     221                 : /* nsISupports getPropertyAsSupports (in wstring propertyName); */
     222                 : NS_IMETHODIMP nsBoxObject::GetPropertyAsSupports(const PRUnichar * propertyName, nsISupports * *_retval NS_OUTPARAM)
     223                 : {
     224                 :     return NS_ERROR_NOT_IMPLEMENTED;
     225                 : }
     226                 : 
     227                 : /* void setPropertyAsSupports (in wstring propertyName, in nsISupports value); */
     228                 : NS_IMETHODIMP nsBoxObject::SetPropertyAsSupports(const PRUnichar * propertyName, nsISupports *value)
     229                 : {
     230                 :     return NS_ERROR_NOT_IMPLEMENTED;
     231                 : }
     232                 : 
     233                 : /* wstring getProperty (in wstring propertyName); */
     234                 : NS_IMETHODIMP nsBoxObject::GetProperty(const PRUnichar * propertyName, PRUnichar * *_retval NS_OUTPARAM)
     235                 : {
     236                 :     return NS_ERROR_NOT_IMPLEMENTED;
     237                 : }
     238                 : 
     239                 : /* void setProperty (in wstring propertyName, in wstring propertyValue); */
     240                 : NS_IMETHODIMP nsBoxObject::SetProperty(const PRUnichar * propertyName, const PRUnichar * propertyValue)
     241                 : {
     242                 :     return NS_ERROR_NOT_IMPLEMENTED;
     243                 : }
     244                 : 
     245                 : /* void removeProperty (in wstring propertyName); */
     246                 : NS_IMETHODIMP nsBoxObject::RemoveProperty(const PRUnichar * propertyName)
     247                 : {
     248                 :     return NS_ERROR_NOT_IMPLEMENTED;
     249                 : }
     250                 : 
     251                 : /* readonly attribute nsIDOMElement parentBox; */
     252                 : NS_IMETHODIMP nsBoxObject::GetParentBox(nsIDOMElement * *aParentBox)
     253                 : {
     254                 :     return NS_ERROR_NOT_IMPLEMENTED;
     255                 : }
     256                 : 
     257                 : /* readonly attribute nsIDOMElement firstChild; */
     258                 : NS_IMETHODIMP nsBoxObject::GetFirstChild(nsIDOMElement * *aFirstChild)
     259                 : {
     260                 :     return NS_ERROR_NOT_IMPLEMENTED;
     261                 : }
     262                 : 
     263                 : /* readonly attribute nsIDOMElement lastChild; */
     264                 : NS_IMETHODIMP nsBoxObject::GetLastChild(nsIDOMElement * *aLastChild)
     265                 : {
     266                 :     return NS_ERROR_NOT_IMPLEMENTED;
     267                 : }
     268                 : 
     269                 : /* readonly attribute nsIDOMElement nextSibling; */
     270                 : NS_IMETHODIMP nsBoxObject::GetNextSibling(nsIDOMElement * *aNextSibling)
     271                 : {
     272                 :     return NS_ERROR_NOT_IMPLEMENTED;
     273                 : }
     274                 : 
     275                 : /* readonly attribute nsIDOMElement previousSibling; */
     276                 : NS_IMETHODIMP nsBoxObject::GetPreviousSibling(nsIDOMElement * *aPreviousSibling)
     277                 : {
     278                 :     return NS_ERROR_NOT_IMPLEMENTED;
     279                 : }
     280                 : 
     281                 : /* End of implementation class template. */
     282                 : #endif
     283                 : 
     284                 : nsresult
     285                 : NS_NewBoxObject(nsIBoxObject** aResult);
     286                 : 
     287                 : #endif /* __gen_nsIBoxObject_h__ */

Generated by: LCOV version 1.7