Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIPrintSettings Interface Reference

Simplified graphics interface for JS rendering. More...

import "nsIPrintSettings.idl";

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

List of all members.

Public Member Functions

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)

Public Attributes

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.

Detailed Description

Simplified graphics interface for JS rendering.

UNDER_REVIEW

Definition at line 63 of file nsIPrintSettings.idl.


Member Function Documentation

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

Makes a new copy.

Here is the caller graph for this function:

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

Get PrintOptions.

Here is the caller graph for this function:

Set PrintOptions Bit field.

Set PrintOptions.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 237 of file nsIPrintSettings.idl.

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 215 of file nsIPrintSettings.idl.

Definition at line 214 of file nsIPrintSettings.idl.

Definition at line 216 of file nsIPrintSettings.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 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.

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.

Definition at line 147 of file nsIPrintSettings.idl.

const unsigned long nsIPrintSettings::kInitSaveAll = 0xFFFFFFFF

Definition at line 101 of file nsIPrintSettings.idl.

Definition at line 75 of file nsIPrintSettings.idl.

Definition at line 76 of file nsIPrintSettings.idl.

Definition at line 98 of file nsIPrintSettings.idl.

Definition at line 100 of file nsIPrintSettings.idl.

Definition at line 73 of file nsIPrintSettings.idl.

Definition at line 72 of file nsIPrintSettings.idl.

Definition at line 74 of file nsIPrintSettings.idl.

Definition at line 70 of file nsIPrintSettings.idl.

Definition at line 69 of file nsIPrintSettings.idl.

Definition at line 71 of file nsIPrintSettings.idl.

Definition at line 86 of file nsIPrintSettings.idl.

Definition at line 93 of file nsIPrintSettings.idl.

Definition at line 94 of file nsIPrintSettings.idl.

PrintSettings to be Saved Navigation Constants.

Definition at line 68 of file nsIPrintSettings.idl.

Definition at line 87 of file nsIPrintSettings.idl.

Definition at line 92 of file nsIPrintSettings.idl.

Definition at line 81 of file nsIPrintSettings.idl.

Definition at line 83 of file nsIPrintSettings.idl.

Definition at line 78 of file nsIPrintSettings.idl.

Definition at line 77 of file nsIPrintSettings.idl.

Definition at line 80 of file nsIPrintSettings.idl.

Definition at line 79 of file nsIPrintSettings.idl.

Definition at line 82 of file nsIPrintSettings.idl.

Definition at line 95 of file nsIPrintSettings.idl.

Definition at line 88 of file nsIPrintSettings.idl.

Definition at line 89 of file nsIPrintSettings.idl.

Definition at line 90 of file nsIPrintSettings.idl.

Definition at line 99 of file nsIPrintSettings.idl.

Definition at line 85 of file nsIPrintSettings.idl.

Definition at line 97 of file nsIPrintSettings.idl.

Definition at line 96 of file nsIPrintSettings.idl.

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.

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.

Definition at line 105 of file nsIPrintSettings.idl.

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.

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.

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 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 238 of file nsIPrintSettings.idl.

Definition at line 201 of file nsIPrintSettings.idl.

Definition at line 224 of file nsIPrintSettings.idl.

Definition at line 223 of file nsIPrintSettings.idl.

Definition at line 193 of file nsIPrintSettings.idl.

Definition at line 207 of file nsIPrintSettings.idl.

Definition at line 253 of file nsIPrintSettings.idl.


The documentation for this interface was generated from the following file: