Back to index

lightning-sunbird  0.9+nobinonly
Classes | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions | Private Attributes | Friends
NS_GFX Protocol Reference

Class nsPrintOptions. More...

#include <nsColorNames.h>

Inheritance diagram for NS_GFX:
Inheritance graph
[legend]
Collaboration diagram for NS_GFX:
Collaboration graph
[legend]

List of all members.

Classes

struct  nsRectFast
struct  RgnRect

Public Member Functions

 nsFontCache ()
virtual ~nsFontCache ()
virtual nsresult Init (nsIDeviceContext *aContext)
 Initialize the Blender dc 11/4/98.
virtual nsresult GetDeviceContext (nsIDeviceContext *&aContext) const
virtual nsresult GetMetricsFor (const nsFont &aFont, nsIAtom *aLangGroup, nsIFontMetrics *&aMetrics)
 Get the nsIFontMetrics that describe the properties of an nsFont.
nsresult FontMetricsDeleted (const nsIFontMetrics *aFontMetrics)
 Notification when a font metrics instance created for this device is about to be deleted.
nsresult Compact ()
nsresult Flush ()
virtual nsresult CreateFontMetricsInstance (nsIFontMetrics **fm)
 DeviceContextImpl ()
NS_DECL_ISUPPORTS
NS_DECL_NSIOBSERVER NS_IMETHOD 
Init (nsNativeWidget aWidget)
 Initialize the device context from a widget.
NS_IMETHOD CreateRenderingContext (nsIView *aView, nsIRenderingContext *&aContext)
 Create a rendering context and initialize it from an nsIView.
NS_IMETHOD CreateRenderingContext (nsIWidget *aWidget, nsIRenderingContext *&aContext)
 Create a rendering context and initialize it from an nsIWidget.
NS_IMETHOD CreateRenderingContext (nsIRenderingContext *&aContext)
 Create a rendering context and initialize it.
NS_IMETHOD CreateRenderingContext (nsIDrawingSurface *aSurface, nsIRenderingContext *&aContext)
 Create a rendering context and initialize it from an nsIDrawingSurface*.
NS_IMETHOD CreateRenderingContextInstance (nsIRenderingContext *&aContext)
 Create an uninitalised rendering context.
NS_IMETHOD GetCanonicalPixelScale (float &aScale) const
 Get the value used to scale a "standard" pixel to a pixel of the same physical size for this device.
NS_IMETHOD SetCanonicalPixelScale (float aScale)
 Get the value used to scale a "standard" pixel to a pixel of the same physical size for this device.
NS_IMETHOD GetMetricsFor (const nsFont &aFont, nsIAtom *aLangGroup, nsIFontMetrics *&aMetrics)
 Get the nsIFontMetrics that describe the properties of an nsFont.
NS_IMETHOD GetMetricsFor (const nsFont &aFont, nsIFontMetrics *&aMetrics)
 Get the nsIFontMetrics that describe the properties of an nsFont.
NS_IMETHOD SetZoom (float aZoom)
NS_IMETHOD GetZoom (float &aZoom) const
NS_IMETHOD FirstExistingFont (const nsFont &aFont, nsString &aFaceName)
NS_IMETHOD GetLocalFontName (const nsString &aFaceName, nsString &aLocalName, PRBool &aAliased)
NS_IMETHOD CreateFontCache ()
NS_IMETHOD FontMetricsDeleted (const nsIFontMetrics *aFontMetrics)
 Notification when a font metrics instance created for this device is about to be deleted.
NS_IMETHOD FlushFontCache (void)
 Attempt to free up resoruces by flushing out any fonts no longer referenced by anything other than the font cache itself.
NS_IMETHOD GetDepth (PRUint32 &aDepth)
 Return the bit depth of the device.
NS_IMETHOD GetPaletteInfo (nsPaletteInfo &aPaletteInfo)
 Returns information about the device's palette capabilities.
NS_IMETHOD PrepareDocument (PRUnichar *aTitle, PRUnichar *aPrintToFileName)
 This is enables the DeviceContext to anything it needs to do for Printing before Reflow and BeginDocument is where work can be done after reflow.
NS_IMETHOD AbortDocument (void)
 Inform the output device that output of a document is being aborted.
 nsFont (const char *aName, PRUint8 aStyle, PRUint8 aVariant, PRUint16 aWeight, PRUint8 aDecoration, nscoord aSize, float aSizeAdjust=0.0f)
 nsFont (const nsString &aName, PRUint8 aStyle, PRUint8 aVariant, PRUint16 aWeight, PRUint8 aDecoration, nscoord aSize, float aSizeAdjust=0.0f)
 nsFont (const nsFont &aFont)
 nsFont ()
 ~nsFont ()
PRBool operator== (const nsFont &aOther) const
PRBool Equals (const nsFont &aOther) const
nsFontoperator= (const nsFont &aOther)
PRBool EnumerateFamilies (nsFontFamilyEnumFunc aFunc, void *aData) const
void GetFirstFamily (nsString &aFamily) const
 nsRect ()
 nsRect (const nsRect &aRect)
 nsRect (const nsPoint &aOrigin, const nsSize &aSize)
 nsRect (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)
PRBool IsEmpty () const
void Empty ()
PRBool Contains (const nsRect &aRect) const
PRBool Contains (nscoord aX, nscoord aY) const
PRBool Contains (const nsPoint &aPoint) const
PRBool Intersects (const nsRect &aRect) const
PRBool IntersectRect (const nsRect &aRect1, const nsRect &aRect2)
PRBool UnionRect (const nsRect &aRect1, const nsRect &aRect2)
void SetRect (nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight)
void MoveTo (nscoord aX, nscoord aY)
void MoveTo (const nsPoint &aPoint)
void MoveBy (nscoord aDx, nscoord aDy)
void MoveBy (const nsPoint &aPoint)
void SizeTo (nscoord aWidth, nscoord aHeight)
void SizeTo (const nsSize &aSize)
void SizeBy (nscoord aDeltaWidth, nscoord aDeltaHeight)
void Inflate (nscoord aDx, nscoord aDy)
void Inflate (const nsSize &aSize)
void Inflate (const nsMargin &aMargin)
void Deflate (nscoord aDx, nscoord aDy)
void Deflate (const nsSize &aSize)
void Deflate (const nsMargin &aMargin)
PRBool operator== (const nsRect &aRect) const
PRBool operator!= (const nsRect &aRect) const
nsRect operator+ (const nsPoint &aPoint) const
nsRect operator- (const nsPoint &aPoint) const
nsRectoperator+= (const nsPoint &aPoint)
nsRectoperator-= (const nsPoint &aPoint)
nsRectoperator*= (const float aScale)
nsRectScaleRoundOut (const float aScale)
nsRectScaleRoundIn (const float aScale)
nsPoint TopLeft () const
nsPoint TopRight () const
nsPoint BottomLeft () const
nsPoint BottomRight () const
nsSize Size () const
nscoord XMost () const
nscoord YMost () const
 nsRegion ()
 nsRegion (const nsRect &aRect)
 nsRegion (const nsRegion &aRegion)
 ~nsRegion ()
nsRegionoperator= (const nsRect &aRect)
nsRegionoperator= (const nsRegion &aRegion)
nsRegionAnd (const nsRegion &aRgn1, const nsRegion &aRgn2)
nsRegionAnd (const nsRegion &aRegion, const nsRect &aRect)
nsRegionAnd (const nsRect &aRect, const nsRegion &aRegion)
nsRegionAnd (const nsRect &aRect1, const nsRect &aRect2)
nsRegionOr (const nsRegion &aRgn1, const nsRegion &aRgn2)
nsRegionOr (const nsRegion &aRegion, const nsRect &aRect)
nsRegionOr (const nsRect &aRect, const nsRegion &aRegion)
nsRegionOr (const nsRect &aRect1, const nsRect &aRect2)
nsRegionXor (const nsRegion &aRgn1, const nsRegion &aRgn2)
nsRegionXor (const nsRegion &aRegion, const nsRect &aRect)
nsRegionXor (const nsRect &aRect, const nsRegion &aRegion)
nsRegionXor (const nsRect &aRect1, const nsRect &aRect2)
nsRegionSub (const nsRegion &aRgn1, const nsRegion &aRgn2)
nsRegionSub (const nsRegion &aRegion, const nsRect &aRect)
nsRegionSub (const nsRect &aRect, const nsRegion &aRegion)
nsRegionSub (const nsRect &aRect1, const nsRect &aRect2)
void MoveBy (PRInt32 aXOffset, PRInt32 aYOffset)
void MoveBy (nsPoint aPt)
void SetEmpty ()
PRBool IsEmpty () const
PRBool IsComplex () const
PRBool IsEqual (const nsRegion &aRegion) const
PRUint32 GetNumRects () const
const nsRectGetBounds () const
void SimplifyOutward (PRUint32 aMaxRects)
 Make sure the region has at most aMaxRects by adding area to it if necessary.
void SimplifyInward (PRUint32 aMaxRects)
 Make sure the region has at most aMaxRects by removing area from it if necessary.
 nsRegionRectIterator (const nsRegion &aRegion)
const nsRectNext ()
const nsRectPrev ()
void Reset ()
 nsTransform2D (void)
 nsTransform2D (nsTransform2D *aTransform2D)
 ~nsTransform2D (void)
PRUint16 GetType (void)
 get the type of this transform
void SetToIdentity (void)
 set this transform to identity
void SetToScale (float sx, float sy)
 set this transform to a scale
void SetToTranslate (float tx, float ty)
 set this transform to a translation
void GetTranslation (float *ptX, float *ptY)
 get the translation portion of this transform
void GetTranslationCoord (nscoord *ptX, nscoord *ptY)
void SetTranslation (float tX, float tY)
 set the translation portion of this transform
float GetXTranslation (void)
 get the X translation portion of this transform
nscoord GetXTranslationCoord (void)
float GetYTranslation (void)
 get the Y translation portion of this transform
nscoord GetYTranslationCoord (void)
void SetMatrix (nsTransform2D *aTransform2D)
 set this matrix and type from another Transform2D
void Concatenate (nsTransform2D *newxform)
 post-multiply a new Transform
void PreConcatenate (nsTransform2D *newxform)
 pre-multiply a new Transform
void TransformNoXLate (float *ptX, float *ptY)
 apply nontranslation portion of matrix to vector
void TransformNoXLateCoord (nscoord *ptX, nscoord *ptY)
void Transform (float *ptX, float *ptY)
 apply matrix to vector
void TransformCoord (nscoord *ptX, nscoord *ptY)
void Transform (float *aX, float *aY, float *aWidth, float *aHeight)
 apply matrix to rect
void TransformCoord (nscoord *aX, nscoord *aY, nscoord *aWidth, nscoord *aHeight)
void ScaleXCoords (const nscoord *aSrc, PRUint32 aNumCoords, PRIntn *aDst)
 Scale an array of X/Y coordinates by the X/Y scale factor in the matrix.
void ScaleYCoords (const nscoord *aSrc, PRUint32 aNumCoords, PRIntn *aDst)
void AddTranslation (float ptX, float ptY)
 add a translation to a Transform via x, y pair
void AddScale (float ptX, float ptY)
 add a scale to a Transform via x, y pair
 nsBlender ()
 
General constructor for a nsBlender object
NS_DECL_ISUPPORTS NS_IMETHOD Init (nsIDeviceContext *aContext)
 Initialize the Blender dc 11/4/98.
NS_IMETHOD Blend (PRInt32 aSX, PRInt32 aSY, PRInt32 aWidth, PRInt32 aHeight, nsIDrawingSurface *aSrc, nsIDrawingSurface *aDest, PRInt32 aDX, PRInt32 aDY, float aSrcOpacity, nsIDrawingSurface *aSecondSrc=nsnull, nscolor aSrcBackColor=NS_RGB(0, 0, 0), nscolor aSecondSrcBackColor=NS_RGB(0, 0, 0))
 NOTE: if we can make this static, that would be great.
NS_IMETHOD Blend (PRInt32 aSX, PRInt32 aSY, PRInt32 aWidth, PRInt32 aHeight, nsIRenderingContext *aSrc, nsIRenderingContext *aDest, PRInt32 aDX, PRInt32 aDY, float aSrcOpacity, nsIRenderingContext *aSecondSrc=nsnull, nscolor aSrcBackColor=NS_RGB(0, 0, 0), nscolor aSecondSrcBackColor=NS_RGB(0, 0, 0))
NS_IMETHOD GetAlphas (const nsRect &aRect, nsIDrawingSurface *aBlack, nsIDrawingSurface *aWhite, PRUint8 **aAlphas)
 GetAlphas computes an array of alpha values for a rectangle of pixels, using the drawn-onto-black and the drawn-onto-white images.
 nsFontList ()
virtual ~nsFontList ()
NS_DECL_ISUPPORTS
NS_DECL_NSIPRINTOPTIONS
virtual
NS_DECL_NSIPRINTSETTINGSSERVICE
nsresult 
Init ()
 method Init Initializes member variables.
 nsPrintOptions ()
