Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions
nsPageFrame.cpp File Reference
#include "nsPageFrame.h"
#include "nsHTMLParts.h"
#include "nsIContent.h"
#include "nsPresContext.h"
#include "nsStyleContext.h"
#include "nsIRenderingContext.h"
#include "nsHTMLAtoms.h"
#include "nsLayoutAtoms.h"
#include "nsIPresShell.h"
#include "nsCSSFrameConstructor.h"
#include "nsIDeviceContext.h"
#include "nsReadableUtils.h"
#include "nsPageContentFrame.h"
#include "nsTextFrame.h"
#include "nsIView.h"
#include "nsCSSRendering.h"
#include "nsHTMLContainerFrame.h"
#include "nsSimplePageSequence.h"
#include "nsRegion.h"
#include "nsIViewManager.h"
#include "nsTextFormatter.h"
#include "nsIFontMetrics.h"
#include "nsIPrintSettings.h"
#include "nsGfxCIID.h"
#include "nsIServiceManager.h"
#include "nsIWidget.h"
#include "nsWidgetsCID.h"
#include "prlog.h"

Go to the source code of this file.

Defines

#define PR_PL(_p1)

Functions

static NS_DEFINE_CID (kCChildCID, NS_CHILD_CID)
nsresult NS_NewPageFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)
nsresult NS_NewPageBreakFrame (nsIPresShell *aPresShell, nsIFrame **aNewFrame)

Define Documentation

#define PR_PL (   _p1)

Definition at line 91 of file nsPageFrame.cpp.


Function Documentation

static NS_DEFINE_CID ( kCChildCID  ,
NS_CHILD_CID   
) [static]
nsresult NS_NewPageBreakFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 697 of file nsPageFrame.cpp.

{
  NS_PRECONDITION(aPresShell && aNewFrame, "null PresShell or OUT ptr");
#ifdef DEBUG
  //check that we are only creating page break frames when printing
  NS_ASSERTION(aPresShell->GetPresContext()->IsPaginated(), "created a page break frame while not printing");
#endif

  nsPageBreakFrame* it = new (aPresShell) nsPageBreakFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the call graph for this function:

Here is the caller graph for this function:

nsresult NS_NewPageFrame ( nsIPresShell aPresShell,
nsIFrame **  aNewFrame 
)

Definition at line 98 of file nsPageFrame.cpp.

{
  NS_PRECONDITION(aNewFrame, "null OUT ptr");

  nsPageFrame* it = new (aPresShell) nsPageFrame;
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  *aNewFrame = it;
  return NS_OK;
}

Here is the caller graph for this function: