Struct xpcom::interfaces::nsIPrintSettings [] [src]

#[repr(C)]
pub struct nsIPrintSettings { /* fields omitted */ }

interface nsIPrintSettings : nsISupports

/**
 * Simplified graphics interface for JS rendering.
 */

Methods

impl nsIPrintSettings
[src]

[src]

Cast this nsIPrintSettings to one of its base interfaces.

impl nsIPrintSettings
[src]

kInitSaveOddEvenPages: i64 = 1
/**
   * PrintSettings to be Saved Navigation Constants
   */

kInitSaveHeaderLeft: i64 = 2

kInitSaveHeaderCenter: i64 = 4

kInitSaveHeaderRight: i64 = 8

kInitSaveFooterLeft: i64 = 16

kInitSaveFooterCenter: i64 = 32

kInitSaveFooterRight: i64 = 64

kInitSaveBGColors: i64 = 128

kInitSaveBGImages: i64 = 256

kInitSavePaperSize: i64 = 512

kInitSaveResolution: i64 = 1024

kInitSaveDuplex: i64 = 2048

kInitSavePaperData: i64 = 8192

kInitSaveUnwriteableMargins: i64 = 16384

kInitSaveEdges: i64 = 32768

kInitSaveReversed: i64 = 65536

kInitSaveInColor: i64 = 131072

kInitSaveOrientation: i64 = 262144

kInitSavePrinterName: i64 = 1048576

kInitSavePrintToFile: i64 = 2097152

kInitSaveToFileName: i64 = 4194304

kInitSavePageDelay: i64 = 8388608

kInitSaveMargins: i64 = 16777216

kInitSaveNativeData: i64 = 33554432

kInitSaveShrinkToFit: i64 = 134217728

kInitSaveScaling: i64 = 268435456

kInitSaveAll: i64 = 4294967295

kPrintOddPages: i64 = 1

kPrintEvenPages: i64 = 2

kEnableSelectionRB: i64 = 4

kRangeAllPages: i64 = 0

kRangeSpecifiedPageRange: i64 = 1

kRangeSelection: i64 = 2

kRangeFocusFrame: i64 = 3

kJustLeft: i64 = 0

kJustCenter: i64 = 1

kJustRight: i64 = 2

kUseInternalDefault: i64 = 0
/**
   * FrameSet Default Type Constants
   */

kUseSettingWhenPossible: i64 = 1

kPaperSizeNativeData: i64 = 0
/**
   * Page Size Type Constants
   */

kPaperSizeDefined: i64 = 1

kPaperSizeInches: i64 = 0
/**
   * Page Size Unit Constants
   */

kPaperSizeMillimeters: i64 = 1

kPortraitOrientation: i64 = 0
/**
   * Orientation Constants
   */

kLandscapeOrientation: i64 = 1

kNoFrames: i64 = 0
/**
   * Print Frame Constants
   */

kFramesAsIs: i64 = 1

kSelectedFrame: i64 = 2

kEachFrameSep: i64 = 3

kFrameEnableNone: i64 = 0
/**
   * How to Enable Frame Set Printing Constants
   */

kFrameEnableAll: i64 = 1

kFrameEnableAsIsAndEach: i64 = 2

kOutputFormatNative: i64 = 0
/**
   * Output file format
   */

kOutputFormatPS: i64 = 1

kOutputFormatPDF: i64 = 2

[src]

/**
   * Set PrintOptions
   */

void SetPrintOptions (in int32_t aType, in boolean aTurnOnOff);

[src]

/**
   * Get PrintOptions
   */

boolean GetPrintOptions (in int32_t aType);

[src]

/**
   * Get PrintOptions Bit field
   */

int32_t GetPrintOptionsBits ();

[src]

/**
   * Set PrintOptions Bit field
   */

void SetPrintOptionsBits (in int32_t bits);

[src]

/**
   * Get the page size in twips, considering the
   * orientation (portrait or landscape).
   */

void GetEffectivePageSize (out double aWidth, out double aHeight);

[src]

/**
   * Makes a new copy
   */

nsIPrintSettings clone ();

[src]

/**
   * Assigns the internal values from the "in" arg to the current object
   */

void assign (in nsIPrintSettings aPS);

[src]

/**
   * Data Members
   */

[noscript] attribute nsIPrintSession printSession;

[src]

/**
   * Data Members
   */

[noscript] attribute nsIPrintSession printSession;

[src]

attribute long startPageRange;

[src]

attribute long startPageRange;

[src]

attribute long endPageRange;

[src]

attribute long endPageRange;

[src]

/**
   * The edge measurements define the positioning of the headers
   * and footers on the page. They're measured as an offset from
   * the "unwriteable margin" (described below).
   */

attribute double edgeTop;

[src]

/**
   * The edge measurements define the positioning of the headers
   * and footers on the page. They're measured as an offset from
   * the "unwriteable margin" (described below).
   */

attribute double edgeTop;

[src]

attribute double edgeLeft;

[src]

attribute double edgeLeft;

[src]

attribute double edgeBottom;

[src]

