gfx/idl/nsIPrintOptions.idl,1.20 | . | Disk File |
Skipping to line 39 | . | |
* ***** END LICENSE BLOCK ***** */ |
. |
* ***** END LICENSE BLOCK ***** */ |
|
. |
|
#include "nsISupports.idl" |
. |
#include "nsISupports.idl" |
#include "nsIPrintSettings.idl" |
. |
#include "nsIPrintSettings.idl" |
|
. |
|
%{ C++ |
. |
%{ C++ |
#include "nsMargin.h" |
. |
  |
#include "nsFont.h" |
. |
#include "nsFont.h" |
%} |
. |
%} |
|
. |
|
interface nsISimpleEnumerator; |
. |
interface nsISimpleEnumerator; |
|
. |
|
Skipping to line 51 | . | |
* Native types |
. |
* Native types |
*/ |
. |
*/ |
[ref] native nsNativeMarginRef(nsMargin); |
. |
  |
[ref] native nsNativeFontRef(nsFont); |
. |
[ref] native nsNativeFontRef(nsFont); |
[ref] native nsNativeStringRef(nsString); |
. |
[ref] native nsNativeStringRef(nsString); |
|
. |
|
/** |
. |
/** |
* Simplified graphics interface for JS rendering. |
. |
* Simplified graphics interface for JS rendering. |
Skipping to line 77 | . | |
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 |
. |
* Page Size Constants (NOTE: These have been deprecated!); |
*/ |
. |
*/ |
const short kLetterPaperSize = 0; |
. |
const short kLetterPaperSize = 0; |
const short kLegalPaperSize = 1; |
. |
const short kLegalPaperSize = 1; |
const short kExecutivePaperSize = 2; |
. |
const short kExecutivePaperSize = 2; |
const short kA4PaperSize = 3; |
. |
const short kA4PaperSize = 3; |
Skipping to line 89 | . | |
|
. |
|
/** |
. |
/** |
  |
. |
* FrameSet Default Type Constants |
  |
. |
*/ |
  |
. |
const short kUseInternalDefault = 0; |
  |
. |
const short kUseSettingWhenPossible = 1; |
  |
. |
|
  |
. |
/** |
  |
. |
* Page Size Type Constants |
  |
. |
*/ |
  |
. |
const short kPaperSizeNativeData = 0; |
  |
. |
const short kPaperSizeDefined = 1; |
  |
. |
|
  |
. |
/** |
  |
. |
* Page Size Unit Constants |
  |
. |
*/ |
  |
. |
const short kPaperSizeInches = 0; |
  |
. |
const short kPaperSizeMillimeters = 1; |
  |
. |
|
  |
. |
/** |
* Orientation Constants |
. |
* Orientation Constants |
*/ |
. |
*/ |
const short kPortraitOrientation = 0; |
. |
const short kPortraitOrientation = 0; |
const short kLandscapeOrientation = 1; |
. |
const short kLandscapeOrientation = 1; |
|
. |
|
Skipping to line 117 | . | |
const short kNoFrames = 0; |
. |
const short kNoFrames = 0; |
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 kFrameEnableNone = 0; |
const short kFrameEnableAll = 1; |
. |
const short kFrameEnableAll = 1; |
const short kFrameEnableAsIsAndEach = 2; |
. |
const short kFrameEnableAsIsAndEach = 2; |
|
. |
|
/** |
. |
/** |
Skipping to line 155 | . | |
* Write Prefs |
. |
* Write Prefs |
*/ |
. |
*/ |
void WritePrefs(); |
. |
void WritePrefs(); |
|
. |
|
/** |
. |
/** |
  |
. |
* Creates a new PrintSettnigs Object |
  |
. |
*/ |
  |
. |
nsIPrintSettings CreatePrintSettings(); |
  |
. |
|
  |