virtual ~nsPrintOptions ()
NS_DECL_ISUPPORTS
NS_DECL_NSIPRINTSESSION 
nsPrintSession ()
virtual ~nsPrintSession ()
virtual nsresult Init ()
NS_DECL_ISUPPORTS
NS_DECL_NSIPRINTSETTINGS 
nsPrintSettings ()
 nsPrintSettings (const nsPrintSettings &aPS)
virtual ~nsPrintSettings ()
virtual nsPrintSettingsoperator= (const nsPrintSettings &rhs)
 nsScriptableRegion (nsIRegion *region)
virtual ~nsScriptableRegion ()
void init ()
void setToRegion (in nsIScriptableRegion aRegion)
 copy operator equivalent that takes another region
void setToRect (in long aX, in long aY, in long aWidth, in long aHeight)
 copy operator equivalent that takes a rect
void intersectRegion (in nsIScriptableRegion aRegion)
 destructively intersect another region with this one
void intersectRect (in long aX, in long aY, in long aWidth, in long aHeight)
 destructively intersect a rect with this region
void unionRegion (in nsIScriptableRegion aRegion)
 destructively union another region with this one
void unionRect (in long aX, in long aY, in long aWidth, in long aHeight)
 destructively union a rect with this region
void subtractRegion (in nsIScriptableRegion aRegion)
 destructively subtract another region with this one
void subtractRect (in long aX, in long aY, in long aWidth, in long aHeight)
 destructively subtract a rect from this region
boolean isEmpty ()
 is this region empty? i.e.
boolean isEqualRegion (in nsIScriptableRegion aRegion)
 == operator equivalent i.e.
void getBoundingBox (out long aX, out long aY, out long aWidth, out long aHeight)
 returns the bounding box of the region i.e.
void offset (in long aXOffset, in long aYOffset)
 offsets the region in x and y
boolean containsRect (in long aX, in long aY, in long aWidth, in long aHeight)
 does the region intersect the rectangle?
void SetPrintOptions (in PRInt32 aType, in PRBool aTurnOnOff)
 Set PrintOptions.
PRBool GetPrintOptions (in PRInt32 aType)
 Get PrintOptions.
PRInt32 GetPrintOptionsBits ()
 Set PrintOptions Bit field.
void GetPageSizeInTwips (out long aWidth, out long aHeight)
 Returns W/H in Twips from Paper Size H/W.
nsIPrintSettings clone ()
 Makes a new copy.
void assign (in nsIPrintSettings aPS)
 Assigns the internal values from the "in" arg to the current object.
void SetMarginInTwips (in nsNativeMarginRef aMargin)
void GetMarginInTwips (in nsNativeMarginRef aMargin)
void ShowPrintSetupDialog (in nsIPrintSettings aThePrintSettings)
 Show Native Print Options dialog, this may not be supported on all platforms.
nsIPrintSettings CreatePrintSettings ()
 Creates a new PrintSettnigs Object and initializes it from prefs.
nsISimpleEnumerator availablePrinters ()
 available Printers It returns an enumerator object or throws an exception on error cases like if internal setup failed and/or no printers are available.
PRInt32 getPrinterPrefInt (in nsIPrintSettings aPrintSettings, in wstring aPrefName)
 Get a prefixed integer pref.
void displayJobProperties (in wstring aPrinter, in nsIPrintSettings aPrintSettings, out boolean aDisplayed)
 display Printer Job Properties dialog
void setFontNamePointSize (in AString aName, in PRInt32 aPointSize)
void SetDefaultFont (in nsNativeFontRef aFont)
void GetDefaultFont (in nsNativeFontRef aFont)
voidPtr GetNativeData (in short aDataType)
void initPrintSettingsFromPrinter (in wstring aPrinterName, in nsIPrintSettings aPrintSettings)
 Initializes certain settings from the native printer into the PrintSettings if aPrinterName is null then it uses the default printer name if it can These settings include, but are not limited to: Page Orientation Page Size Number of Copies.
void initPrintSettingsFromPrefs (in nsIPrintSettings aPrintSettings, in boolean aUsePrinterNamePrefix, in unsigned long aFlags)
 Reads PrintSettings values from Prefs, the values to be read are indicated by the "flags" arg.
void savePrintSettingsToPrefs (in nsIPrintSettings aPrintSettings, in boolean aUsePrinterNamePrefix, in unsigned long aFlags)
 Writes PrintSettings values to Prefs, the values to be written are indicated by the "flags" arg.
nsISimpleEnumerator availableFonts (in wstring aLangGroup, in wstring aFontType)
 Get the list of available fonts for a language group and for use as the given CSS generic font.
NS_IMETHOD SupportsNativeWidgets (PRBool &aSupportsWidgets)=0
 Query the device to see if it supports native widgets.
float DevUnitsToTwips () const
 Obtain the size of a device unit relative to a Twip.
float TwipsToDevUnits () const
 Obtain the size of a Twip relative to a device unit.
void SetAppUnitsToDevUnits (float aAppUnits)
 Set the scale factor to convert units used by the application to device units.
void SetDevUnitsToAppUnits (float aDevUnits)
 Set the scale factor to convert device units to units used by the application.
float AppUnitsToDevUnits () const
 Get the scale factor to convert from application defined units to device units.
float DevUnitsToAppUnits () const
 Get the scale factor to convert from device units to application defined units.
NS_IMETHOD GetScrollBarDimensions (float &aWidth, float &aHeight) const =0
 Get the width of a vertical scroll bar and the height of a horizontal scrollbar in application units.
NS_IMETHOD GetSystemFont (nsSystemFontID aID, nsFont *aFont) const =0
 Fill in an nsFont based on the ID of a system font.
NS_IMETHOD CheckFontExistence (const nsString &aFaceName)=0
 Check to see if a particular named font exists.
NS_IMETHOD GetDeviceSurfaceDimensions (PRInt32 &aWidth, PRInt32 &aHeight)=0
 Get the size of the displayable area of the output device in app units.
NS_IMETHOD GetRect (nsRect &aRect)=0
 Get the size of the content area of the output device in app units.
NS_IMETHOD GetClientRect (nsRect &aRect)=0
 Get the size of the content area of the output device in app units.
NS_IMETHOD GetDeviceContextFor (nsIDeviceContextSpec *aDevice, nsIDeviceContext *&aContext)=0
 Returns a new nsIDeviceContext suitable for the device context specification passed in.
NS_IMETHOD BeginDocument (PRUnichar *aTitle, PRUnichar *aPrintToFileName, PRInt32 aStartPage, PRInt32 aEndPage)=0
 Inform the output device that output of a document is beginning Used for print related device contexts.
NS_IMETHOD EndDocument (void)=0
 Inform the output device that output of a document is ending.
NS_IMETHOD BeginPage (void)=0
 Inform the output device that output of a page is beginning Used for print related device contexts.
NS_IMETHOD EndPage (void)=0
 Inform the output device that output of a page is ending Used for print related device contexts.
void observe (in nsISupports aSubject, in string aTopic, in wstring aData)
 Observe will be called when there is a notification for the topic |aTopic|.

Static Public Member Functions

static void AddRefTable (void)
static void ReleaseTable (void)
static nsColorName LookupName (const nsAString &aName)
static nsColorName LookupName (const nsACString &aName)
static const nsAFlatCStringGetStringValue (nsColorName aColorName)
static NS_GFX_STATIC_MEMBER_ (const nscolor) kColors[]
static void GetGenericID (const nsString &aGeneric, PRUint8 *aID)
static void GetNativeTextStyle (nsIFontMetrics &inMetrics, const nsIDeviceContext &inDevContext, TextStyle &outStyle)
static PRBool DisplayVerySmallFonts ()

Public Attributes

nsNativeWidget mWidget
nsString name
unsigned int style: 7
unsigned int systemFont: 1
PRUint8 variant: 7
PRPackedBool familyNameQuirks: 1
PRUint16 weight
PRUint8 decorations
nscoord size
float sizeAdjust
nscoord x
nscoord y
nscoord width
nscoord height
readonly attribute nsIRegion region
const unsigned long kInitSaveOddEvenPages = 0x00000001
 PrintSettings to be Saved Navigation Constants.
const unsigned long kInitSaveHeaderLeft = 0x00000002
const unsigned long kInitSaveHeaderCenter = 0x00000004
const unsigned long kInitSaveHeaderRight = 0x00000008
const unsigned long kInitSaveFooterLeft = 0x00000010
const unsigned long kInitSaveFooterCenter = 0x00000020
const unsigned long kInitSaveFooterRight = 0x00000040
const unsigned long kInitSaveBGColors = 0x00000080
const unsigned long kInitSaveBGImages = 0x00000100
const unsigned long kInitSavePaperSize = 0x00000200
const unsigned long kInitSavePaperName = 0x00000400
const unsigned long kInitSavePaperSizeUnit = 0x00000800
const unsigned long kInitSavePaperSizeType = 0x00001000
const unsigned long kInitSavePaperData = 0x00002000
const unsigned long kInitSavePaperWidth = 0x00004000
const unsigned long kInitSavePaperHeight = 0x00008000
const unsigned long kInitSaveReversed = 0x00010000
const unsigned long kInitSaveInColor = 0x00020000
const unsigned long kInitSaveOrientation = 0x00040000
const unsigned long kInitSavePrintCommand = 0x00080000
const unsigned long kInitSavePrinterName = 0x00100000
const unsigned long kInitSavePrintToFile = 0x00200000
const unsigned long kInitSaveToFileName = 0x00400000
const unsigned long kInitSavePageDelay = 0x00800000
const unsigned long kInitSaveMargins = 0x01000000
const unsigned long kInitSaveNativeData = 0x02000000
const unsigned long kInitSavePlexName = 0x04000000
const unsigned long kInitSaveShrinkToFit = 0x08000000
const unsigned long kInitSaveScaling = 0x10000000
const unsigned long kInitSaveColorspace = 0x20000000
const unsigned long kInitSaveResolutionName = 0x40000000
const unsigned long kInitSaveDownloadFonts = 0x80000000
const unsigned long kInitSaveAll = 0xFFFFFFFF
const long kPrintOddPages = 0x00000001
const long kPrintEvenPages = 0x00000002
const long kEnableSelectionRB = 0x00000004
const long kRangeAllPages = 0
const long kRangeSpecifiedPageRange = 1
const long kRangeSelection = 2
const long kRangeFocusFrame = 3
const long kJustLeft = 0
const long kJustCenter = 1
const long kJustRight = 2
const short kUseInternalDefault = 0
 FrameSet Default Type Constants.
const short kUseSettingWhenPossible = 1
const short kPaperSizeNativeData = 0
 Page Size Type Constants.
const short kPaperSizeDefined = 1
const short kPaperSizeInches = 0
 Page Size Unit Constants.
const short kPaperSizeMillimeters = 1
const short kPortraitOrientation = 0
 Orientation Constants.
const short kLandscapeOrientation = 1
const short kNoFrames = 0
 Print Frame Constants.
const short kFramesAsIs = 1
const short kSelectedFrame = 2
const short kEachFrameSep = 3
const short kFrameEnableNone = 0
 How to Enable Frame Set Printing Constants.
const short kFrameEnableAll = 1
const short kFrameEnableAsIsAndEach = 2
attribute nsIPrintSession printSession
 Data Members.
attribute long startPageRange
attribute long endPageRange
attribute double marginTop
attribute double marginLeft
attribute double marginBottom
attribute double marginRight
attribute double scaling
attribute boolean printBGColors
attribute boolean printBGImages
attribute short printRange
attribute wstring title
attribute wstring docURL
attribute wstring headerStrLeft
attribute wstring headerStrCenter
attribute wstring headerStrRight
attribute wstring footerStrLeft
attribute wstring footerStrCenter
attribute wstring footerStrRight
attribute short howToEnableFrameUI
attribute boolean isCancelled
attribute short printFrameTypeUsage
attribute short printFrameType
attribute boolean printSilent
attribute boolean shrinkToFit
attribute boolean showPrintProgress
attribute wstring paperName
attribute short paperSizeType
attribute short paperData
attribute double paperWidth
attribute double paperHeight
attribute short paperSizeUnit
attribute wstring plexName
attribute wstring colorspace
attribute wstring resolutionName
attribute boolean downloadFonts
attribute boolean printReversed
attribute boolean printInColor
attribute long paperSize
attribute long orientation
attribute wstring printCommand
attribute long numCopies
attribute wstring printerName
attribute boolean printToFile
attribute wstring toFileName
attribute long printPageDelay
attribute boolean isInitializedFromPrinter
 This attribute tracks whether the PS has been initialized from a printer specified by the "printerName" attr.
attribute boolean isInitializedFromPrefs
 This attribute tracks whether the PS has been initialized from prefs.
const short kNativeDataPrintRecord = 0
 Native data constants.
readonly attribute nsIPrintSettings globalPrintSettings
 Returns a "global" PrintSettings object Creates a new the first time, if one doesn't exist.
readonly attribute nsIPrintSettings newPrintSettings
 Returns a new, unique PrintSettings object each time.
