Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Functions | Variables
nsINameSpaceManager.h File Reference
#include "nsISupports.h"
#include "nsAString.h"

Go to the source code of this file.

Classes

class  nsINameSpaceManager
 The Name Space Manager tracks the associtation between a NameSpace URI and the PRInt32 runtime id. More...

Defines

#define kNameSpaceID_Unknown   -1
#define kNameSpaceID_XMLNS   1
#define kNameSpaceID_XML   2
#define kNameSpaceID_XHTML   3
#define kNameSpaceID_XLink   4
#define kNameSpaceID_XSLT   5
#define kNameSpaceID_XBL   6
#define kNameSpaceID_MathML   7
#define kNameSpaceID_RDF   8
#define kNameSpaceID_XUL   9
#define kNameSpaceID_SVG   10
#define kNameSpaceID_XMLEvents   11
#define kNameSpaceID_XHTML2_Unofficial   12
#define kNameSpaceID_WAIRoles   13
#define kNameSpaceID_WAIProperties   14
#define kNameSpaceID_LastBuiltin   14
#define NS_NAMESPACEMANAGER_CONTRACTID   "@mozilla.org/content/namespacemanager;1"
#define NS_INAMESPACEMANAGER_IID

Functions

nsresult NS_GetNameSpaceManager (nsINameSpaceManager **aInstancePtrResult)
void NS_NameSpaceManagerShutdown ()

Variables

static const PRInt32 kNameSpaceID_None = 0

Define Documentation

Definition at line 65 of file nsINameSpaceManager.h.

Definition at line 57 of file nsINameSpaceManager.h.

Definition at line 58 of file nsINameSpaceManager.h.

Definition at line 60 of file nsINameSpaceManager.h.

Definition at line 47 of file nsINameSpaceManager.h.

Definition at line 64 of file nsINameSpaceManager.h.

Definition at line 63 of file nsINameSpaceManager.h.

Definition at line 56 of file nsINameSpaceManager.h.

Definition at line 53 of file nsINameSpaceManager.h.

Definition at line 62 of file nsINameSpaceManager.h.

Definition at line 54 of file nsINameSpaceManager.h.

Definition at line 52 of file nsINameSpaceManager.h.

Definition at line 61 of file nsINameSpaceManager.h.

Definition at line 51 of file nsINameSpaceManager.h.

Definition at line 55 of file nsINameSpaceManager.h.

Definition at line 59 of file nsINameSpaceManager.h.

Value:
{ 0x30977ca5, 0xc6af, 0x4687, \
    { 0x88, 0x43, 0xa9, 0x7d, 0x0f, 0x95, 0x00, 0x17 } }

Definition at line 69 of file nsINameSpaceManager.h.

#define NS_NAMESPACEMANAGER_CONTRACTID   "@mozilla.org/content/namespacemanager;1"

Definition at line 67 of file nsINameSpaceManager.h.


Function Documentation

Definition at line 329 of file nsNameSpaceManager.cpp.

{
  NS_ENSURE_ARG_POINTER(aInstancePtrResult);

  if (!gNameSpaceManager) {
    nsCOMPtr<NameSpaceManagerImpl> manager = new NameSpaceManagerImpl();
    if (manager) {
      nsresult rv = manager->Init();
      if (NS_SUCCEEDED(rv)) {
        manager.swap(gNameSpaceManager);
      }
    }
  }

  *aInstancePtrResult = gNameSpaceManager;
  NS_ENSURE_TRUE(gNameSpaceManager, NS_ERROR_OUT_OF_MEMORY);

  NS_ADDREF(*aInstancePtrResult);

  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 352 of file nsNameSpaceManager.cpp.

Here is the caller graph for this function:


Variable Documentation

Definition at line 50 of file nsINameSpaceManager.h.