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

       1                 : /*
       2                 :  * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/slave/m-beta-lnx-codecoverage/build/content/xtf/public/nsIXMLContentBuilder.idl
       3                 :  */
       4                 : 
       5                 : #ifndef __gen_nsIXMLContentBuilder_h__
       6                 : #define __gen_nsIXMLContentBuilder_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 nsIDOMDocument; /* forward declaration */
      20                 : 
      21                 : 
      22                 : /* starting interface:    nsIXMLContentBuilder */
      23                 : #define NS_IXMLCONTENTBUILDER_IID_STR "e9c4cd4f-cd41-43d0-bf3b-48abb9cde90f"
      24                 : 
      25                 : #define NS_IXMLCONTENTBUILDER_IID \
      26                 :   {0xe9c4cd4f, 0xcd41, 0x43d0, \
      27                 :     { 0xbf, 0x3b, 0x48, 0xab, 0xb9, 0xcd, 0xe9, 0x0f }}
      28                 : 
      29               0 : class NS_NO_VTABLE NS_SCRIPTABLE nsIXMLContentBuilder : public nsISupports {
      30                 :  public: 
      31                 : 
      32                 :   NS_DECLARE_STATIC_IID_ACCESSOR(NS_IXMLCONTENTBUILDER_IID)
      33                 : 
      34                 :   /* void clear (in nsIDOMElement root); */
      35                 :   NS_SCRIPTABLE NS_IMETHOD Clear(nsIDOMElement *root) = 0;
      36                 : 
      37                 :   /* void setDocument (in nsIDOMDocument doc); */
      38                 :   NS_SCRIPTABLE NS_IMETHOD SetDocument(nsIDOMDocument *doc) = 0;
      39                 : 
      40                 :   /* void setElementNamespace (in AString ns); */
      41                 :   NS_SCRIPTABLE NS_IMETHOD SetElementNamespace(const nsAString & ns) = 0;
      42                 : 
      43                 :   /* void beginElement (in AString tagname); */
      44                 :   NS_SCRIPTABLE NS_IMETHOD BeginElement(const nsAString & tagname) = 0;
      45                 : 
      46                 :   /* void endElement (); */
      47                 :   NS_SCRIPTABLE NS_IMETHOD EndElement(void) = 0;
      48                 : 
      49                 :   /* void attrib (in AString name, in AString value); */
      50                 :   NS_SCRIPTABLE NS_IMETHOD Attrib(const nsAString & name, const nsAString & value) = 0;
      51                 : 
      52                 :   /* void textNode (in AString text); */
      53                 :   NS_SCRIPTABLE NS_IMETHOD TextNode(const nsAString & text) = 0;
      54                 : 
      55                 :   /* readonly attribute nsIDOMElement root; */
      56                 :   NS_SCRIPTABLE NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) = 0;
      57                 : 
      58                 :   /* readonly attribute nsIDOMElement current; */
      59                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrent(nsIDOMElement * *aCurrent) = 0;
      60                 : 
      61                 : };
      62                 : 
      63                 :   NS_DEFINE_STATIC_IID_ACCESSOR(nsIXMLContentBuilder, NS_IXMLCONTENTBUILDER_IID)
      64                 : 
      65                 : /* Use this macro when declaring classes that implement this interface. */
      66                 : #define NS_DECL_NSIXMLCONTENTBUILDER \
      67                 :   NS_SCRIPTABLE NS_IMETHOD Clear(nsIDOMElement *root); \
      68                 :   NS_SCRIPTABLE NS_IMETHOD SetDocument(nsIDOMDocument *doc); \
      69                 :   NS_SCRIPTABLE NS_IMETHOD SetElementNamespace(const nsAString & ns); \
      70                 :   NS_SCRIPTABLE NS_IMETHOD BeginElement(const nsAString & tagname); \
      71                 :   NS_SCRIPTABLE NS_IMETHOD EndElement(void); \
      72                 :   NS_SCRIPTABLE NS_IMETHOD Attrib(const nsAString & name, const nsAString & value); \
      73                 :   NS_SCRIPTABLE NS_IMETHOD TextNode(const nsAString & text); \
      74                 :   NS_SCRIPTABLE NS_IMETHOD GetRoot(nsIDOMElement * *aRoot); \
      75                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrent(nsIDOMElement * *aCurrent); 
      76                 : 
      77                 : /* Use this macro to declare functions that forward the behavior of this interface to another object. */
      78                 : #define NS_FORWARD_NSIXMLCONTENTBUILDER(_to) \
      79                 :   NS_SCRIPTABLE NS_IMETHOD Clear(nsIDOMElement *root) { return _to Clear(root); } \
      80                 :   NS_SCRIPTABLE NS_IMETHOD SetDocument(nsIDOMDocument *doc) { return _to SetDocument(doc); } \
      81                 :   NS_SCRIPTABLE NS_IMETHOD SetElementNamespace(const nsAString & ns) { return _to SetElementNamespace(ns); } \
      82                 :   NS_SCRIPTABLE NS_IMETHOD BeginElement(const nsAString & tagname) { return _to BeginElement(tagname); } \
      83                 :   NS_SCRIPTABLE NS_IMETHOD EndElement(void) { return _to EndElement(); } \
      84                 :   NS_SCRIPTABLE NS_IMETHOD Attrib(const nsAString & name, const nsAString & value) { return _to Attrib(name, value); } \
      85                 :   NS_SCRIPTABLE NS_IMETHOD TextNode(const nsAString & text) { return _to TextNode(text); } \
      86                 :   NS_SCRIPTABLE NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) { return _to GetRoot(aRoot); } \
      87                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrent(nsIDOMElement * *aCurrent) { return _to GetCurrent(aCurrent); } 
      88                 : 
      89                 : /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
      90                 : #define NS_FORWARD_SAFE_NSIXMLCONTENTBUILDER(_to) \
      91                 :   NS_SCRIPTABLE NS_IMETHOD Clear(nsIDOMElement *root) { return !_to ? NS_ERROR_NULL_POINTER : _to->Clear(root); } \
      92                 :   NS_SCRIPTABLE NS_IMETHOD SetDocument(nsIDOMDocument *doc) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocument(doc); } \
      93                 :   NS_SCRIPTABLE NS_IMETHOD SetElementNamespace(const nsAString & ns) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetElementNamespace(ns); } \
      94                 :   NS_SCRIPTABLE NS_IMETHOD BeginElement(const nsAString & tagname) { return !_to ? NS_ERROR_NULL_POINTER : _to->BeginElement(tagname); } \
      95                 :   NS_SCRIPTABLE NS_IMETHOD EndElement(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->EndElement(); } \
      96                 :   NS_SCRIPTABLE NS_IMETHOD Attrib(const nsAString & name, const nsAString & value) { return !_to ? NS_ERROR_NULL_POINTER : _to->Attrib(name, value); } \
      97                 :   NS_SCRIPTABLE NS_IMETHOD TextNode(const nsAString & text) { return !_to ? NS_ERROR_NULL_POINTER : _to->TextNode(text); } \
      98                 :   NS_SCRIPTABLE NS_IMETHOD GetRoot(nsIDOMElement * *aRoot) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRoot(aRoot); } \
      99                 :   NS_SCRIPTABLE NS_IMETHOD GetCurrent(nsIDOMElement * *aCurrent) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetCurrent(aCurrent); } 
     100                 : 
     101                 : #if 0
     102                 : /* Use the code below as a template for the implementation class for this interface. */
     103                 : 
     104                 : /* Header file */
     105                 : class nsXMLContentBuilder : public nsIXMLContentBuilder
     106                 : {
     107                 : public:
     108                 :   NS_DECL_ISUPPORTS
     109                 :   NS_DECL_NSIXMLCONTENTBUILDER
     110                 : 
     111                 :   nsXMLContentBuilder();
     112                 : 
     113                 : private:
     114                 :   ~nsXMLContentBuilder();
     115                 : 
     116                 : protected:
     117                 :   /* additional members */
     118                 : };
     119                 : 
     120                 : /* Implementation file */
     121                 : NS_IMPL_ISUPPORTS1(nsXMLContentBuilder, nsIXMLContentBuilder)
     122                 : 
     123                 : nsXMLContentBuilder::nsXMLContentBuilder()
     124                 : {
     125                 :   /* member initializers and constructor code */
     126                 : }
     127                 : 
     128                 : nsXMLContentBuilder::~nsXMLContentBuilder()
     129                 : {
     130                 :   /* destructor code */
     131                 : }
     132                 : 
     133                 : /* void clear (in nsIDOMElement root); */
     134                 : NS_IMETHODIMP nsXMLContentBuilder::Clear(nsIDOMElement *root)
     135                 : {
     136                 :     return NS_ERROR_NOT_IMPLEMENTED;
     137                 : }
     138                 : 
     139                 : /* void setDocument (in nsIDOMDocument doc); */
     140                 : NS_IMETHODIMP nsXMLContentBuilder::SetDocument(nsIDOMDocument *doc)
     141                 : {
     142                 :     return NS_ERROR_NOT_IMPLEMENTED;
     143                 : }
     144                 : 
     145                 : /* void setElementNamespace (in AString ns); */
     146                 : NS_IMETHODIMP nsXMLContentBuilder::SetElementNamespace(const nsAString & ns)
     147                 : {
     148                 :     return NS_ERROR_NOT_IMPLEMENTED;
     149                 : }
     150                 : 
     151                 : /* void beginElement (in AString tagname); */
     152                 : NS_IMETHODIMP nsXMLContentBuilder::BeginElement(const nsAString & tagname)
     153                 : {
     154                 :     return NS_ERROR_NOT_IMPLEMENTED;
     155                 : }
     156                 : 
     157                 : /* void endElement (); */
     158                 : NS_IMETHODIMP nsXMLContentBuilder::EndElement()
     159                 : {
     160                 :     return NS_ERROR_NOT_IMPLEMENTED;
     161                 : }
     162                 : 
     163                 : /* void attrib (in AString name, in AString value); */
     164                 : NS_IMETHODIMP nsXMLContentBuilder::Attrib(const nsAString & name, const nsAString & value)
     165                 : {
     166                 :     return NS_ERROR_NOT_IMPLEMENTED;
     167                 : }
     168                 : 
     169                 : /* void textNode (in AString text); */
     170                 : NS_IMETHODIMP nsXMLContentBuilder::TextNode(const nsAString & text)
     171                 : {
     172                 :     return NS_ERROR_NOT_IMPLEMENTED;
     173                 : }
     174                 : 
     175                 : /* readonly attribute nsIDOMElement root; */
     176                 : NS_IMETHODIMP nsXMLContentBuilder::GetRoot(nsIDOMElement * *aRoot)
     177                 : {
     178                 :     return NS_ERROR_NOT_IMPLEMENTED;
     179                 : }
     180                 : 
     181                 : /* readonly attribute nsIDOMElement current; */
     182                 : NS_IMETHODIMP nsXMLContentBuilder::GetCurrent(nsIDOMElement * *aCurrent)
     183                 : {
     184                 :     return NS_ERROR_NOT_IMPLEMENTED;
     185                 : }
     186                 : 
     187                 : /* End of implementation class template. */
     188                 : #endif
     189                 : 
     190                 : 
     191                 : // {E09AF32D-2A54-4D76-9EF0-3070E83F8BE7}
     192                 : #define NS_XMLCONTENTBUILDER_CID \
     193                 : { 0xe09af32d, 0x2a54, 0x4d76, { 0x9e, 0xf0, 0x30, 0x70, 0xe8, 0x3f, 0x8b, 0xe7 } }
     194                 :     
     195                 : #define NS_XMLCONTENTBUILDER_CONTRACTID "@mozilla.org/xtf/xml-contentbuilder;1"
     196                 : nsresult NS_NewXMLContentBuilder(nsIXMLContentBuilder** aResult);
     197                 : 
     198                 : #endif /* __gen_nsIXMLContentBuilder_h__ */

Generated by: LCOV version 1.7