readonly attribute wstring defaultPrinterName
 The name of the last printer used, or else the system default printer.

Protected Types

enum  nsHeaderFooterEnum { eHeader, eFooter }

Protected Member Functions

virtual ~DeviceContextImpl ()
void CommonInit (void)
nsresult CreateIconILGroupContext ()
virtual nsresult CreateFontAliasTable ()
nsresult AliasFont (const nsString &aFont, const nsString &aAlias, const nsString &aAltAlias, PRBool aForceAlias)
void GetLocaleLangGroup (void)
virtual ~nsBlender ()
 
Destructor for a nsBlender object
nsresult Blend (PRUint8 *aSrcBits, PRInt32 aSrcStride, PRUint8 *aDestBits, PRInt32 aDestStride, PRUint8 *aSecondSrcBits, PRInt32 aSrcBytes, PRInt32 aLines, float aOpacity, PRUint8 aDepth)
void Do32Blend (float aOpacity, PRInt32 aNumLines, PRInt32 aNumBytes, PRUint8 *aSImage, PRUint8 *aDImage, PRUint8 *aSecondSImage, PRInt32 aSLSpan, PRInt32 aDLSpan, nsBlendQuality aTheQual)
 
Blend two 32 bit image arrays
void Do24Blend (float aOpacity, PRInt32 aNumLines, PRInt32 aNumBytes, PRUint8 *aSImage, PRUint8 *aDImage, PRUint8 *aSecondSImage, PRInt32 aSLSpan, PRInt32 aDLSpan, nsBlendQuality aBlendQuality)
 
Blend two 24 bit image arrays using a passed in blend value
void Do16Blend (float aOpacity, PRInt32 aNumLines, PRInt32 aNumBytes, PRUint8 *aSImage, PRUint8 *aDImage, PRUint8 *aSecondSImage, PRInt32 aSLSpan, PRInt32 aDLSpan, nsBlendQuality aBlendQuality)
 
Blend two 16 bit image arrays using a passed in blend value
void ReadBitFieldPref (const char *aPrefId, PRInt32 anOption)
void WriteBitFieldPref (const char *aPrefId, PRInt32 anOption)
void ReadJustification (const char *aPrefId, PRInt16 &aJust, PRInt16 aInitValue)
void WriteJustification (const char *aPrefId, PRInt16 aJust)
void ReadInchesToTwipsPref (const char *aPrefId, nscoord &aTwips, const char *aMarginPref)
void WriteInchesFromTwipsPref (const char *aPrefId, nscoord aTwips)
nsresult ReadPrefString (const char *aPrefId, nsAString &aString)
nsresult WritePrefString (const char *aPrefId, const nsAString &aString)
 method WritePrefString Writes PRUnichar* to Prefs and deletes the contents of aString
nsresult WritePrefString (PRUnichar *&aStr, const char *aPrefId)
nsresult ReadPrefDouble (const char *aPrefId, double &aVal)
nsresult WritePrefDouble (const char *aPrefId, double aVal)
virtual nsresult ReadPrefs (nsIPrintSettings *aPS, const nsAString &aPrinterName, PRUint32 aFlags)
 method ReadPrefs
virtual nsresult WritePrefs (nsIPrintSettings *aPS, const nsAString &aPrefName, PRUint32 aFlags)
 method WritePrefs
const char * GetPrefName (const char *aPrefName, const nsAString &aPrinterName)
virtual nsresult _CreatePrintSettings (nsIPrintSettings **_retval)
 method _CreatePrintSettings May be implemented by the platform-specific derived class
virtual nsresult _Clone (nsIPrintSettings **_retval)
virtual nsresult _Assign (nsIPrintSettings *aPS)
nsresult GetMarginStrs (PRUnichar **aTitle, nsHeaderFooterEnum aType, PRInt16 aJust)
nsresult SetMarginStrs (const PRUnichar *aTitle, nsHeaderFooterEnum aType, PRInt16 aJust)

Protected Attributes

nsVoidArray mFontMetrics
nsIDeviceContextmContext
nsFontCachemFontCache
nsCOMPtr< nsIAtommLocaleLangGroup
float mZoom
nsHashtable * mFontAliasTable
float mCPixelScale
nsCOMPtr< nsIPrintSettingsmGlobalPrintSettings
nsCString mPrefName
nsCOMPtr< nsIPrefBranchmPrefBranch
nsFontmDefaultFont
nsWeakPtr mSession
nsMargin mMargin
PRInt32 mPrintOptions
PRInt16 mPrintRange
PRInt32 mStartPageNum
PRInt32 mEndPageNum
double mScaling
PRBool mPrintBGColors
PRBool mPrintBGImages
PRInt16 mPrintFrameTypeUsage
PRInt16 mPrintFrameType
PRBool mHowToEnableFrameUI
PRBool mIsCancelled
PRBool mPrintSilent
PRBool mPrintPreview
PRBool mShrinkToFit
PRBool mShowPrintProgress
PRInt32 mPrintPageDelay
nsString mTitle
nsString mURL
nsString mPageNumberFormat
nsString mHeaderStrs [NUM_HEAD_FOOT]
nsString mFooterStrs [NUM_HEAD_FOOT]
nsString mPaperName
nsString mPlexName
PRInt16 mPaperData
PRInt16 mPaperSizeType
double mPaperWidth
double mPaperHeight
PRInt16 mPaperSizeUnit
PRBool mPrintReversed
PRBool mPrintInColor
PRInt32 mPaperSize
PRInt32 mOrientation
nsString mColorspace
nsString mResolutionName
PRBool mDownloadFonts
nsString mPrintCommand
PRInt32 mNumCopies
nsXPIDLString mPrinter
PRBool mPrintToFile
nsString mToFileName
PRPackedBool mIsInitedFromPrinter
PRPackedBool mIsInitedFromPrefs
float mTwipsToPixels
float mPixelsToTwips
float mAppUnitsToDevUnits
float mDevUnitsToAppUnits

Static Protected Attributes

static PRBool sDisplayVerySmallFonts

Private Member Functions

nsresult InitRenderingContext (nsIRenderingContext *aContext, nsIWidget *aWindow)
nsresult InitRenderingContext (nsIRenderingContext *aContext, nsIDrawingSurface *aSurface)
void Init ()
nsRegionCopy (const nsRegion &aRegion)
nsRegionCopy (const nsRect &aRect)
void InsertBefore (RgnRect *aNewRect, RgnRect *aRelativeRect)
void InsertAfter (RgnRect *aNewRect, RgnRect *aRelativeRect)
void SetToElements (PRUint32 aCount)
RgnRectRemove (RgnRect *aRect)
void InsertInPlace (RgnRect *aRect, PRBool aOptimizeOnFly=PR_FALSE)
void SaveLinkChain ()
void RestoreLinkChain ()
void Optimize ()
void SubRegion (const nsRegion &aRegion, nsRegion &aResult) const
void SubRect (const nsRectFast &aRect, nsRegion &aResult, nsRegion &aCompleted) const
void SubRect (const nsRectFast &aRect, nsRegion &aResult) const
void Merge (const nsRegion &aRgn1, const nsRegion &aRgn2)
void MoveInto (nsRegion &aDestRegion, const RgnRect *aStartRect)
void MoveInto (nsRegion &aDestRegion)
nscoord ToCoordRound (float aCoord)
 nsPrintOptions (const nsPrintOptions &x)
nsPrintOptionsoperator= (const nsPrintOptions &x)

Private Attributes

PRUint32 mRectCount
RgnRectmCurRect
RgnRect mRectListHead
nsRectFast mBoundRect
const nsRegionmRegion
const nsRegion::RgnRect * mCurPtr
float m00
float m01
float m10
float m11
float m20
float m21
PRUint16 type
nsIRegionmRegion

Friends

class nsRegionRectIterator
class RgnRectMemoryAllocator

Detailed Description

Class nsPrintOptions.

An adapter class for the unscriptable nsIRegion interface.

Definition at line 60 of file nsColorNames.h.


Member Enumeration Documentation

enum NS_GFX::nsHeaderFooterEnum [protected]
Enumerator:
eHeader 
eFooter 

Definition at line 75 of file nsPrintSettingsImpl.h.


Constructor & Destructor Documentation

virtual NS_GFX::~nsFontCache ( ) [virtual]
virtual NS_GFX::~DeviceContextImpl ( ) [protected, virtual]
NS_GFX::~nsRegion ( ) [inline]

Definition at line 102 of file nsRegion.h.

{ SetToElements (0); }

Here is the call graph for this function:

NS_GFX::~nsTransform2D ( void  ) [inline]

Definition at line 66 of file nsTransform2D.h.

{ }
virtual NS_GFX::~nsBlender ( ) [protected, virtual]


Destructor for a nsBlender object

virtual NS_GFX::~nsFontList ( ) [virtual]
virtual NS_GFX::~nsPrintOptions ( ) [virtual]
virtual NS_GFX::~nsPrintSession ( ) [virtual]
virtual NS_GFX::~nsPrintSettings ( ) [virtual]
virtual NS_GFX::~nsScriptableRegion ( ) [virtual]

Member Function Documentation

virtual nsresult NS_GFX::_Assign ( nsIPrintSettings aPS) [protected, virtual]
virtual nsresult NS_GFX::_Clone ( nsIPrintSettings **  _retval) [protected, virtual]
virtual nsresult NS_GFX::_CreatePrintSettings ( nsIPrintSettings **  _retval) [protected, virtual]

method _CreatePrintSettings May be implemented by the platform-specific derived class

Returns:
printer settings instance
NS_IMETHOD NS_GFX::AbortDocument ( void  ) [inline, virtual]

Inform the output device that output of a document is being aborted.

Must be matched 1:1 with BeginDocument()

Returns:
error status

Implements nsIDeviceContext.

Definition at line 127 of file nsDeviceContext.h.

{ return NS_OK; }
static void NS_GFX::AddRefTable ( void  ) [static]
void NS_GFX::AddScale ( float  ptX,
float  ptY 
)

add a scale to a Transform via x, y pair

Parameters:
ptXx value to add as x scale
ptYy value to add as y scale
Exceptions:
@authormichaelp 09-25-97 1:56pm
void NS_GFX::AddTranslation ( float  ptX,
float  ptY 
)

add a translation to a Transform via x, y pair

Parameters:
ptXx value to add as x translation
ptYy value to add as y translation
Exceptions:
@authormichaelp 09-25-97 1:56pm
nsresult NS_GFX::AliasFont ( const nsString aFont,
const nsString aAlias,
const nsString aAltAlias,
PRBool  aForceAlias 
) [protected]
nsRegion& NS_GFX::And ( const nsRegion aRgn1,
const nsRegion aRgn2 
)

Here is the caller graph for this function:

nsRegion& NS_GFX::And ( const nsRegion aRegion,
const nsRect aRect 
)
nsRegion& NS_GFX::And ( const nsRect aRect,
const nsRegion aRegion 
) [inline]

Definition at line 109 of file nsRegion.h.

  {
    return  And  (aRegion, aRect);
  }

Here is the call graph for this function:

nsRegion& NS_GFX::And ( const nsRect aRect1,
const nsRect aRect2 
) [inline]

Definition at line 113 of file nsRegion.h.

  {
    nsRect TmpRect;

    TmpRect.IntersectRect (aRect1, aRect2);
    return Copy (TmpRect);
  }

Here is the call graph for this function:

float nsIDeviceContext::AppUnitsToDevUnits ( ) const [inline, inherited]

Get the scale factor to convert from application defined units to device units.

Parameters:
aAppUnitsscale value

Definition at line 320 of file nsIDeviceContext.h.

{ return mAppUnitsToDevUnits; }

Here is the caller graph for this function:

Assigns the internal values from the "in" arg to the current object.

nsISimpleEnumerator nsIFontList::availableFonts ( in wstring  aLangGroup,
in wstring  aFontType 
) [inherited]

Get the list of available fonts for a language group and for use as the given CSS generic font.

Parameters:
aLangGrouplimits the fonts to fonts in a language group; eg: x-western (American/Western European), ar (Arabic), el (Greek), he (Hebrew), ja (Japanese), ko (Korean), th (Thai), tr (Turkish), x-baltic (Baltic), x-central-euro (Eastern European), x-cyrillic (Russian), zh-CN (China), zh-TW (Taiwan)
aFontTypelimits the fonts to the fonts with this CSS generic font type; eg: serif, sans-serif, cursive, fantasy, monospace.
Returns:
a simple enumerator of the available fonts for a language group / generic type. These strings are the text supplied by the operating system's font system.

available Printers It returns an enumerator object or throws an exception on error cases like if internal setup failed and/or no printers are available.

NS_IMETHOD nsIDeviceContext::BeginDocument ( PRUnichar aTitle,
PRUnichar aPrintToFileName,
PRInt32  aStartPage,
PRInt32  aEndPage 
) [pure virtual, inherited]

Inform the output device that output of a document is beginning Used for print related device contexts.

Must be matched 1:1 with EndDocument(). XXX needs to take parameters so that feedback can be given to the app regarding pagination progress and aborting print operations?

