Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsHTMLContentSerializer.cpp File Reference
#include "nsHTMLContentSerializer.h"
#include "nsIDOMElement.h"
#include "nsIDOMText.h"
#include "nsIContent.h"
#include "nsIDocument.h"
#include "nsIDOMDocument.h"
#include "nsINameSpaceManager.h"
#include "nsString.h"
#include "nsUnicharUtils.h"
#include "nsXPIDLString.h"
#include "nsIServiceManager.h"
#include "nsIDocumentEncoder.h"
#include "nsLayoutAtoms.h"
#include "nsHTMLAtoms.h"
#include "nsIURI.h"
#include "nsNetUtil.h"
#include "nsEscape.h"
#include "nsITextToSubURI.h"
#include "nsCRT.h"
#include "nsIParserService.h"
#include "nsContentUtils.h"
#include "nsILineBreakerFactory.h"
#include "nsLWBrkCIID.h"

Go to the source code of this file.

Defines

#define kIndentStr   NS_LITERAL_STRING(" ")
#define kLessThan   NS_LITERAL_STRING("<")
#define kGreaterThan   NS_LITERAL_STRING(">")
#define kEndTag   NS_LITERAL_STRING("</")

Functions

static NS_DEFINE_CID (kLWBrkCID, NS_LWBRK_CID)
nsresult NS_NewHTMLContentSerializer (nsIContentSerializer **aSerializer)

Variables

static const char kMozStr [] = "moz"
static const PRInt32 kLongLineLen = 128
static const PRUint16 kValNBSP = 160
static const char kEntityNBSP [] = "nbsp"
static const PRUint16 kGTVal = 62
static const char * kEntities []
static const char * kAttrEntities []

Define Documentation

Definition at line 66 of file nsHTMLContentSerializer.cpp.

Definition at line 65 of file nsHTMLContentSerializer.cpp.

Definition at line 63 of file nsHTMLContentSerializer.cpp.

Definition at line 64 of file nsHTMLContentSerializer.cpp.


Function Documentation

static NS_DEFINE_CID ( kLWBrkCID  ,
NS_LWBRK_CID   
) [static]

Definition at line 73 of file nsHTMLContentSerializer.cpp.

{
  nsHTMLContentSerializer* it = new nsHTMLContentSerializer();
  if (!it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }

  return CallQueryInterface(it, aSerializer);
}

Here is the call graph for this function:


Variable Documentation

const char* kAttrEntities[] [static]
Initial value:
 {
  "", "", "", "", "", "", "", "", "", "",
  "", "", "", "", "", "", "", "", "", "",
  "", "", "", "", "", "", "", "", "", "",
  "", "", "", "", "quot", "", "", "", "amp", "",
  "", "", "", "", "", "", "", "", "", "",
  "", "", "", "", "", "", "", "", "", "",
  "lt", "", "gt"
}

Definition at line 888 of file nsHTMLContentSerializer.cpp.

const char* kEntities[] [static]
Initial value:
 {
  "", "", "", "", "", "", "", "", "", "",
  "", "", "", "", "", "", "", "", "", "",
  "", "", "", "", "", "", "", "", "", "",
  "", "", "", "", "", "", "", "", "amp", "",
  "", "", "", "", "", "", "", "", "", "",
  "", "", "", "", "", "", "", "", "", "",
  "lt", "", "gt"
}

Definition at line 878 of file nsHTMLContentSerializer.cpp.

const char kEntityNBSP[] = "nbsp" [static]

Definition at line 875 of file nsHTMLContentSerializer.cpp.

const PRUint16 kGTVal = 62 [static]

Definition at line 877 of file nsHTMLContentSerializer.cpp.

const PRInt32 kLongLineLen = 128 [static]

Definition at line 71 of file nsHTMLContentSerializer.cpp.

const char kMozStr[] = "moz" [static]

Definition at line 68 of file nsHTMLContentSerializer.cpp.

const PRUint16 kValNBSP = 160 [static]

Definition at line 874 of file nsHTMLContentSerializer.cpp.