Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions
nsIXULDocument.h File Reference
#include "nsISupports.h"
#include "nsString.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  nsIXULDocument
 XUL extensions to nsIDocument. More...

Defines

#define NS_IXULDOCUMENT_IID   { 0x954f0811, 0x81dc, 0x11d2, { 0xb5, 0x2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }

Functions

nsresult NS_NewXULDocument (nsIXULDocument **result)

Define Documentation

#define NS_IXULDOCUMENT_IID   { 0x954f0811, 0x81dc, 0x11d2, { 0xb5, 0x2a, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0 } }

Definition at line 67 of file nsIXULDocument.h.


Function Documentation

Definition at line 445 of file nsXULDocument.cpp.

{
    NS_PRECONDITION(result != nsnull, "null ptr");
    if (! result)
        return NS_ERROR_NULL_POINTER;

    nsXULDocument* doc = new nsXULDocument();
    if (! doc)
        return NS_ERROR_OUT_OF_MEMORY;

    NS_ADDREF(doc);

    nsresult rv;
    if (NS_FAILED(rv = doc->Init())) {
        NS_RELEASE(doc);
        return rv;
    }

    *result = doc;
    return NS_OK;
}

Here is the call graph for this function: