WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIDocumentLoaderFactory

IID:5e7d2967-5a07-444f-95d5-25b533252d38
Inherits From:nsISupports

To get a component that implements nsIDocumentLoaderFactory for a given mimetype, use nsICategoryManager to find an entry with the mimetype as its name in the category "Gecko-Content-Viewers". The value of the entry is the contractid of the component. The component is a service, so use GetService, not CreateInstance to get it.

This interface is implemented by the following components:


Methods

nsIDocument createBlankDocument ( nsILoadGroup loadGroup , nsIPrincipal principal ) nsIContentViewer createInstance ( char* command , nsIChannel channel , nsILoadGroup loadGroup , char* contentType , nsISupports container , nsISupports extraInfo , out nsIStreamListener docListenerResult ) nsIContentViewer createInstanceForDocument ( nsISupports container , nsIDocument document , char* command )

nsIDocument createBlankDocument ( nsILoadGroup loadGroup , nsIPrincipal principal )

Create a blank document using the given loadgroup and given principal. principal is allowed to be null, in which case the new document will get the about:blank codebase principal.

Arguments:
loadGroup
principal

nsIContentViewer createInstance ( char* command , nsIChannel channel , nsILoadGroup loadGroup , char* contentType , nsISupports container , nsISupports extraInfo , out nsIStreamListener docListenerResult )

Arguments:
command
channel
loadGroup
contentType
container
extraInfo
docListenerResult

nsIContentViewer createInstanceForDocument ( nsISupports container , nsIDocument document , char* command )

Arguments:
container
document
command

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com