Parameters:
aTitle- itle of Document
aPrintToFileName- name of file to print to, if NULL then don't print to file
aStartPage- starting page number (must be greater than zero)
aEndPage- ending page number (must be less than or equal to number of pages)
Returns:
error status
NS_IMETHOD nsIDeviceContext::BeginPage ( void  ) [pure virtual, inherited]

Inform the output device that output of a page is beginning Used for print related device contexts.

Must be matched 1:1 with EndPage() and within a BeginDocument()/EndDocument() pair.

Returns:
error status

Here is the caller graph for this function:

NS_IMETHOD NS_GFX::Blend ( PRInt32  aSX,
PRInt32  aSY,
PRInt32  aWidth,
PRInt32  aHeight,
nsIDrawingSurface aSrc,
nsIDrawingSurface aDest,
PRInt32  aDX,
PRInt32  aDY,
float  aSrcOpacity,
nsIDrawingSurface aSecondSrc = nsnull,
nscolor  aSrcBackColor = NS_RGB(0, 0, 0),
nscolor  aSecondSrcBackColor = NS_RGB(0, 0, 0) 
) [virtual]

NOTE: if we can make this static, that would be great.

I don't think we can. Blend source and destination nsDrawingSurfaces. Both drawing surfaces will have bitmaps associated with them.

Parameters:
aSXx offset into source drawing surface of blend area
aSYy offset into source drawing surface of blend area
aWidthwidth of blend area
aHeightwidth of blend area
aSrcsource for the blending
aDestdestination for blending
aDXx offset into destination drawing surface of blend area
aDYy offset into destination drawing surface of blend area
aSrcOpacity0.0f -> 1.0f opacity value of source area. 1.0f indicates complete opacity.
aSecondSrcan optional second source drawing surface which is used in conjunction with the background color parameters to determine which pixels to blend
aSrcBackColorcolor of pixels in aSrc that should be considered "background" color
aSecondSrcBackColorcolor of pixels in aSrc that should be considered "background" color

Implements nsIBlender.

NS_IMETHOD NS_GFX::Blend ( PRInt32  aSX,
PRInt32  aSY,
PRInt32  aWidth,
PRInt32  aHeight,
nsIRenderingContext aSrc,
nsIRenderingContext aDest,
PRInt32  aDX,
PRInt32  aDY,
float  aSrcOpacity,
nsIRenderingContext aSecondSrc = nsnull,
nscolor  aSrcBackColor = NS_RGB(0, 0, 0),
nscolor  aSecondSrcBackColor = NS_RGB(0, 0, 0) 
) [virtual]

Implements nsIBlender.

nsresult NS_GFX::Blend ( PRUint8 aSrcBits,
PRInt32  aSrcStride,
PRUint8 aDestBits,
PRInt32  aDestStride,
PRUint8 aSecondSrcBits,
PRInt32  aSrcBytes,
PRInt32  aLines,
float  aOpacity,
PRUint8  aDepth 
) [protected]
nsPoint NS_GFX::BottomLeft ( ) const [inline]

Definition at line 149 of file nsRect.h.

{ return nsPoint(x, YMost()); }

Here is the call graph for this function:

nsPoint NS_GFX::BottomRight ( ) const [inline]

Definition at line 150 of file nsRect.h.

{ return nsPoint(XMost(), YMost()); }

Here is the call graph for this function:

NS_IMETHOD nsIDeviceContext::CheckFontExistence ( const nsString aFaceName) [pure virtual, inherited]

Check to see if a particular named font exists.

Parameters:
aFontNamecharacter string of font face name
Returns:
NS_OK if font is available, else font is unavailable

Here is the caller graph for this function:

Makes a new copy.

void NS_GFX::CommonInit ( void  ) [protected]

post-multiply a new Transform

Parameters:
newxformnew Transform2D
Exceptions:
@authormichaelp 09-25-97 1:56pm
PRBool NS_GFX::Contains ( const nsRect aRect) const
PRBool NS_GFX::Contains ( nscoord  aX,
nscoord  aY 
) const
PRBool NS_GFX::Contains ( const nsPoint aPoint) const [inline]

Definition at line 74 of file nsRect.h.

{return Contains(aPoint.x, aPoint.y);}

Here is the call graph for this function:

Here is the caller graph for this function:

boolean nsIScriptableRegion::containsRect ( in long  aX,
in long  aY,
in long  aWidth,
in long  aHeight 
) [inherited]

does the region intersect the rectangle?

Parameters:
rectto check for containment
Returns:
true if the region intersects the rect
nsRegion& NS_GFX::Copy ( const nsRegion aRegion) [private]

Here is the caller graph for this function:

nsRegion& NS_GFX::Copy ( const nsRect aRect) [private]
virtual nsresult NS_GFX::CreateFontAliasTable ( ) [protected, virtual]

Creates a new PrintSettnigs Object and initializes it from prefs.

NS_IMETHOD NS_GFX::CreateRenderingContext ( nsIView aView,
nsIRenderingContext *&  aContext 
) [virtual]

Create a rendering context and initialize it from an nsIView.

Parameters:
aViewview to initialize context from
aContextout parameter for new rendering context
Returns:
error status

Implements nsIDeviceContext.

NS_IMETHOD NS_GFX::CreateRenderingContext ( nsIWidget aWidget,
nsIRenderingContext *&  aContext 
) [virtual]

Create a rendering context and initialize it from an nsIWidget.

Parameters:
aWidgetwidget to initialize context from
aContextout parameter for new rendering context
Returns:
error status

Implements nsIDeviceContext.

Create a rendering context and initialize it.

This API should only be called on device contexts whose SupportsNativeWidgets() method return PR_FALSE.

Parameters:
aContextout parameter for new rendering context
Returns:
error status

Implements nsIDeviceContext.

Definition at line 98 of file nsDeviceContext.h.

Create a rendering context and initialize it from an nsIDrawingSurface*.

Parameters:
nsIDrawingSurface*widget to initialize context from
aContextout parameter for new rendering context
Returns:
error status

Implements nsIDeviceContext.

Create an uninitalised rendering context.

Parameters:
aContextout parameter for new rendering context
Returns:
error status

Implements nsIDeviceContext.

void NS_GFX::Deflate ( nscoord  aDx,
nscoord  aDy 
)
void NS_GFX::Deflate ( const nsSize aSize) [inline]

Definition at line 114 of file nsRect.h.

{Deflate(aSize.width, aSize.height);}

Here is the call graph for this function:

Here is the caller graph for this function:

float nsIDeviceContext::DevUnitsToAppUnits ( ) const [inline, inherited]

Get the scale factor to convert from device units to application defined units.

Parameters:
aDevUnitsout paramater for scale value
Returns:
error status

Definition at line 328 of file nsIDeviceContext.h.

{ return mDevUnitsToAppUnits; }
float nsIDeviceContext::DevUnitsToTwips ( ) const [inline, inherited]

Obtain the size of a device unit relative to a Twip.

A twip is 1/20 of a point (which is 1/72 of an inch).

Returns:
conversion value

Definition at line 279 of file nsIDeviceContext.h.

{ return mPixelsToTwips; }

Here is the caller graph for this function:

void nsIPrintOptions::displayJobProperties ( in wstring  aPrinter,
in nsIPrintSettings  aPrintSettings,
out boolean  aDisplayed 
) [inherited]

display Printer Job Properties dialog

void NS_GFX::Do16Blend ( float  aOpacity,
PRInt32  aNumLines,
PRInt32  aNumBytes,
PRUint8 aSImage,
PRUint8 aDImage,
PRUint8 aSecondSImage,
PRInt32  aSLSpan,
PRInt32  aDLSpan,
nsBlendQuality  aBlendQuality 
) [protected]


Blend two 16 bit image arrays using a passed in blend value

Parameters:
aNumlinesNumber of lines to blend
aNumberBytesNumber of bytes per line to blend
aSImagePointer to beginning of the source bytes
aDImagePointer to beginning of the destination bytes
aMImagePointer to beginning of the mask bytes
aSLSpannumber of bytes per line for the source bytes
aDLSpannumber of bytes per line for the destination bytes
aMLSpannumber of bytes per line for the Mask bytes
aBlendQualityThe quality of this blend, this is for tweening if neccesary
void NS_GFX::Do24Blend ( float  aOpacity,
PRInt32  aNumLines,
PRInt32  aNumBytes,
PRUint8 aSImage,
PRUint8 aDImage,
PRUint8 aSecondSImage,
PRInt32  aSLSpan,
PRInt32  aDLSpan,
nsBlendQuality  aBlendQuality 
) [protected]


Blend two 24 bit image arrays using a passed in blend value

Parameters:
aNumlinesNumber of lines to blend
aNumberBytesNumber of bytes per line to blend
aSImagePointer to beginning of the source bytes
aDImagePointer to beginning of the destination bytes
aMImagePointer to beginning of the mask bytes
aSLSpannumber of bytes per line for the source bytes
aDLSpannumber of bytes per line for the destination bytes
aMLSpannumber of bytes per line for the Mask bytes
aBlendQualityThe quality of this blend, this is for tweening if neccesary
void NS_GFX::Do32Blend ( float  aOpacity,
PRInt32  aNumLines,
PRInt32  aNumBytes,
PRUint8 aSImage,
PRUint8 aDImage,
PRUint8 aSecondSImage,
PRInt32  aSLSpan,
PRInt32  aDLSpan,
nsBlendQuality  aTheQual 
) [protected]


Blend two 32 bit image arrays

Parameters:
aNumlinesNumber of lines to blend
aNumberBytesNumber of bytes per line to blend
aSImagePointer to beginning of the source bytes
aDImagePointer to beginning of the destination bytes
aMImagePointer to beginning of the mask bytes
aSLSpannumber of bytes per line for the source bytes
aDLSpannumber of bytes per line for the destination bytes
aMLSpannumber of bytes per line for the Mask bytes
aBlendQualityThe quality of this blend, this is for tweening if neccesary
void NS_GFX::Empty ( ) [inline]

Definition at line 69 of file nsRect.h.

{width = height = 0;}
NS_IMETHOD nsIDeviceContext::EndDocument ( void  ) [pure virtual, inherited]

Inform the output device that output of a document is ending.

Used for print related device contexts. Must be matched 1:1 with BeginDocument()

Returns:
error status
NS_IMETHOD nsIDeviceContext::EndPage ( void  ) [pure virtual, inherited]

Inform the output device that output of a page is ending Used for print related device contexts.

Must be matched 1:1 with BeginPage() and within a BeginDocument()/EndDocument() pair.

Returns:
error status

Here is the caller graph for this function:

PRBool NS_GFX::Equals ( const nsFont aOther) const

Here is the caller graph for this function:

NS_IMETHOD NS_GFX::FirstExistingFont ( const nsFont aFont,
nsString aFaceName 
) [virtual]

Implements nsIDeviceContext.

Attempt to free up resoruces by flushing out any fonts no longer referenced by anything other than the font cache itself.

Returns:
error status

Implements nsIDeviceContext.

Notification when a font metrics instance created for this device is about to be deleted.

Implements nsIDeviceContext.

Notification when a font metrics instance created for this device is about to be deleted.

Implements nsIDeviceContext.

NS_IMETHOD NS_GFX::GetAlphas ( const nsRect aRect,
nsIDrawingSurface aBlack,
nsIDrawingSurface aWhite,
PRUint8 **  aAlphas 
) [virtual]

GetAlphas computes an array of alpha values for a rectangle of pixels, using the drawn-onto-black and the drawn-onto-white images.

The pixels are returned in a new'ed array of aRect.width*aRect.height elements, in row-major order. This array must be freed by the caller.

Implements nsIBlender.

void nsIScriptableRegion::getBoundingBox ( out long  aX,
out long  aY,
out long  aWidth,
out long  aHeight 
) [inherited]

returns the bounding box of the region i.e.

the smallest rectangle that completely contains the region.

Parameters:
aXout parameter for xoffset of bounding rect for region
aYout parameter for yoffset of bounding rect for region
aWidthout parameter for width of bounding rect for region
aHeightout parameter for height of bounding rect for region
Returns:
void
const nsRect& NS_GFX::GetBounds ( ) const [inline]

Definition at line 173 of file nsRegion.h.

{ return mBoundRect; }
NS_IMETHOD NS_GFX::GetCanonicalPixelScale ( float &  aScale) const [virtual]

Get the value used to scale a "standard" pixel to a pixel of the same physical size for this device.

a standard pixel is defined as a pixel on display 0. this is used to make sure that entities defined in pixel dimensions maintain a constant relative size when displayed from one output device to another.

Parameters:
aScaleout parameter for scale value
Returns:
error status

Implements nsIDeviceContext.

NS_IMETHOD nsIDeviceContext::GetClientRect ( nsRect aRect) [pure virtual, inherited]

Get the size of the content area of the output device in app units.

This corresponds on a screen device, for instance, to the area reported by GetDeviceSurfaceDimensions, minus the taskbar (Windows) or menubar (Macintosh).