. |
/** |
* Data Members |
. |
* Data Members |
*/ |
. |
*/ |
attribute long startPageRange; |
. |
attribute long startPageRange; |
attribute long endPageRange; |
. |
attribute long endPageRange; |
|
. |
|
Skipping to line 187 | . | |
|
. |
|
attribute wstring footerStrLeft; |
. |
attribute wstring footerStrLeft; |
attribute wstring footerStrCenter; |
. |
attribute wstring footerStrCenter; |
attribute wstring footerStrRight; |
. |
attribute wstring footerStrRight; |
|
. |
|
attribute short howToEnableFrameUI; |
. |
attribute short howToEnableFrameUI; |
attribute short printFrameType; |
. |
  |
attribute boolean isCancelled; |
. |
attribute boolean isCancelled; |
attribute boolean PrintSilent; /* print without putting up the dialog */
|
. |
attribute short printFrameTypeUsage; /* indicates whether to use the inter
al value or not*/ |
  |
. |
attribute short printFrameType; |
  |
. |
attribute boolean printSilent; /* print without putting up the dialog */ |
|
. |
|
attribute nsIPrintSettings printSettings;
|
. |
attribute nsIPrintSettings printSettingsValues; /* used copy the values to/f
rom the settings obj*/ |
 
|
. |
attribute nsIPrintSettings printSettings; /* used to set and get the c
urrent object */ |
|
. |
|
/* 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 long paperSize; /* This has been deprecated */ |
  |
. |
|
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 orientation; /* see orientation consts */ |
. |
attribute long orientation; /* see orientation consts */ |
attribute wstring printCommand; |
. |
attribute wstring printCommand; |
attribute long numCopies; |
. |
attribute long numCopies; |
attribute wstring printer; |
. |
attribute wstring printerName; |
attribute boolean printToFile; |
. |
attribute boolean printToFile; |
attribute wstring toFileName; |
. |
attribute wstring toFileName; |
|
. |
|
attribute long printPageDelay; /* in milliseconds */ |
. |
attribute long printPageDelay; /* in milliseconds */ |
|
. |
|
Skipping to line 228 | . | |
|
. |
|
[noscript] void SetDefaultFont(in nsNativeFontRef aMargin); |
. |
[noscript] void SetDefaultFont(in nsNativeFontRef aMargin); |
/* Purposely made this an "in" arg */ |
. |
/* Purposely made this an "in" arg */ |
[noscript] void GetDefaultFont(in nsNativeFontRef aMargin); |
. |
[noscript] void GetDefaultFont(in nsNativeFontRef aMargin); |
|
. |
|
  |
. |
[noscript] void GetPageSizeInTwips(out long aWidth, out long aHeight); |
  |
. |
|
/** |
. |
/** |
* available Printers |
. |
* available Printers |
*/ |
. |
*/ |
nsISimpleEnumerator availablePrinters (); |
. |
nsISimpleEnumerator availablePrinters (); |
|
. |
|
Skipping to line 241 | . | |
* display Printer Job Properties dialog |
. |
* display Printer Job Properties dialog |
*/ |
. |
*/ |
void displayJobProperties (in wstring aPrinter, out boolean aDisplayed);
|
. |
void displayJobProperties (in wstring aPrinter, in nsIPrintSettings aPrintS
ettings, out boolean aDisplayed); |
|
. |
|
/** |
. |
/** |
* Native data constants |
. |
* Native data constants |
*/ |
. |
*/ |
const short kNativeDataPrintRecord = 0; |
. |
const short kNativeDataPrintRecord = 0; |
Skipping to line 263 | . | |
void enumeratePrinters(out PRUint32 aCount,[retval, array, size_is(aCount)]
out wstring aResult); |
. |
void enumeratePrinters(out PRUint32 aCount,[retval, array, size_is(aCount)]
out wstring aResult); |
|
. |
|
/* takes printer selected and will display job properties dlg for that prin
ter |
. |
/* takes printer selected and will display job properties dlg for that prin
ter |
* returns true if dialog displays |
. |
* returns true if dialog displays |
*/ |
. |
*/ |
void displayPropertiesDlg(in wstring aPrinter);
|
. |
void displayPropertiesDlg(in wstring aPrinter, in nsIPrintSettings aPrintSet
tings); |
}; |
. |
}; |
|
. |
|