PageRenderTime 113ms CodeModel.GetById 109ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

/gecko_api/include/nsIDOMDocumentStyle.h

http://firefox-mac-pdf.googlecode.com/
C++ Header | 100 lines | 48 code | 26 blank | 26 comment | 0 complexity | fa4dfebaa86743085f3cb43d359612d0 MD5 | raw file
  1/*
  2 * DO NOT EDIT.  THIS FILE IS GENERATED FROM /builds/tinderbox/XR-Trunk/Darwin_8.8.4_Depend/mozilla/dom/public/idl/stylesheets/nsIDOMDocumentStyle.idl
  3 */
  4
  5#ifndef __gen_nsIDOMDocumentStyle_h__
  6#define __gen_nsIDOMDocumentStyle_h__
  7
  8
  9#ifndef __gen_domstubs_h__
 10#include "domstubs.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
 18/* starting interface:    nsIDOMDocumentStyle */
 19#define NS_IDOMDOCUMENTSTYLE_IID_STR "3d9f4973-dd2e-48f5-b5f7-2634e09eadd9"
 20
 21#define NS_IDOMDOCUMENTSTYLE_IID \
 22  {0x3d9f4973, 0xdd2e, 0x48f5, \
 23    { 0xb5, 0xf7, 0x26, 0x34, 0xe0, 0x9e, 0xad, 0xd9 }}
 24
 25/**
 26 * The nsIDOMDocumentStyle interface is an interface to a document
 27 * object that supports style sheets in the Document Object Model.
 28 *
 29 * For more information on this interface please see
 30 * http://www.w3.org/TR/DOM-Level-2-Style
 31 *
 32 * @status FROZEN
 33 */
 34class NS_NO_VTABLE NS_SCRIPTABLE nsIDOMDocumentStyle : public nsISupports {
 35 public: 
 36
 37  NS_DECLARE_STATIC_IID_ACCESSOR(NS_IDOMDOCUMENTSTYLE_IID)
 38
 39  /* readonly attribute nsIDOMStyleSheetList styleSheets; */
 40  NS_SCRIPTABLE NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets) = 0;
 41
 42};
 43
 44  NS_DEFINE_STATIC_IID_ACCESSOR(nsIDOMDocumentStyle, NS_IDOMDOCUMENTSTYLE_IID)
 45
 46/* Use this macro when declaring classes that implement this interface. */
 47#define NS_DECL_NSIDOMDOCUMENTSTYLE \
 48  NS_SCRIPTABLE NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets); 
 49
 50/* Use this macro to declare functions that forward the behavior of this interface to another object. */
 51#define NS_FORWARD_NSIDOMDOCUMENTSTYLE(_to) \
 52  NS_SCRIPTABLE NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets) { return _to GetStyleSheets(aStyleSheets); } 
 53
 54/* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
 55#define NS_FORWARD_SAFE_NSIDOMDOCUMENTSTYLE(_to) \
 56  NS_SCRIPTABLE NS_IMETHOD GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetStyleSheets(aStyleSheets); } 
 57
 58#if 0
 59/* Use the code below as a template for the implementation class for this interface. */
 60
 61/* Header file */
 62class nsDOMDocumentStyle : public nsIDOMDocumentStyle
 63{
 64public:
 65  NS_DECL_ISUPPORTS
 66  NS_DECL_NSIDOMDOCUMENTSTYLE
 67
 68  nsDOMDocumentStyle();
 69
 70private:
 71  ~nsDOMDocumentStyle();
 72
 73protected:
 74  /* additional members */
 75};
 76
 77/* Implementation file */
 78NS_IMPL_ISUPPORTS1(nsDOMDocumentStyle, nsIDOMDocumentStyle)
 79
 80nsDOMDocumentStyle::nsDOMDocumentStyle()
 81{
 82  /* member initializers and constructor code */
 83}
 84
 85nsDOMDocumentStyle::~nsDOMDocumentStyle()
 86{
 87  /* destructor code */
 88}
 89
 90/* readonly attribute nsIDOMStyleSheetList styleSheets; */
 91NS_IMETHODIMP nsDOMDocumentStyle::GetStyleSheets(nsIDOMStyleSheetList * *aStyleSheets)
 92{
 93    return NS_ERROR_NOT_IMPLEMENTED;
 94}
 95
 96/* End of implementation class template. */
 97#endif
 98
 99
100#endif /* __gen_nsIDOMDocumentStyle_h__ */