Parameters:
aRectout parameter for client rect. Position (x,y) will be (0,0) adjusted for any upper/left non-client space if present or relative to the primary monitor if this is not the primary.
Returns:
error status

Here is the caller graph for this function:

NS_IMETHOD NS_GFX::GetDepth ( PRUint32 aDepth) [virtual]

Return the bit depth of the device.

Implements nsIDeviceContext.

virtual nsresult NS_GFX::GetDeviceContext ( nsIDeviceContext *&  aContext) const [virtual]
NS_IMETHOD nsIDeviceContext::GetDeviceContextFor ( nsIDeviceContextSpec aDevice,
nsIDeviceContext *&  aContext 
) [pure virtual, inherited]

Returns a new nsIDeviceContext suitable for the device context specification passed in.

Parameters:
aDevicea device context specification. this is a platform specific structure that only a platform specific device context can interpret.
aContextout parameter for new device context. nsnull on failure to create new device context.
Returns:
error status
NS_IMETHOD nsIDeviceContext::GetDeviceSurfaceDimensions ( PRInt32 aWidth,
PRInt32 aHeight 
) [pure virtual, inherited]

Get the size of the displayable area of the output device in app units.

Parameters:
aWidthout parameter for width
aHeightout parameter for height
Returns:
error status

Here is the caller graph for this function:

void NS_GFX::GetFirstFamily ( nsString aFamily) const
static void NS_GFX::GetGenericID ( const nsString aGeneric,
PRUint8 aID 
) [static]
NS_IMETHOD NS_GFX::GetLocalFontName ( const nsString aFaceName,
nsString aLocalName,
PRBool aAliased 
) [virtual]

Implements nsIDeviceContext.

Here is the caller graph for this function:

nsresult NS_GFX::GetMarginStrs ( PRUnichar **  aTitle,
nsHeaderFooterEnum  aType,
PRInt16  aJust 
) [protected]
virtual nsresult NS_GFX::GetMetricsFor ( const nsFont aFont,
nsIAtom aLangGroup,
nsIFontMetrics *&  aMetrics 
) [virtual]

Get the nsIFontMetrics that describe the properties of an nsFont.

Parameters:
aFontfont description to obtain metrics for
aLangGroupthe language group of the document
aMetricsout parameter for font metrics
Returns:
error status

Implements nsIDeviceContext.

NS_IMETHOD NS_GFX::GetMetricsFor ( const nsFont aFont,
nsIAtom aLangGroup,
nsIFontMetrics *&  aMetrics 
) [virtual]

Get the nsIFontMetrics that describe the properties of an nsFont.

Parameters:
aFontfont description to obtain metrics for
aLangGroupthe language group of the document
aMetricsout parameter for font metrics
Returns:
error status

Implements nsIDeviceContext.

NS_IMETHOD NS_GFX::GetMetricsFor ( const nsFont aFont,
nsIFontMetrics *&  aMetrics 
) [virtual]

Get the nsIFontMetrics that describe the properties of an nsFont.

Parameters:
aFontfont description to obtain metrics for
aMetricsout parameter for font metrics
Returns:
error status

Implements nsIDeviceContext.

voidPtr nsIPrintOptions::GetNativeData ( in short  aDataType) [inherited]
static void NS_GFX::GetNativeTextStyle ( nsIFontMetrics inMetrics,
const nsIDeviceContext inDevContext,
TextStyle &  outStyle 
) [static]
PRUint32 NS_GFX::GetNumRects ( ) const [inline]

Definition at line 172 of file nsRegion.h.

{ return mRectCount; }
void nsIPrintSettings::GetPageSizeInTwips ( out long  aWidth,
out long  aHeight 
) [inherited]

Returns W/H in Twips from Paper Size H/W.

NS_IMETHOD NS_GFX::GetPaletteInfo ( nsPaletteInfo aPaletteInfo) [virtual]

Returns information about the device's palette capabilities.

Implements nsIDeviceContext.

const char* NS_GFX::GetPrefName ( const char *  aPrefName,
const nsAString &  aPrinterName 
) [protected]
PRInt32 nsIPrintOptions::getPrinterPrefInt ( in nsIPrintSettings  aPrintSettings,
in wstring  aPrefName 
) [inherited]

Get a prefixed integer pref.

Get PrintOptions.

Here is the caller graph for this function:

Set PrintOptions Bit field.

NS_IMETHOD nsIDeviceContext::GetRect ( nsRect aRect) [pure virtual, inherited]

Get the size of the content area of the output device in app units.

This corresponds on a screen device, for instance, to the entire screen.

Parameters:
aRectout parameter for full rect. Position (x,y) will be (0,0) or relative to the primary monitor if this is not the primary.
Returns:
error status

Here is the caller graph for this function:

NS_IMETHOD nsIDeviceContext::GetScrollBarDimensions ( float &  aWidth,
float &  aHeight 
) const [pure virtual, inherited]

Get the width of a vertical scroll bar and the height of a horizontal scrollbar in application units.

Parameters:
aWidthout parameter for width
aHeightout parameter for height
Returns:
error status

Here is the caller graph for this function:

static const nsAFlatCString& NS_GFX::GetStringValue ( nsColorName  aColorName) [static]
NS_IMETHOD nsIDeviceContext::GetSystemFont ( nsSystemFontID  aID,
nsFont aFont 
) const [pure virtual, inherited]

Fill in an nsFont based on the ID of a system font.

This function may or may not fill in the size, so the size should be set to a reasonable default before calling.

Parameters:
aIDThe system font ID.
aInfoThe font structure to be filled in.
Returns:
error status
void NS_GFX::GetTranslation ( float *  ptX,
float *  ptY 
) [inline]

get the translation portion of this transform

Parameters:
pt,Pointto return translation values in
Exceptions:
@authormichaelp 09-25-97 1:56pm

Definition at line 119 of file nsTransform2D.h.

{ *ptX = m20; *ptY = m21; }
void NS_GFX::GetTranslationCoord ( nscoord ptX,
nscoord ptY 
) [inline]

Definition at line 120 of file nsTransform2D.h.

{ *ptX = NSToCoordRound(m20); *ptY = NSToCoordRound(m21); }

Here is the call graph for this function:

PRUint16 NS_GFX::GetType ( void  ) [inline]

get the type of this transform

Parameters:
@returntype from above set
Exceptions:
@authormichaelp 09-25-97 1:56pm

Definition at line 77 of file nsTransform2D.h.

{ return type; }
float NS_GFX::GetXTranslation ( void  ) [inline]

get the X translation portion of this transform

Parameters:
@returnsx component of translation
Exceptions:

Definition at line 144 of file nsTransform2D.h.

{ return m20; }

Definition at line 145 of file nsTransform2D.h.

{ return NSToCoordRound(m20); }

Here is the call graph for this function:

float NS_GFX::GetYTranslation ( void  ) [inline]

get the Y translation portion of this transform

Parameters:
@returnsy component of translation
Exceptions:

Definition at line 155 of file nsTransform2D.h.

{ return m21; }

Definition at line 156 of file nsTransform2D.h.

{ return NSToCoordRound(m21); }

Here is the call graph for this function:

NS_IMETHOD NS_GFX::GetZoom ( float &  aZoom) const [virtual]

Implements nsIDeviceContext.

void NS_GFX::Inflate ( nscoord  aDx,
nscoord  aDy 
)
void NS_GFX::Inflate ( const nsSize aSize) [inline]

Definition at line 109 of file nsRect.h.

{Inflate(aSize.width, aSize.height);}

Here is the call graph for this function:

Here is the caller graph for this function:

virtual nsresult NS_GFX::Init ( nsIDeviceContext aContext) [virtual]

Initialize the Blender dc 11/4/98.

Parameters:
aContextis where the blender can get info about the device its blending on
Returns:
The result of the initialization, NS_OK if no errors

Implements nsIBlender.

virtual nsresult NS_GFX::Init ( ) [virtual]

Initialize the Blender dc 11/4/98.

Parameters:
aContextis where the blender can get info about the device its blending on
Returns:
The result of the initialization, NS_OK if no errors

Implements nsIBlender.

NS_DECL_ISUPPORTS NS_DECL_NSIPRINTOPTIONS virtual NS_DECL_NSIPRINTSETTINGSSERVICE nsresult NS_GFX::Init ( ) [virtual]

method Init Initializes member variables.

Every consumer that does manual creation (instead of do_CreateInstance) needs to call this method immediately after instantiation.

NS_DECL_ISUPPORTS NS_DECL_NSIOBSERVER NS_IMETHOD NS_GFX::Init ( nsNativeWidget  aWidget) [virtual]

Initialize the device context from a widget.

Parameters:
aWidgeta native widget to initialize the device context from
Returns:
error status

Implements nsIDeviceContext.

void NS_GFX::Init ( ) [private]

Here is the caller graph for this function:

void nsIPrintSettingsService::initPrintSettingsFromPrefs ( in nsIPrintSettings  aPrintSettings,
in boolean  aUsePrinterNamePrefix,
in unsigned long  aFlags 
) [inherited]

Reads PrintSettings values from Prefs, the values to be read are indicated by the "flags" arg.

aPrintSettings should be initialized with the name of a printer. First it reads in the PrintSettings from the last print job. Then it uses the PrinterName in the PrinterSettings to read any settings that were saved just for that printer.

aPS - PrintSettings to have its settings read aUsePrinterNamePrefix - indicates whether to use the printer name as a prefix aFlags - indicates which prefs to read, see nsIPrintSettings.idl for the const values.

Items not read: startPageRange, endPageRange, scaling, printRange, title docURL, howToEnableFrameUI, isCancelled, printFrameTypeUsage printFrameType, printSilent, shrinkToFit, numCopies, printerName

void nsIPrintSettingsService::initPrintSettingsFromPrinter ( in wstring  aPrinterName,
in nsIPrintSettings  aPrintSettings 
) [inherited]

Initializes certain settings from the native printer into the PrintSettings if aPrinterName is null then it uses the default printer name if it can These settings include, but are not limited to: Page Orientation Page Size Number of Copies.

nsresult NS_GFX::InitRenderingContext ( nsIRenderingContext aContext,
nsIWidget aWindow 
) [private]
nsresult NS_GFX::InitRenderingContext ( nsIRenderingContext aContext,
nsIDrawingSurface aSurface 
) [private]
void NS_GFX::InsertAfter ( RgnRect aNewRect,
RgnRect aRelativeRect 
) [private]
void NS_GFX::InsertBefore ( RgnRect aNewRect,
RgnRect aRelativeRect 
) [private]
void NS_GFX::InsertInPlace ( RgnRect aRect,
PRBool  aOptimizeOnFly = PR_FALSE 
) [private]
PRBool NS_GFX::IntersectRect ( const nsRect aRect1,
const nsRect aRect2 
)
void nsIScriptableRegion::intersectRect ( in long  aX,
in long  aY,
in long  aWidth,
in long  aHeight 
) [inherited]

destructively intersect a rect with this region

Parameters:
aXxoffset of rect to intersect with region
aYyoffset of rect to intersect with region
aWidthwidth of rect to intersect with region
aHeightheight of rect to intersect with region
Returns:
void

destructively intersect another region with this one

Parameters:
regionto intersect
Returns:
void
PRBool NS_GFX::Intersects ( const nsRect aRect) const
PRBool NS_GFX::IsComplex ( ) const [inline]

Definition at line 170 of file nsRegion.h.

{ return mRectCount > 1; }
PRBool NS_GFX::IsEmpty ( void  ) const [inline]

Definition at line 66 of file nsRect.h.

                         {
    return (PRBool) ((height <= 0) || (width <= 0));
  }

Here is the caller graph for this function:

is this region empty? i.e.

does it contain any pixels

Parameters:
none
Returns:
returns whether the region is empty
PRBool NS_GFX::IsEmpty ( void  ) const [inline]

Definition at line 169 of file nsRegion.h.

{ return mRectCount == 0; }
PRBool NS_GFX::IsEqual ( const nsRegion aRegion) const

== operator equivalent i.e.

do the regions contain exactly the same pixels

Parameters:
regionto compare
Returns:
whether the regions are identical
static nsColorName NS_GFX::LookupName ( const nsAString &  aName) [static]
static nsColorName NS_GFX::LookupName ( const nsACString &  aName) [static]
void NS_GFX::Merge ( const nsRegion aRgn1,
const nsRegion aRgn2 
) [private]
void NS_GFX::MoveBy ( nscoord  aDx,
nscoord  aDy 
) [inline]

Definition at line 100 of file nsRect.h.

{x += aDx; y += aDy;}

Here is the caller graph for this function:

void NS_GFX::MoveBy ( const nsPoint aPoint) [inline]

Definition at line 101 of file nsRect.h.

{x += aPoint.x; y += aPoint.y;}
void NS_GFX::MoveBy ( PRInt32  aXOffset,
PRInt32  aYOffset 
) [inline]

Definition at line 158 of file nsRegion.h.

  {
    MoveBy (nsPoint (aXOffset, aYOffset));
  }

Here is the call graph for this function:

void NS_GFX::MoveInto ( nsRegion aDestRegion,
const RgnRect aStartRect 
) [private]
void NS_GFX::MoveInto ( nsRegion aDestRegion) [inline, private]

