Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
nsSimplePageSequence.cpp File Reference
#include "nsCOMPtr.h"
#include "nsReadableUtils.h"
#include "nsSimplePageSequence.h"
#include "nsPresContext.h"
#include "nsIRenderingContext.h"
#include "nsHTMLAtoms.h"
#include "nsIDeviceContext.h"
#include "nsIViewManager.h"
#include "nsIPresShell.h"
#include "nsIFontMetrics.h"
#include "nsIPrintSettings.h"
#include "nsPageFrame.h"
#include "nsStyleConsts.h"
#include "nsRegion.h"
#include "nsLayoutAtoms.h"
#include "nsCSSFrameConstructor.h"
#include "nsContentUtils.h"
#include "nsDateTimeFormatCID.h"
#include "nsIPrintOptions.h"
#include "nsGfxCIID.h"
#include "nsIServiceManager.h"
#include "prlog.h"

Go to the source code of this file.

Defines

#define OFFSET_NOT_SET   -1
#define PR_PL(_p1)

Functions

static NS_DEFINE_CID (kDateTimeFormatCID, NS_DATETIMEFORMAT_CID)
nsresult NS_NewSimplePageSequenceFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Variables

static const char sPrintOptionsContractID [] = "@mozilla.org/gfx/printsettings-service;1"

Define Documentation

Definition at line 59 of file nsSimplePageSequence.cpp.

#define PR_PL (   _p1)

Definition at line 76 of file nsSimplePageSequence.cpp.


Function Documentation

static NS_DEFINE_CID ( kDateTimeFormatCID  ,
NS_DATETIMEFORMAT_CID   
) [static]
nsresult NS_NewSimplePageSequenceFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 110 of file nsSimplePageSequence.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");
  if (nsnull == aNewFrame) {
    return NS_ERROR_NULL_POINTER;
  }
  nsSimplePageSequenceFrame*  it = new (aPresShell) nsSimplePageSequenceFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function:


Variable Documentation

const char sPrintOptionsContractID[] = "@mozilla.org/gfx/printsettings-service;1" [static]

Definition at line 67 of file nsSimplePageSequence.cpp.