gfx/idl/nsIPrintSettings.idl,1.8 | . | Disk File |
Skipping to line 37 | . | |
* |
. |
* |
* ***** END LICENSE BLOCK ***** */ |
. |
* ***** END LICENSE BLOCK ***** */ |
|
. |
|
#include "nsISupports.idl" |
. |
#include "nsISupports.idl" |
|
. |
|
  |
. |
|
  |
. |
%{ C++ |
  |
. |
#include "nsMargin.h" |
  |
. |
#include "nsFont.h" |
  |
. |
%} |
  |
. |
|
  |
. |
/** |
  |
. |
* Native types |
  |
. |
*/ |
  |
. |
[ref] native nsNativeMarginRef(nsMargin); |
  |
. |
|
/** |
. |
/** |
* Simplified graphics interface for JS rendering. |
. |
* Simplified graphics interface for JS rendering. |
* |
. |
* |
* @status UNDER_REVIEW |
. |
* @status UNDER_REVIEW |
*/ |
. |
*/ |
Skipping to line 59 | . | |
|
. |
|
|
. |
  |
|
. |
  |
interface nsIPrintSettings : nsISupports |
. |
interface nsIPrintSettings : nsISupports |
{ |
. |
{ |
  |
. |
|
/* Print Option Flags for Bit Field*/ |
. |
/* Print Option Flags for Bit Field*/ |
const long kOptPrintOddPages = 0x00000001; |
. |
const long kPrintOddPages = 0x00000001; |
const long kOptPrintEvenPages = 0x00000002; |
. |
const long kPrintEvenPages = 0x00000002; |
const long kPrintOptionsEnableSelectionRB = 0x00000004; |
. |
const long kEnableSelectionRB = 0x00000004; |
|
. |
|
/* Print Range Enums */ |
. |
/* Print Range Enums */ |
const long kRangeAllPages = 0; |
. |
const long kRangeAllPages = 0; |
const long kRangeSpecifiedPageRange = 1; |
. |
const long kRangeSpecifiedPageRange = 1; |
const long kRangeSelection = 2; |
. |
const long kRangeSelection = 2; |
Skipping to line 75 | . | |
const long kJustLeft = 0; |
. |
const long kJustLeft = 0; |
const long kJustCenter = 1; |
. |
const long kJustCenter = 1; |
const long kJustRight = 2; |
. |
const long kJustRight = 2; |
|
. |
|
/** |
. |
/** |
* Page Size Constants |
. |
* FrameSet Default Type Constants |
  |
. |
*/ |
  |
. |
const short kUseInternalDefault = 0; |
  |
. |
const short kUseSettingWhenPossible = 1; |
  |
. |
|
  |
. |
/** |
  |
. |
* Page Size Type Constants |
*/ |
. |
*/ |
const short kLetterPaperSize = 0; |
. |
const short kPaperSizeNativeData = 0; |
const short kLegalPaperSize = 1; |
. |
const short kPaperSizeDefined = 1; |
const short kExecutivePaperSize = 2; |
. |
|
const short kA4PaperSize = 3; |
. |
/** |
const short kA3PaperSize = 4; |
. |
* Page Size Unit Constants |
  |
. |
*/ |
  |
. |
const short kPaperSizeInches = 0; |
  |
. |
const short kPaperSizeMillimeters = 1; |
|
. |
|
/** |
. |
/** |
* Orientation Constants |
. |
* Orientation Constants |
*/ |
. |
*/ |
const short kPortraitOrientation = 0; |
. |
const short kPortraitOrientation = 0; |
Skipping to line 107 | . | |
const short kFramesAsIs = 1; |
. |
const short kFramesAsIs = 1; |
const short kSelectedFrame = 2; |
. |
const short kSelectedFrame = 2; |
const short kEachFrameSep = 3; |
. |
const short kEachFrameSep = 3; |
|
. |
|
/** |
. |
/** |
  |
. |
* How to Enable Frame Set Printing Constants |
  |
. |
*/ |
  |
. |
const short kFrameEnableNone = 0; |
  |
. |
const short kFrameEnableAll = 1; |
  |
. |
const short kFrameEnableAsIsAndEach = 2; |
  |
. |
|
  |
. |
/** |
* Set PrintOptions |
. |
* Set PrintOptions |
*/ |
. |
*/ |
void SetPrintOptions(in PRInt32 aType, in PRBool aTurnOnOff); |
. |
void SetPrintOptions(in PRInt32 aType, in PRBool aTurnOnOff); |
|
. |
|
/** |
. |
/** |
Skipping to line 129 | . | |
* Set PrintOptions Bit field |
. |
* Set PrintOptions Bit field |
*/ |
. |
*/ |
PRInt32 GetPrintOptionsBits(); |
. |
PRInt32 GetPrintOptionsBits(); |
|
. |
|
/** |
. |
/** |
  |
. |
* Returns W/H in Twips from Paper Size H/W |
  |
. |
*/ |
  |
. |
void GetPageSizeInTwips(out long aWidth, out long aHeight); |
  |
. |
|
  |
. |
/** |
* Data Members |
. |
* Data Members |
*/ |
. |
*/ |
attribute long startPageRange; |
. |
attribute long startPageRange; |
attribute long endPageRange; |
. |
attribute long endPageRange; |
|
. |
|
Skipping to line 161 | . | |
|
. |
|
attribute wstring footerStrLeft; |
. |
attribute wstring footerStrLeft; |
attribute wstring footerStrCenter; |
. |
attribute wstring footerStrCenter; |
attribute wstring footerStrRight; |
. |
attribute wstring footerStrRight; |
|
. |
|
 
|
. |
attribute short howToEnableFrameUI; /* indicates how to enable the frames
et UI */ |
 
|
. |
attribute boolean isCancelled; /* indicates whether the print job ha
s been cancelled */ |
 
|
. |
attribute short printFrameTypeUsage; /* indicates whether to use the inter
al value or not */ |
attribute short printFrameType; |
. |
attribute short printFrameType; |
attribute boolean PrintSilent; /* print without putting up the dialog */ |
. |
attribute boolean printSilent; /* print without putting up the dialog */ |
|
. |
|
/* Additional XP Related */ |
. |
/* Additional XP Related */ |
  |
. |
attribute short paperSizeType; /* use native data or is defined here */ |
  |
. |
attribute short paperData; /* native data value */ |
  |
. |
attribute double paperWidth; /* width of the paper in inches or mm */ |
  |
. |
attribute double paperHeight; /* height of the paper in inches or mm */ |
  |
. |
attribute short paperSizeUnit; /* paper is in inches or mm */ |
  |
. |
|
attribute boolean printReversed; |
. |
attribute boolean printReversed; |
attribute boolean printInColor; /* a false means grayscale */ |
. |
attribute boolean printInColor; /* a false means grayscale */ |
attribute long paperSize; /* see page size consts */ |
. |
attribute long paperSize; /* see page size consts */ |
attribute long orientation; /* see orientation consts */ |
. |
attribute long orientation; /* see orientation consts */ |
attribute wstring printCommand; |
. |
attribute wstring printCommand; |
  |
. |
attribute long numCopies; |
  |
. |
attribute wstring printerName; |
Skipping to line 186 | . | |
attribute boolean printToFile; |
. |
attribute boolean printToFile; |
attribute wstring toFileName; |
. |
attribute wstring toFileName; |
|
. |
|
attribute long printPageDelay; /* in milliseconds */ |
. |
attribute long printPageDelay; /* in milliseconds */ |
  |
. |
|
  |
. |
/* C++ Helper Functions */ |
  |
. |
[noscript] void SetMarginInTwips(in nsNativeMarginRef aMargin); |
  |
. |
/* Purposely made this an "in" arg */ |
  |
. |
[noscript] void GetMarginInTwips(in nsNativeMarginRef aMargin); |
|
. |
|
}; |
. |
}; |