Definition at line 212 of file nsRegion.h.

  {    MoveInto (aDestRegion, mRectListHead.next);  }

Here is the call graph for this function:

Here is the caller graph for this function:

void NS_GFX::MoveTo ( nscoord  aX,
nscoord  aY 
) [inline]

Definition at line 98 of file nsRect.h.

{x = aX; y = aY;}
void NS_GFX::MoveTo ( const nsPoint aPoint) [inline]

Definition at line 99 of file nsRect.h.

{x = aPoint.x; y = aPoint.y;}
const nsRect* NS_GFX::Next ( ) [inline]

Definition at line 232 of file nsRegion.h.

  {
    mCurPtr = mCurPtr->next;
    return (mCurPtr != &mRegion->mRectListHead) ? mCurPtr : nsnull;
  }


General constructor for a nsBlender object

NS_GFX::nsFont ( const char *  aName,
PRUint8  aStyle,
PRUint8  aVariant,
PRUint16  aWeight,
PRUint8  aDecoration,
nscoord  aSize,
float  aSizeAdjust = 0.0f 
)
NS_GFX::nsFont ( const nsString aName,
PRUint8  aStyle,
PRUint8  aVariant,
PRUint16  aWeight,
PRUint8  aDecoration,
nscoord  aSize,
float  aSizeAdjust = 0.0f 
)
NS_GFX::nsFont ( const nsFont aFont)
NS_DECL_ISUPPORTS NS_DECL_NSIPRINTSESSION NS_GFX::nsPrintSession ( )
NS_DECL_ISUPPORTS NS_DECL_NSIPRINTSETTINGS NS_GFX::nsPrintSettings ( )
NS_GFX::nsRect ( ) [inline]

Definition at line 55 of file nsRect.h.

: x(0), y(0), width(0), height(0) {}

Here is the caller graph for this function:

NS_GFX::nsRect ( const nsRect aRect) [inline]

Definition at line 56 of file nsRect.h.

{*this = aRect;}
NS_GFX::nsRect ( const nsPoint aOrigin,
const nsSize aSize 
) [inline]

Definition at line 57 of file nsRect.h.

                                                      {x = aOrigin.x; y = aOrigin.y;
                                                       width = aSize.width; height = aSize.height;}
NS_GFX::nsRect ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [inline]

Definition at line 59 of file nsRect.h.

                                                                  {
    x = aX; y = aY; width = aWidth; height = aHeight;
    VERIFY_COORD(x); VERIFY_COORD(y); VERIFY_COORD(width); VERIFY_COORD(height);
  }

Here is the call graph for this function:

NS_GFX::nsRegion ( ) [inline]

Definition at line 99 of file nsRegion.h.

{ Init (); }

Here is the call graph for this function:

Here is the caller graph for this function:

NS_GFX::nsRegion ( const nsRect aRect) [inline]

Definition at line 100 of file nsRegion.h.

{ Init (); Copy (aRect); }

Here is the call graph for this function:

NS_GFX::nsRegion ( const nsRegion aRegion) [inline]

Definition at line 101 of file nsRegion.h.

{ Init (); Copy (aRegion); }

Here is the call graph for this function:

NS_GFX::nsRegionRectIterator ( const nsRegion aRegion) [inline]

Definition at line 226 of file nsRegion.h.

  {
    mRegion = &aRegion;
    mCurPtr = &aRegion.mRectListHead;
  }
NS_GFX::nsTransform2D ( void  ) [inline]

Definition at line 61 of file nsTransform2D.h.

Here is the call graph for this function:

NS_GFX::nsTransform2D ( nsTransform2D aTransform2D) [inline]

Definition at line 62 of file nsTransform2D.h.

{ SetMatrix(aTransform2D); }

Here is the call graph for this function:

void nsIObserver::observe ( in nsISupports  aSubject,
in string  aTopic,
in wstring  aData 
) [inherited]

Observe will be called when there is a notification for the topic |aTopic|.

This assumes that the object implementing this interface has been registered with an observer service such as the nsIObserverService.

If you expect multiple topics/subjects, the impl is responsible for filtering.

You should not modify, add, remove, or enumerate notifications in the implemention of observe.

Parameters:
aSubject: Notification specific interface pointer.
aTopic: The notification topic or subject.
aData: Notification specific wide string. subject event.
void nsIScriptableRegion::offset ( in long  aXOffset,
in long  aYOffset 
) [inherited]

offsets the region in x and y

Parameters:
xoffsetpixel offset in x
yoffsetpixel offset in y
Returns:
void
PRBool NS_GFX::operator!= ( const nsRect aRect) const [inline]

Definition at line 124 of file nsRect.h.

                                                {
    return (PRBool) !operator==(aRect);
  }

Here is the call graph for this function:

nsRect& NS_GFX::operator*= ( const float  aScale) [inline]

Definition at line 137 of file nsRect.h.

                                         {x = NSToCoordRound(x * aScale); 
                                          y = NSToCoordRound(y * aScale); 
                                          width = NSToCoordRound(width * aScale); 
                                          height = NSToCoordRound(height * aScale); 
                                          return *this;}

Here is the call graph for this function:

nsRect NS_GFX::operator+ ( const nsPoint aPoint) const [inline]

Definition at line 128 of file nsRect.h.

                                                 {
    return nsRect(x + aPoint.x, y + aPoint.y, width, height);
  }

Here is the call graph for this function:

nsRect& NS_GFX::operator+= ( const nsPoint aPoint) [inline]

Definition at line 134 of file nsRect.h.

{x += aPoint.x; y += aPoint.y; return *this;}
nsRect NS_GFX::operator- ( const nsPoint aPoint) const [inline]

Definition at line 131 of file nsRect.h.

                                                 {
    return nsRect(x - aPoint.x, y - aPoint.y, width, height);
  }

Here is the call graph for this function:

nsRect& NS_GFX::operator-= ( const nsPoint aPoint) [inline]

Definition at line 135 of file nsRect.h.

{x -= aPoint.x; y -= aPoint.y; return *this;}
virtual nsPrintSettings& NS_GFX::operator= ( const nsPrintSettings rhs) [virtual]
nsRegion& NS_GFX::operator= ( const nsRect aRect) [inline]

Definition at line 103 of file nsRegion.h.

{ Copy (aRect); return *this; }

Here is the call graph for this function:

nsRegion& NS_GFX::operator= ( const nsRegion aRegion) [inline]

Definition at line 104 of file nsRegion.h.

{ Copy (aRegion); return *this; }

Here is the call graph for this function:

nsFont& NS_GFX::operator= ( const nsFont aOther)
nsPrintOptions& NS_GFX::operator= ( const nsPrintOptions x) [private]
PRBool NS_GFX::operator== ( const nsFont aOther) const [inline]