attribute double edgeBottom;

[src]

attribute double edgeRight;

[src]

attribute double edgeRight;

[src]

/**
   * The margins define the positioning of the content on the page.
   * They're treated as an offset from the "unwriteable margin"
   * (described below).
   */

attribute double marginTop;

[src]

/**
   * The margins define the positioning of the content on the page.
   * They're treated as an offset from the "unwriteable margin"
   * (described below).
   */

attribute double marginTop;

[src]

attribute double marginLeft;

[src]

attribute double marginLeft;

[src]

attribute double marginBottom;

[src]

attribute double marginBottom;

[src]

attribute double marginRight;

[src]

attribute double marginRight;

[src]

/**
   * The unwriteable margin defines the printable region of the paper, creating
   * an invisible border from which the edge and margin attributes are measured.
   */

attribute double unwriteableMarginTop;

[src]

/**
   * The unwriteable margin defines the printable region of the paper, creating
   * an invisible border from which the edge and margin attributes are measured.
   */

attribute double unwriteableMarginTop;

[src]

attribute double unwriteableMarginLeft;

[src]

attribute double unwriteableMarginLeft;

[src]

attribute double unwriteableMarginBottom;

[src]

attribute double unwriteableMarginBottom;

[src]

attribute double unwriteableMarginRight;

[src]

attribute double unwriteableMarginRight;

[src]

attribute double scaling;

[src]

attribute double scaling;

[src]

attribute boolean printBGColors;

[src]

attribute boolean printBGColors;

[src]

attribute boolean printBGImages;

[src]

attribute boolean printBGImages;

[src]

attribute short printRange;

[src]

attribute short printRange;

[src]

attribute AString title;

[src]

attribute AString title;

[src]

attribute AString docURL;

[src]

attribute AString docURL;

[src]

attribute AString headerStrLeft;

[src]

attribute AString headerStrLeft;

[src]

attribute AString headerStrCenter;

[src]

attribute AString headerStrCenter;

[src]

attribute AString headerStrRight;

[src]

attribute AString headerStrRight;

[src]

attribute AString footerStrLeft;

[src]

attribute AString footerStrLeft;

[src]

attribute AString footerStrCenter;

[src]

attribute AString footerStrCenter;

[src]

attribute AString footerStrRight;

[src]

attribute AString footerStrRight;

[src]

attribute short howToEnableFrameUI;

[src]

attribute short howToEnableFrameUI;

[src]

attribute boolean isCancelled;

[src]

attribute boolean isCancelled;

[src]

attribute short printFrameTypeUsage;

[src]

attribute short printFrameTypeUsage;

[src]

attribute short printFrameType;

[src]

attribute short printFrameType;

[src]

attribute boolean printSilent;

[src]

attribute boolean printSilent;

[src]

attribute boolean shrinkToFit;

[src]

attribute boolean shrinkToFit;

[src]

attribute boolean showPrintProgress;

[src]

attribute boolean showPrintProgress;

[src]

attribute AString paperName;

[src]

attribute AString paperName;

[src]

attribute short paperData;

[src]

attribute short paperData;

[src]

attribute double paperWidth;

[src]

attribute double paperWidth;

[src]

attribute double paperHeight;

[src]

attribute double paperHeight;

[src]

attribute short paperSizeUnit;

[src]

attribute short paperSizeUnit;

[src]

attribute boolean printReversed;

[src]

attribute boolean printReversed;

[src]

attribute boolean printInColor;

[src]

attribute boolean printInColor;

[src]

attribute long orientation;

[src]

attribute long orientation;

[src]

attribute long numCopies;

[src]

attribute long numCopies;

[src]

attribute AString printerName;

[src]

attribute AString printerName;

[src]

attribute boolean printToFile;

[src]

attribute boolean printToFile;

[src]

attribute AString toFileName;

[src]

attribute AString toFileName;

[src]

attribute short outputFormat;

[src]

attribute short outputFormat;

[src]

attribute long printPageDelay;

[src]

attribute long printPageDelay;

[src]

attribute long resolution;

[src]

attribute long resolution;

[src]

attribute long duplex;

[src]

attribute long duplex;

[src]

/**
   * 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.
   */

attribute boolean isInitializedFromPrinter;

[src]

/**
   * 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.
   */

attribute boolean isInitializedFromPrinter;

[src]

/**
   * 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.
   */

attribute boolean isInitializedFromPrefs;

[src]

/**
   * 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.
   */

attribute boolean isInitializedFromPrefs;

[src]

/**
   * We call this function so that anything that requires a run of the event loop
   * can do so safely. The print dialog runs the event loop but in silent printing
   * that doesn't happen.
   *
   * Either this or ShowPrintDialog (but not both) MUST be called by the print engine
   * before printing, otherwise printing can fail on some platforms.
   */

[noscript] void SetupSilentPrinting ();

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIPrintSettings
[src]

IID: nsIID = nsID(3972385709, 22524, 18225, [176, 189, 9, 232, 101, 189, 98, 173])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIPrintSettings
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIPrintSettings
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.