/* * DO NOT EDIT. THIS FILE IS GENERATED FROM nsISchemaLoader.idl */ #ifndef __gen_nsISchemaLoader_h__ #define __gen_nsISchemaLoader_h__ #ifndef __gen_nsISupports_h__ #include "nsISupports.h" #endif /* For IDL files that don't want to include root IDL files. */ #ifndef NS_NO_VTABLE #define NS_NO_VTABLE #endif class nsISchema; /* forward declaration */ class nsISchemaType; /* forward declaration */ class nsIDOMElement; /* forward declaration */ class nsISchemaLoadListener; /* forward declaration */ /* starting interface: nsISchemaLoader */ #define NS_ISCHEMALOADER_IID_STR "3c14a032-6f4e-11d5-9b46-000064657374" #define NS_ISCHEMALOADER_IID \ {0x3c14a032, 0x6f4e, 0x11d5, \ { 0x9b, 0x46, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }} class NS_NO_VTABLE nsISchemaLoader : public nsISupports { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCHEMALOADER_IID) /* nsISchema load (in AString schemaURI); */ NS_IMETHOD Load(const nsAString & schemaURI, nsISchema **_retval) = 0; /* void loadAsync (in AString schemaURI, in nsISchemaLoadListener listener); */ NS_IMETHOD LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener) = 0; /* nsISchema processSchemaElement (in nsIDOMElement element); */ NS_IMETHOD ProcessSchemaElement(nsIDOMElement *element, nsISchema **_retval) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISCHEMALOADER \ NS_IMETHOD Load(const nsAString & schemaURI, nsISchema **_retval); \ NS_IMETHOD LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener); \ NS_IMETHOD ProcessSchemaElement(nsIDOMElement *element, nsISchema **_retval); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISCHEMALOADER(_to) \ NS_IMETHOD Load(const nsAString & schemaURI, nsISchema **_retval) { return _to Load(schemaURI, _retval); } \ NS_IMETHOD LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener) { return _to LoadAsync(schemaURI, listener); } \ NS_IMETHOD ProcessSchemaElement(nsIDOMElement *element, nsISchema **_retval) { return _to ProcessSchemaElement(element, _retval); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISCHEMALOADER(_to) \ NS_IMETHOD Load(const nsAString & schemaURI, nsISchema **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->Load(schemaURI, _retval); } \ NS_IMETHOD LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener) { return !_to ? NS_ERROR_NULL_POINTER : _to->LoadAsync(schemaURI, listener); } \ NS_IMETHOD ProcessSchemaElement(nsIDOMElement *element, nsISchema **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->ProcessSchemaElement(element, _retval); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsSchemaLoader : public nsISchemaLoader { public: NS_DECL_ISUPPORTS NS_DECL_NSISCHEMALOADER nsSchemaLoader(); virtual ~nsSchemaLoader(); /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsSchemaLoader, nsISchemaLoader) nsSchemaLoader::nsSchemaLoader() { NS_INIT_ISUPPORTS(); /* member initializers and constructor code */ } nsSchemaLoader::~nsSchemaLoader() { /* destructor code */ } /* nsISchema load (in AString schemaURI); */ NS_IMETHODIMP nsSchemaLoader::Load(const nsAString & schemaURI, nsISchema **_retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* void loadAsync (in AString schemaURI, in nsISchemaLoadListener listener); */ NS_IMETHODIMP nsSchemaLoader::LoadAsync(const nsAString & schemaURI, nsISchemaLoadListener *listener) { return NS_ERROR_NOT_IMPLEMENTED; } /* nsISchema processSchemaElement (in nsIDOMElement element); */ NS_IMETHODIMP nsSchemaLoader::ProcessSchemaElement(nsIDOMElement *element, nsISchema **_retval) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif /* starting interface: nsISchemaLoadListener */ #define NS_ISCHEMALOADLISTENER_IID_STR "3c14a033-6f4e-11d5-9b46-000064657374" #define NS_ISCHEMALOADLISTENER_IID \ {0x3c14a033, 0x6f4e, 0x11d5, \ { 0x9b, 0x46, 0x00, 0x00, 0x64, 0x65, 0x73, 0x74 }} class NS_NO_VTABLE nsISchemaLoadListener : public nsISupports { public: NS_DEFINE_STATIC_IID_ACCESSOR(NS_ISCHEMALOADLISTENER_IID) /* void onLoad (in nsISchema schema); */ NS_IMETHOD OnLoad(nsISchema *schema) = 0; /* void onError (in PRInt32 status, in AString statusMessage); */ NS_IMETHOD OnError(PRInt32 status, const nsAString & statusMessage) = 0; }; /* Use this macro when declaring classes that implement this interface. */ #define NS_DECL_NSISCHEMALOADLISTENER \ NS_IMETHOD OnLoad(nsISchema *schema); \ NS_IMETHOD OnError(PRInt32 status, const nsAString & statusMessage); /* Use this macro to declare functions that forward the behavior of this interface to another object. */ #define NS_FORWARD_NSISCHEMALOADLISTENER(_to) \ NS_IMETHOD OnLoad(nsISchema *schema) { return _to OnLoad(schema); } \ NS_IMETHOD OnError(PRInt32 status, const nsAString & statusMessage) { return _to OnError(status, statusMessage); } /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */ #define NS_FORWARD_SAFE_NSISCHEMALOADLISTENER(_to) \ NS_IMETHOD OnLoad(nsISchema *schema) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnLoad(schema); } \ NS_IMETHOD OnError(PRInt32 status, const nsAString & statusMessage) { return !_to ? NS_ERROR_NULL_POINTER : _to->OnError(status, statusMessage); } #if 0 /* Use the code below as a template for the implementation class for this interface. */ /* Header file */ class nsSchemaLoadListener : public nsISchemaLoadListener { public: NS_DECL_ISUPPORTS NS_DECL_NSISCHEMALOADLISTENER nsSchemaLoadListener(); virtual ~nsSchemaLoadListener(); /* additional members */ }; /* Implementation file */ NS_IMPL_ISUPPORTS1(nsSchemaLoadListener, nsISchemaLoadListener) nsSchemaLoadListener::nsSchemaLoadListener() { NS_INIT_ISUPPORTS(); /* member initializers and constructor code */ } nsSchemaLoadListener::~nsSchemaLoadListener() { /* destructor code */ } /* void onLoad (in nsISchema schema); */ NS_IMETHODIMP nsSchemaLoadListener::OnLoad(nsISchema *schema) { return NS_ERROR_NOT_IMPLEMENTED; } /* void onError (in PRInt32 status, in AString statusMessage); */ NS_IMETHODIMP nsSchemaLoadListener::OnError(PRInt32 status, const nsAString & statusMessage) { return NS_ERROR_NOT_IMPLEMENTED; } /* End of implementation class template. */ #endif #define NS_SCHEMALOADER_CID \ { /* 5adc10f0-74e1-11d5-9b49-00104bdf5339 */ \ 0x5adc10f0, 0x74e1, 0x11d5, \ {0x9b, 0x49, 0x00, 0x10, 0x4b, 0xdf, 0x53, 0x39}} #define NS_SCHEMALOADER_CONTRACTID "@mozilla.org/xmlextras/schemas/schemaloader;1" #define NS_BUILTINSCHEMACOLLECTION_CID \ { /* a83b0823-f10e-4235-9859-88a5abd2ed54 */ \ 0xa83b0823, 0xf10e, 0x4235, \ {0x98, 0x59, 0x88, 0xa5, 0xab, 0xd2, 0xed, 0x54}} #define NS_BUILTINSCHEMACOLLECTION_CONTRACTID "@mozilla.org/xmlextras/schemas/builtinschemacollection;1" #define NS_ERROR_SCHEMA_NOT_SCHEMA_ELEMENT NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 1) #define NS_ERROR_SCHEMA_UNKNOWN_TARGET_NAMESPACE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 2) #define NS_ERROR_SCHEMA_UNKNOWN_TYPE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 3) #define NS_ERROR_SCHEMA_UNKNOWN_PREFIX NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 4) #define NS_ERROR_SCHEMA_INVALID_STRUCTURE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 5) #define NS_ERROR_SCHEMA_INVALID_TYPE_USAGE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 6) #define NS_ERROR_SCHEMA_MISSING_TYPE NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 7) #define NS_ERROR_SCHEMA_FACET_VALUE_ERROR NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 8) #define NS_ERROR_SCHEMA_LOADING_ERROR NS_ERROR_GENERATE_FAILURE(NS_ERROR_MODULE_GENERAL, 9) #endif /* __gen_nsISchemaLoader_h__ */ .