Definition at line 116 of file nsFont.h.

                                                {
    return Equals(aOther);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool NS_GFX::operator== ( const nsRect aRect) const [inline]

Definition at line 119 of file nsRect.h.

                                                {
    return (PRBool) ((IsEmpty() && aRect.IsEmpty()) ||
                     ((x == aRect.x) && (y == aRect.y) &&
                      (width == aRect.width) && (height == aRect.height)));
  }

Here is the call graph for this function:

void NS_GFX::Optimize ( ) [private]
nsRegion& NS_GFX::Or ( const nsRegion aRgn1,
const nsRegion aRgn2 
)

Here is the caller graph for this function:

nsRegion& NS_GFX::Or ( const nsRegion aRegion,
const nsRect aRect 
)
nsRegion& NS_GFX::Or ( const nsRect aRect,
const nsRegion aRegion 
) [inline]

Definition at line 123 of file nsRegion.h.

  {
    return  Or   (aRegion, aRect);
  }

Here is the call graph for this function:

nsRegion& NS_GFX::Or ( const nsRect aRect1,
const nsRect aRect2 
) [inline]

Definition at line 127 of file nsRegion.h.

  {
    Copy (aRect1);
    return Or (*this, aRect2);
  }

Here is the call graph for this function:

pre-multiply a new Transform

Parameters:
newxformnew Transform2D
Exceptions:
@authormichaelp 09-25-97 1:56pm
NS_IMETHOD NS_GFX::PrepareDocument ( PRUnichar aTitle,
PRUnichar aPrintToFileName 
) [inline, virtual]

This is enables the DeviceContext to anything it needs to do for Printing before Reflow and BeginDocument is where work can be done after reflow.

Parameters:
aTitle- itle of Document
aPrintToFileName- name of file to print to, if NULL then don't print to file
Returns:
error status

Implements nsIDeviceContext.

Definition at line 125 of file nsDeviceContext.h.

                                                           { return NS_OK; }
const nsRect* NS_GFX::Prev ( ) [inline]

Definition at line 238 of file nsRegion.h.

  {
    mCurPtr = mCurPtr->prev;
    return (mCurPtr != &mRegion->mRectListHead) ? mCurPtr : nsnull;
  }
void NS_GFX::ReadBitFieldPref ( const char *  aPrefId,
PRInt32  anOption 
) [protected]
void NS_GFX::ReadInchesToTwipsPref ( const char *  aPrefId,
nscoord aTwips,
const char *  aMarginPref 
) [protected]
void NS_GFX::ReadJustification ( const char *  aPrefId,
PRInt16 aJust,
PRInt16  aInitValue 
) [protected]
nsresult NS_GFX::ReadPrefDouble ( const char *  aPrefId,
double &  aVal 
) [protected]
virtual nsresult NS_GFX::ReadPrefs ( nsIPrintSettings aPS,
const nsAString &  aPrinterName,
PRUint32  aFlags 
) [protected, virtual]

method ReadPrefs

Parameters:
aPSa pointer to the printer settings
aPrinterNamethe name of the printer for which to read prefs
aFlagsflag specifying which prefs to read
nsresult NS_GFX::ReadPrefString ( const char *  aPrefId,
nsAString &  aString 
) [protected]
static void NS_GFX::ReleaseTable ( void  ) [static]
RgnRect* NS_GFX::Remove ( RgnRect aRect) [private]
void NS_GFX::Reset ( void  ) [inline]

Definition at line 244 of file nsRegion.h.

  {
    mCurPtr = &mRegion->mRectListHead;
  }
void NS_GFX::RestoreLinkChain ( ) [inline, private]
void NS_GFX::SaveLinkChain ( ) [inline, private]
void nsIPrintSettingsService::savePrintSettingsToPrefs ( in nsIPrintSettings  aPrintSettings,
in boolean  aUsePrinterNamePrefix,
in unsigned long  aFlags 
) [inherited]

Writes PrintSettings values to Prefs, the values to be written are indicated by the "flags" arg.

If there is no PrinterName in the PrinterSettings the values are saved as the "generic" values not associated with any printer. If a PrinterName is there, then it saves the items qualified for that Printer

aPS - PrintSettings to have its settings saved aUsePrinterNamePrefix - indicates whether to use the printer name as a prefix aFlags - indicates which prefs to save, see nsIPrintSettings.idl for the const values.

Items not written: startPageRange, endPageRange, scaling, printRange, title docURL, howToEnableFrameUI, isCancelled, printFrameTypeUsage printFrameType, printSilent, shrinkToFit, numCopies

nsRect& NS_GFX::ScaleRoundIn ( const float  aScale)
nsRect& NS_GFX::ScaleRoundOut ( const float  aScale)
void NS_GFX::ScaleXCoords ( const nscoord aSrc,
PRUint32  aNumCoords,
PRIntn *  aDst 
)

Scale an array of X/Y coordinates by the X/Y scale factor in the matrix.

The scale is done as if the other coordinate were zero.

Parameters:
aSrcBase of coordinate input array
aDstBase of coordinate output array
aNumCoordsNumber of coordinates to scale
void NS_GFX::ScaleYCoords ( const nscoord aSrc,
PRUint32  aNumCoords,
PRIntn *  aDst 
)
void nsIDeviceContext::SetAppUnitsToDevUnits ( float  aAppUnits) [inline, inherited]

Set the scale factor to convert units used by the application to device units.

Typically, an application will query the device for twips to device units scale and then set the scale to convert from whatever unit the application wants to use to device units. From that point on, all other parts of the app can use the Get* methods below to figure out how to convert device units <-> app units.

Parameters:
aAppUnitsscale value to convert from application defined units to device units.

Definition at line 298 of file nsIDeviceContext.h.

  {
    mAppUnitsToDevUnits = aAppUnits;
  }

Here is the caller graph for this function:

NS_IMETHOD NS_GFX::SetCanonicalPixelScale ( float  aScale) [virtual]

Get the value used to scale a "standard" pixel to a pixel of the same physical size for this device.

a standard pixel is defined as a pixel on display 0. this is used to make sure that entities defined in pixel dimensions maintain a constant relative size when displayed from one output device to another.

Parameters:
aScalein parameter for scale value
Returns:
error status

Implements nsIDeviceContext.

void nsIDeviceContext::SetDevUnitsToAppUnits ( float  aDevUnits) [inline, inherited]

Set the scale factor to convert device units to units used by the application.

This should generally be 1.0f / the value passed into SetAppUnitsToDevUnits().

Parameters:
aDevUnitsscale value to convert from device units to application defined units

Definition at line 310 of file nsIDeviceContext.h.

  {
    mDevUnitsToAppUnits = aDevUnits;
  }

Here is the caller graph for this function:

void NS_GFX::SetEmpty ( ) [inline]

Definition at line 163 of file nsRegion.h.

  {
    SetToElements (0);
    mBoundRect.SetRect (0, 0, 0, 0);
  }

Here is the call graph for this function:

void nsIPrintOptions::setFontNamePointSize ( in AString  aName,
in PRInt32  aPointSize 
) [inherited]
nsresult NS_GFX::SetMarginStrs ( const PRUnichar aTitle,
nsHeaderFooterEnum  aType,
PRInt16  aJust 
) [protected]
void NS_GFX::SetMatrix ( nsTransform2D aTransform2D)

set this matrix and type from another Transform2D

Parameters:
aTransform2Dis the Transform2D to be copied from
Exceptions:
@authormichaelp 09-25-97 1:56pm

Here is the caller graph for this function:

void nsIPrintSettings::SetPrintOptions ( in PRInt32  aType,
in PRBool  aTurnOnOff 
) [inherited]

Set PrintOptions.

Here is the caller graph for this function:

void NS_GFX::SetRect ( nscoord  aX,
nscoord  aY,
nscoord  aWidth,
nscoord  aHeight 
) [inline]

Definition at line 95 of file nsRect.h.

                                                                        {
    x = aX; y = aY; width = aWidth; height = aHeight;
  }
void NS_GFX::SetToElements ( PRUint32  aCount) [private]

Here is the caller graph for this function:

set this transform to identity

Parameters:
@exception
Author:
michaelp 09-25-97 1:56pm

Definition at line 87 of file nsTransform2D.h.

{ m01 = m10 = m20 = m21 = 0.0f; m00 = m11 = 1.0f; type = MG_2DIDENTITY; }

Here is the caller graph for this function:

void nsIScriptableRegion::setToRect ( in long  aX,
in long  aY,
in long  aWidth,
in long  aHeight 
) [inherited]

copy operator equivalent that takes a rect

Parameters:
aXxoffset of rect to set region to
aYyoffset of rect to set region to
aWidthwidth of rect to set region to
aHeightheight of rect to set region to
Returns:
void

copy operator equivalent that takes another region

Parameters:
regionto copy
Returns:
void
void NS_GFX::SetToScale ( float  sx,
float  sy 
)

set this transform to a scale

Parameters:
sx,xscale
sy,yscale
Exceptions:
@authormichaelp 09-25-97 1:56pm
void NS_GFX::SetToTranslate ( float  tx,
float  ty 
)

set this transform to a translation

Parameters:
tx,xtranslation
ty,ytranslation
Exceptions:
@authormichaelp 09-25-97 1:56pm
void NS_GFX::SetTranslation ( float  tX,
float  tY 
) [inline]

set the translation portion of this transform

Parameters:
tx,xtranslation
ty,ytranslation
Exceptions:

Definition at line 130 of file nsTransform2D.h.

                                          {
    m20 = tX;
    m21 = tY;
    type |= MG_2DTRANSLATION;
  }
NS_IMETHOD NS_GFX::SetZoom ( float  aZoom) [virtual]

Implements nsIDeviceContext.

void nsIPrintOptions::ShowPrintSetupDialog ( in nsIPrintSettings  aThePrintSettings) [inherited]

Show Native Print Options dialog, this may not be supported on all platforms.

Make sure the region has at most aMaxRects by removing area from it if necessary.

The simplified region will be a subset of the original region.

Make sure the region has at most aMaxRects by adding area to it if necessary.

The simplified region will be a superset of the original region. The simplified region's bounding box will be the same as for the current region.

nsSize NS_GFX::Size ( ) const [inline]

Definition at line 152 of file nsRect.h.

{ return nsSize(width, height); }

Here is the call graph for this function:

void NS_GFX::SizeBy ( nscoord  aDeltaWidth,
nscoord  aDeltaHeight 
) [inline]

Definition at line 104 of file nsRect.h.

                                                         {width += aDeltaWidth;
                                                          height += aDeltaHeight;}
void NS_GFX::SizeTo ( nscoord  aWidth,
nscoord  aHeight 
) [inline]

Definition at line 102 of file nsRect.h.

{width = aWidth; height = aHeight;}
void NS_GFX::SizeTo ( const nsSize aSize) [inline]

Definition at line 103 of file nsRect.h.

{SizeTo(aSize.width, aSize.height);}

Here is the call graph for this function:

Here is the caller graph for this function:

nsRegion& NS_GFX::Sub ( const nsRegion aRgn1,
const nsRegion aRgn2 
)

Here is the caller graph for this function:

nsRegion& NS_GFX::Sub ( const nsRegion aRegion,
const nsRect aRect 
)
nsRegion& NS_GFX::Sub ( const nsRect aRect,
const nsRegion aRegion 
) [inline]

Definition at line 147 of file nsRegion.h.

  {
    return Sub (nsRegion (aRect), aRegion);
  }

Here is the call graph for this function:

nsRegion& NS_GFX::Sub ( const nsRect aRect1,
const nsRect aRect2 
) [inline]

Definition at line 151 of file nsRegion.h.

  {
    Copy (aRect1);
    return Sub (*this, aRect2);
  }

Here is the call graph for this function:

void NS_GFX::SubRect ( const nsRectFast aRect,
nsRegion aResult,
nsRegion aCompleted 
) const [private]
void NS_GFX::SubRect ( const nsRectFast aRect,
nsRegion aResult 
) const [inline, private]

Definition at line 208 of file nsRegion.h.

  {    SubRect (aRect, aResult, aResult);  }

Here is the call graph for this function:

Here is the caller graph for this function:

void NS_GFX::SubRegion ( const nsRegion aRegion,
nsRegion aResult 
) const [private]
void nsIScriptableRegion::subtractRect ( in long  aX,
in long  aY,
in long  aWidth,
in long  aHeight 
) [inherited]

destructively subtract a rect from this region

Parameters:
aXxoffset of rect to subtract with region
aYyoffset of rect to subtract with region
aWidthwidth of rect to subtract with region
aHeightheight of rect to subtract with region
Returns:
void

destructively subtract another region with this one

Parameters:
regionto subtract
Returns:
void
NS_IMETHOD nsIDeviceContext::SupportsNativeWidgets ( PRBool aSupportsWidgets) [pure virtual, inherited]

Query the device to see if it supports native widgets.

If not, then nsIWidget->Create() calls should be avoided.

Parameters:
aSupportsWidgetsout paramater. If PR_TRUE, then native widgets can be created.
Returns:
error status

Here is the caller graph for this function:

nscoord NS_GFX::ToCoordRound ( float  aCoord) [private]
nsPoint NS_GFX::TopLeft ( ) const [inline]

Definition at line 147 of file nsRect.h.

{ return nsPoint(x, y); }
nsPoint NS_GFX::TopRight ( ) const [inline]

Definition at line 148 of file nsRect.h.

{ return nsPoint(XMost(), y); }

Here is the call graph for this function:

void NS_GFX::Transform ( float *  ptX,
float *  ptY 
)

apply matrix to vector

Parameters:
ptPoint to transform
Exceptions:
@authormichaelp 09-25-97 1:56pm
void NS_GFX::Transform ( float *  aX,
float *  aY,
float *  aWidth,
float *  aHeight 
)

apply matrix to rect

Parameters:
rectRect to transform
Exceptions:
@authormichaelp 09-25-97 1:56pm
void NS_GFX::TransformCoord ( nscoord ptX,
nscoord ptY 
)
void NS_GFX::TransformCoord ( nscoord aX,
nscoord aY,
nscoord aWidth,
nscoord aHeight 
)
void NS_GFX::TransformNoXLate ( float *  ptX,
float *  ptY 
)

apply nontranslation portion of matrix to vector

Parameters:
ptPoint to transform
Exceptions:
@authormichaelp 09-25-97 1:56pm
float nsIDeviceContext::TwipsToDevUnits ( ) const [inline, inherited]

Obtain the size of a Twip relative to a device unit.

Returns:
conversion value

Definition at line 285 of file nsIDeviceContext.h.

{ return mTwipsToPixels; }

Here is the caller graph for this function:

PRBool NS_GFX::UnionRect ( const nsRect aRect1,
const nsRect aRect2 
)
void nsIScriptableRegion::unionRect ( in long  aX,
in long  aY,
in long  aWidth,
in long  aHeight 
) [inherited]

destructively union a rect with this region

Parameters:
aXxoffset of rect to union with region
aYyoffset of rect to union with region
aWidthwidth of rect to union with region
aHeightheight of rect to union with region
Returns:
void

destructively union another region with this one

Parameters:
regionto union
Returns:
void
void NS_GFX::WriteBitFieldPref ( const char *  aPrefId,
PRInt32  anOption 
) [protected]
void NS_GFX::WriteInchesFromTwipsPref ( const char *  aPrefId,
nscoord  aTwips 
) [protected]
void NS_GFX::WriteJustification ( const char *  aPrefId,
PRInt16  aJust 
) [protected]
nsresult NS_GFX::WritePrefDouble ( const char *  aPrefId,
double  aVal 
) [protected]
virtual nsresult NS_GFX::WritePrefs ( nsIPrintSettings aPS,
const nsAString &  aPrefName,
PRUint32  aFlags 
) [protected, virtual]

method WritePrefs

Parameters:
aPSa pointer to the printer settings
aPrinterNamethe name of the printer for which to write prefs
aFlagsflag specifying which prefs to read
nsresult NS_GFX::WritePrefString ( const char *  aPrefId,
const nsAString &  aString 
) [protected]

method WritePrefString Writes PRUnichar* to Prefs and deletes the contents of aString

nsresult NS_GFX::WritePrefString ( PRUnichar *&  aStr,
const char *  aPrefId 
) [protected]
nscoord NS_GFX::XMost ( ) const [inline]

Definition at line 155 of file nsRect.h.

{return x + width;}

Here is the caller graph for this function:

nsRegion& NS_GFX::Xor ( const nsRegion aRgn1,
const nsRegion aRgn2 
)

Here is the caller graph for this function:

nsRegion& NS_GFX::Xor ( const nsRegion aRegion,
const nsRect aRect 
)
nsRegion& NS_GFX::Xor ( const nsRect aRect,
const nsRegion aRegion 
) [inline]

Definition at line 135 of file nsRegion.h.

  {
    return  Xor  (aRegion, aRect);
  }

Here is the call graph for this function:

nsRegion& NS_GFX::Xor ( const nsRect aRect1,
const nsRect aRect2 
) [inline]

Definition at line 139 of file nsRegion.h.

  {
    Copy (aRect1);
    return Xor (*this, aRect2);
  }

Here is the call graph for this function:

nscoord NS_GFX::YMost ( ) const [inline]

Definition at line 156 of file nsRect.h.

{return y + height;}

Here is the caller graph for this function:


Friends And Related Function Documentation

friend class nsRegionRectIterator [friend]

Definition at line 51 of file nsRegion.h.

friend class RgnRectMemoryAllocator [friend]

Definition at line 52 of file nsRegion.h.


Member Data Documentation

Definition at line 237 of file nsIPrintSettings.idl.

Definition at line 89 of file nsFont.h.

The name of the last printer used, or else the system default printer.

Definition at line 77 of file nsIPrintSettingsService.idl.

attribute wstring nsIPrintSettings::docURL [inherited]

Definition at line 208 of file nsIPrintSettings.idl.

Definition at line 241 of file nsIPrintSettings.idl.

Definition at line 194 of file nsIPrintSettings.idl.

Definition at line 82 of file nsFont.h.

Definition at line 215 of file nsIPrintSettings.idl.

Definition at line 214 of file nsIPrintSettings.idl.

Definition at line 216 of file nsIPrintSettings.idl.

Returns a "global" PrintSettings object Creates a new the first time, if one doesn't exist.

Then returns the same object each time after that.

Initializes the globalPrintSettings from the default printer

Definition at line 57 of file nsIPrintSettingsService.idl.

Definition at line 211 of file nsIPrintSettings.idl.

Definition at line 210 of file nsIPrintSettings.idl.

Definition at line 212 of file nsIPrintSettings.idl.

Definition at line 52 of file nsRect.h.

Definition at line 218 of file nsIPrintSettings.idl.

Definition at line 219 of file nsIPrintSettings.idl.

This attribute tracks whether the PS has been initialized from prefs.

If a different name is set into the "printerName" attribute than the one it was initialized with the PS will then get intialized from prefs again.

Definition at line 273 of file nsIPrintSettings.idl.

This attribute tracks whether the PS has been initialized from a printer specified by the "printerName" attr.

If a different name is set into the "printerName" attribute than the one it was initialized with the PS will then get intialized from that printer.

Definition at line 265 of file nsIPrintSettings.idl.

const short nsIPrintSettings::kEachFrameSep = 3 [inherited]

Definition at line 149 of file nsIPrintSettings.idl.

Definition at line 106 of file nsIPrintSettings.idl.

Definition at line 155 of file nsIPrintSettings.idl.

Definition at line 156 of file nsIPrintSettings.idl.

How to Enable Frame Set Printing Constants.

Definition at line 154 of file nsIPrintSettings.idl.

const short nsIPrintSettings::kFramesAsIs = 1 [inherited]

Definition at line 147 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveAll = 0xFFFFFFFF [inherited]

Definition at line 101 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveBGColors = 0x00000080 [inherited]

Definition at line 75 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveBGImages = 0x00000100 [inherited]

Definition at line 76 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveColorspace = 0x20000000 [inherited]

Definition at line 98 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveDownloadFonts = 0x80000000 [inherited]

Definition at line 100 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveFooterCenter = 0x00000020 [inherited]

Definition at line 73 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveFooterLeft = 0x00000010 [inherited]

Definition at line 72 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveFooterRight = 0x00000040 [inherited]

Definition at line 74 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveHeaderCenter = 0x00000004 [inherited]

Definition at line 70 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveHeaderLeft = 0x00000002 [inherited]

Definition at line 69 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveHeaderRight = 0x00000008 [inherited]

Definition at line 71 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveInColor = 0x00020000 [inherited]

Definition at line 86 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveMargins = 0x01000000 [inherited]

Definition at line 93 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveNativeData = 0x02000000 [inherited]

Definition at line 94 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveOddEvenPages = 0x00000001 [inherited]

PrintSettings to be Saved Navigation Constants.

Definition at line 68 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveOrientation = 0x00040000 [inherited]

Definition at line 87 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePageDelay = 0x00800000 [inherited]

Definition at line 92 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePaperData = 0x00002000 [inherited]

Definition at line 81 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePaperHeight = 0x00008000 [inherited]

Definition at line 83 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePaperName = 0x00000400 [inherited]

Definition at line 78 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePaperSize = 0x00000200 [inherited]

Definition at line 77 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePaperSizeType = 0x00001000 [inherited]

Definition at line 80 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePaperSizeUnit = 0x00000800 [inherited]

Definition at line 79 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePaperWidth = 0x00004000 [inherited]

Definition at line 82 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePlexName = 0x04000000 [inherited]

Definition at line 95 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePrintCommand = 0x00080000 [inherited]

Definition at line 88 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePrinterName = 0x00100000 [inherited]

Definition at line 89 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSavePrintToFile = 0x00200000 [inherited]

Definition at line 90 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveResolutionName = 0x40000000 [inherited]

Definition at line 99 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveReversed = 0x00010000 [inherited]

Definition at line 85 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveScaling = 0x10000000 [inherited]

Definition at line 97 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveShrinkToFit = 0x08000000 [inherited]

Definition at line 96 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveToFileName = 0x00400000 [inherited]

Definition at line 91 of file nsIPrintSettings.idl.

Definition at line 116 of file nsIPrintSettings.idl.

Definition at line 115 of file nsIPrintSettings.idl.

Definition at line 117 of file nsIPrintSettings.idl.

Definition at line 141 of file nsIPrintSettings.idl.

Native data constants.

Definition at line 106 of file nsIPrintOptions.idl.

const short nsIPrintSettings::kNoFrames = 0 [inherited]

Print Frame Constants.

Definition at line 146 of file nsIPrintSettings.idl.

Definition at line 129 of file nsIPrintSettings.idl.

Page Size Unit Constants.

Definition at line 134 of file nsIPrintSettings.idl.

Definition at line 135 of file nsIPrintSettings.idl.

Page Size Type Constants.

Definition at line 128 of file nsIPrintSettings.idl.

Orientation Constants.

Definition at line 140 of file nsIPrintSettings.idl.

const long nsIPrintSettings::kPrintEvenPages = 0x00000002 [inherited]

Definition at line 105 of file nsIPrintSettings.idl.

const long nsIPrintSettings::kPrintOddPages = 0x00000001 [inherited]

Definition at line 104 of file nsIPrintSettings.idl.

Definition at line 109 of file nsIPrintSettings.idl.

Definition at line 112 of file nsIPrintSettings.idl.

Definition at line 111 of file nsIPrintSettings.idl.

Definition at line 110 of file nsIPrintSettings.idl.

const short nsIPrintSettings::kSelectedFrame = 2 [inherited]

Definition at line 148 of file nsIPrintSettings.idl.

FrameSet Default Type Constants.

Definition at line 122 of file nsIPrintSettings.idl.

Definition at line 123 of file nsIPrintSettings.idl.

float NS_GFX::m00 [private]

Definition at line 55 of file nsTransform2D.h.

float NS_GFX::m01 [private]

Definition at line 55 of file nsTransform2D.h.

float NS_GFX::m10 [private]

Definition at line 55 of file nsTransform2D.h.

float NS_GFX::m11 [private]

Definition at line 55 of file nsTransform2D.h.

float NS_GFX::m20 [private]

Definition at line 55 of file nsTransform2D.h.

float NS_GFX::m21 [private]

Definition at line 55 of file nsTransform2D.h.

float nsIDeviceContext::mAppUnitsToDevUnits [protected, inherited]

Definition at line 560 of file nsIDeviceContext.h.

Definition at line 198 of file nsIPrintSettings.idl.

Definition at line 197 of file nsIPrintSettings.idl.

Definition at line 199 of file nsIPrintSettings.idl.

Definition at line 196 of file nsIPrintSettings.idl.

Definition at line 193 of file nsRegion.h.

Definition at line 126 of file nsPrintSettingsImpl.h.

Definition at line 77 of file nsDeviceContext.h.

float NS_GFX::mCPixelScale [protected]

Definition at line 155 of file nsDeviceContext.h.

const nsRegion::RgnRect* NS_GFX::mCurPtr [private]

Definition at line 223 of file nsRegion.h.

Definition at line 191 of file nsRegion.h.

Definition at line 128 of file nsPrintOptionsImpl.h.

float nsIDeviceContext::mDevUnitsToAppUnits [protected, inherited]

Definition at line 561 of file nsIDeviceContext.h.

Definition at line 128 of file nsPrintSettingsImpl.h.

Definition at line 93 of file nsPrintSettingsImpl.h.

nsHashtable* NS_GFX::mFontAliasTable [protected]

Definition at line 154 of file nsDeviceContext.h.

Definition at line 151 of file nsDeviceContext.h.

Definition at line 76 of file nsDeviceContext.h.

Definition at line 112 of file nsPrintSettingsImpl.h.

Definition at line 122 of file nsPrintOptionsImpl.h.

Definition at line 111 of file nsPrintSettingsImpl.h.

Definition at line 100 of file nsPrintSettingsImpl.h.

Definition at line 101 of file nsPrintSettingsImpl.h.

Definition at line 135 of file nsPrintSettingsImpl.h.

Definition at line 134 of file nsPrintSettingsImpl.h.

Definition at line 152 of file nsDeviceContext.h.

Definition at line 87 of file nsPrintSettingsImpl.h.

Definition at line 130 of file nsPrintSettingsImpl.h.

Definition at line 125 of file nsPrintSettingsImpl.h.

Definition at line 110 of file nsPrintSettingsImpl.h.

Definition at line 116 of file nsPrintSettingsImpl.h.

double NS_GFX::mPaperHeight [protected]

Definition at line 119 of file nsPrintSettingsImpl.h.

Definition at line 114 of file nsPrintSettingsImpl.h.

Definition at line 124 of file nsPrintSettingsImpl.h.

Definition at line 117 of file nsPrintSettingsImpl.h.

Definition at line 120 of file nsPrintSettingsImpl.h.

double NS_GFX::mPaperWidth [protected]

Definition at line 118 of file nsPrintSettingsImpl.h.

float nsIDeviceContext::mPixelsToTwips [protected, inherited]

Definition at line 559 of file nsIDeviceContext.h.

Definition at line 115 of file nsPrintSettingsImpl.h.

Definition at line 126 of file nsPrintOptionsImpl.h.

Definition at line 124 of file nsPrintOptionsImpl.h.

Definition at line 95 of file nsPrintSettingsImpl.h.

Definition at line 96 of file nsPrintSettingsImpl.h.

Definition at line 129 of file nsPrintSettingsImpl.h.

Definition at line 131 of file nsPrintSettingsImpl.h.

Definition at line 99 of file nsPrintSettingsImpl.h.

Definition at line 98 of file nsPrintSettingsImpl.h.

Definition at line 123 of file nsPrintSettingsImpl.h.

Definition at line 88 of file nsPrintSettingsImpl.h.

Definition at line 106 of file nsPrintSettingsImpl.h.

Definition at line 103 of file nsPrintSettingsImpl.h.

Definition at line 91 of file nsPrintSettingsImpl.h.

Definition at line 122 of file nsPrintSettingsImpl.h.

Definition at line 102 of file nsPrintSettingsImpl.h.

Definition at line 132 of file nsPrintSettingsImpl.h.

Definition at line 190 of file nsRegion.h.

Definition at line 192 of file nsRegion.h.

Definition at line 58 of file nsScriptableRegion.h.

Definition at line 222 of file nsRegion.h.

Definition at line 127 of file nsPrintSettingsImpl.h.

double NS_GFX::mScaling [protected]

Definition at line 94 of file nsPrintSettingsImpl.h.

Definition at line 85 of file nsPrintSettingsImpl.h.

Definition at line 105 of file nsPrintSettingsImpl.h.

Definition at line 104 of file nsPrintSettingsImpl.h.

Definition at line 92 of file nsPrintSettingsImpl.h.

nsString NS_GFX::mTitle [protected]

Definition at line 108 of file nsPrintSettingsImpl.h.

Definition at line 133 of file nsPrintSettingsImpl.h.

float nsIDeviceContext::mTwipsToPixels [protected, inherited]

Definition at line 558 of file nsIDeviceContext.h.

nsString NS_GFX::mURL [protected]

Definition at line 109 of file nsPrintSettingsImpl.h.

Definition at line 163 of file nsDeviceContext.h.

float NS_GFX::mZoom [protected]

Definition at line 153 of file nsDeviceContext.h.

Definition at line 68 of file nsFont.h.

Returns a new, unique PrintSettings object each time.

For example, if each browser was to have its own unique PrintSettings, then each browser window would call this to create its own unique PrintSettings object.

If each browse window was to use the same PrintSettings object then it should use "globalPrintSettings"

Initializes the newPrintSettings from the default printer

Definition at line 72 of file nsIPrintSettingsService.idl.

Definition at line 248 of file nsIPrintSettings.idl.

Definition at line 246 of file nsIPrintSettings.idl.

Definition at line 229 of file nsIPrintSettings.idl.

Definition at line 231 of file nsIPrintSettings.idl.

Definition at line 227 of file nsIPrintSettings.idl.

Definition at line 245 of file nsIPrintSettings.idl.

Definition at line 228 of file nsIPrintSettings.idl.

Definition at line 232 of file nsIPrintSettings.idl.

Definition at line 230 of file nsIPrintSettings.idl.

Definition at line 234 of file nsIPrintSettings.idl.

Definition at line 202 of file nsIPrintSettings.idl.

Definition at line 203 of file nsIPrintSettings.idl.

Definition at line 247 of file nsIPrintSettings.idl.

Definition at line 250 of file nsIPrintSettings.idl.

Definition at line 221 of file nsIPrintSettings.idl.

Definition at line 220 of file nsIPrintSettings.idl.

Definition at line 244 of file nsIPrintSettings.idl.

Definition at line 255 of file nsIPrintSettings.idl.

Definition at line 205 of file nsIPrintSettings.idl.

Definition at line 243 of file nsIPrintSettings.idl.

Data Members.

Definition at line 191 of file nsIPrintSettings.idl.

Definition at line 222 of file nsIPrintSettings.idl.

Definition at line 252 of file nsIPrintSettings.idl.

Definition at line 200 of file nsIScriptableRegion.idl.

Definition at line 238 of file nsIPrintSettings.idl.

Definition at line 201 of file nsIPrintSettings.idl.

Definition at line 57 of file nsFontUtils.h.

Definition at line 224 of file nsIPrintSettings.idl.

Definition at line 223 of file nsIPrintSettings.idl.

Definition at line 92 of file nsFont.h.

Definition at line 98 of file nsFont.h.

Definition at line 193 of file nsIPrintSettings.idl.

unsigned int NS_GFX::style

Definition at line 71 of file nsFont.h.

Definition at line 75 of file nsFont.h.

attribute wstring nsIPrintSettings::title [inherited]

Definition at line 207 of file nsIPrintSettings.idl.

Definition at line 253 of file nsIPrintSettings.idl.

Definition at line 56 of file nsTransform2D.h.

Definition at line 78 of file nsFont.h.

Definition at line 85 of file nsFont.h.

Definition at line 52 of file nsRect.h.

Definition at line 51 of file nsRect.h.

Definition at line 51 of file nsRect.h.


The documentation for this protocol was generated from the following files: