Back to index

lightning-sunbird  0.9+nobinonly
Classes | Defines | Enumerations | Functions
nsIPresShell.h File Reference
#include "nsISupports.h"
#include "nsCoord.h"
#include "nsEvent.h"
#include "nsReflowType.h"
#include "nsCompatibility.h"
#include "nsCOMArray.h"
#include "nsFrameManagerBase.h"
#include "mozFlushType.h"
#include "nsWeakReference.h"
#include <stdio.h>

Go to the source code of this file.

Classes

class  nsIPresShell_base
 Presentation shell interface. More...
class  nsIPresShell
class  nsIPresShell_MOZILLA_1_8_BRANCH
class  nsIPresShell_MOZILLA_1_8_BRANCH2

Defines

#define NS_IPRESSHELL_IID
#define NS_PRESSHELL_SCROLL_TOP   0
#define NS_PRESSHELL_SCROLL_BOTTOM   100
#define NS_PRESSHELL_SCROLL_LEFT   0
#define NS_PRESSHELL_SCROLL_RIGHT   100
#define NS_PRESSHELL_SCROLL_CENTER   50
#define NS_PRESSHELL_SCROLL_ANYWHERE   -1
#define NS_PRESSHELL_SCROLL_IF_NOT_VISIBLE   -2
#define VERIFY_REFLOW_ON   0x01
#define VERIFY_REFLOW_NOISY   0x02
#define VERIFY_REFLOW_ALL   0x04
#define VERIFY_REFLOW_DUMP_COMMANDS   0x08
#define VERIFY_REFLOW_NOISY_RC   0x10
#define VERIFY_REFLOW_REALLY_NOISY_RC   0x20
#define VERIFY_REFLOW_INCLUDE_SPACE_MANAGER   0x40
#define VERIFY_REFLOW_DURING_RESIZE_REFLOW   0x80
#define NS_IPRESSHELL_MOZILLA_1_8_BRANCH_IID
#define NS_IPRESSHELL_MOZILLA_1_8_BRANCH2_IID

Enumerations

enum  nsAttributeChangeType { eChangeType_Set = 0, eChangeType_Remove = 1 }

Functions

nsresult NS_NewPresShell (nsIPresShell **aInstancePtrResult)
 Create a new empty presentation shell.

Define Documentation

Value:
{ 0x0672be76, 0x1047, 0x4905, \
  {0xad, 0xd1, 0xc5, 0xc6, 0x90, 0xe8, 0x70, 0x3a} }

Definition at line 94 of file nsIPresShell.h.

Value:
{ 0x5187f765, 0x895b, 0x4566, \
 { 0x99, 0x7d, 0xd8, 0xd8, 0xbf, 0xa4, 0x74, 0x21 } }

Definition at line 777 of file nsIPresShell.h.

Value:
{ 0x365C83FB, 0x7D4C, 0x4B53, \
  { 0x84, 0xde, 0xa5, 0xcc, 0x9a, 0x05, 0x9a, 0x26 } }

Definition at line 758 of file nsIPresShell.h.

Definition at line 104 of file nsIPresShell.h.

Definition at line 100 of file nsIPresShell.h.

Definition at line 103 of file nsIPresShell.h.

Definition at line 105 of file nsIPresShell.h.

Definition at line 101 of file nsIPresShell.h.

Definition at line 102 of file nsIPresShell.h.

Definition at line 99 of file nsIPresShell.h.

Definition at line 110 of file nsIPresShell.h.

Definition at line 111 of file nsIPresShell.h.

Definition at line 115 of file nsIPresShell.h.

Definition at line 114 of file nsIPresShell.h.

Definition at line 109 of file nsIPresShell.h.

Definition at line 112 of file nsIPresShell.h.

Definition at line 108 of file nsIPresShell.h.

Definition at line 113 of file nsIPresShell.h.


Enumeration Type Documentation

Enumerator:
eChangeType_Set 
eChangeType_Remove 

Definition at line 122 of file nsIPresShell.h.

                           {
  eChangeType_Set = 0,       // Set attribute
  eChangeType_Remove = 1     // Remove attribute
};

Function Documentation

nsresult NS_NewPresShell ( nsIPresShell **  aInstancePtrResult)

Create a new empty presentation shell.

Upon success, call Init before attempting to use the shell.

Definition at line 1711 of file nsPresShell.cpp.

{
  NS_PRECONDITION(nsnull != aInstancePtrResult, "null ptr");
  if (nsnull == aInstancePtrResult) {
    return NS_ERROR_NULL_POINTER;
  }
  PresShell* it = new PresShell();
  if (nsnull == it) {
    return NS_ERROR_OUT_OF_MEMORY;
  }
  return it->QueryInterface(NS_GET_IID(nsIPresShell),
                            (void **) aInstancePtrResult);
}

Here is the caller graph for this function: