4 instantiations of DevMode
ReachFramework (4)
MS\Internal\Printing\Configuration\DevMode.cs (2)
391
DevMode result = new
DevMode
();
466
return new
DevMode
(devModeWBytes);
PrintConfig\FallbackPTProvider.cs (1)
304
InternalPrintTicket result = DevModeToPrintTicket(new
DevMode
(devMode), scope, DevModeFields.All);
PrintConfig\PrintSchemaShim.cs (1)
171
return new
DevMode
(Convert.FromBase64String(node.Value));
48 references to DevMode
ReachFramework (48)
MS\Internal\Printing\Configuration\DevMode.cs (10)
389
public
DevMode
Clone()
391
DevMode
result = new DevMode();
418
public void Copy(
DevMode
src, DevModeFields fields)
453
public static
DevMode
FromIntPtr(IntPtr devModeWPointer)
460
short dmSize = Marshal.ReadInt16(devModeWPointer,
DevMode
.DEVMODEW_dmSizeByteOffset);
461
short dmExtraSize = Marshal.ReadInt16(devModeWPointer,
DevMode
.DEVMODEW_dmDriverExtraByteOffset);
469
public bool CompatibleCopy(
DevMode
ticketDevMode)
471
if (
DevMode
.AreCompatible(this, ticketDevMode))
486
public static bool AreCompatible(
DevMode
a,
DevMode
b)
MS\Internal\Printing\Configuration\PRINTER_INFO_2.cs (1)
16
public
DevMode
pDevMode;
MS\Internal\Printing\Configuration\PRINTER_INFO_8_AND_9.cs (1)
13
public
DevMode
pDevMode;
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (2)
19
public WinSpoolPrinterCapabilities(string deviceName, string driverName, string portName,
DevMode
devMode)
301
public bool GetDefaultPaperSize(
DevMode
defaultDevMode, IList<short> paperSizeCodes, IList<DC_PAPER_SIZE> paperSizes, out DC_PAPER_SIZE defaultPaperSize)
PrintConfig\FallbackPTProvider.cs (16)
119
DevMode
defaultDevMode = GetDEVMODE(BaseDevModeType.UserDefault);
120
DevMode
devMode = defaultDevMode.Clone();
263
DevMode
defaultDevMode = GetDEVMODE(BaseDevModeType.PrinterDefault);
266
DevMode
baseDevMode = defaultDevMode.Clone();
270
DevMode
deltaDevMode = defaultDevMode.Clone();
332
DevMode
result = GetDEVMODE(baseType);
406
private bool Validate(
DevMode
devMode)
412
DevMode
originalDevMode = devMode.Clone();
461
private void PrintTicketToDevMode(
DevMode
devMode, InternalPrintTicket ticket, PrintTicketScope scope, DevModeFields supportedFields)
466
DevMode
ticketDevMode = PrintSchemaShim.TryGetEmbeddedDevMode(ticket, this.OemDriverNamespace);
476
private InternalPrintTicket DevModeToPrintTicket(
DevMode
devmode, PrintTicketScope scope, DevModeFields supportedFields)
484
private WinSpoolPrinterCapabilities GetCapabilities(
DevMode
devMode)
531
private
DevMode
GetDEVMODE(BaseDevModeType baseType)
533
DevMode
result;
775
PRINTER_INFO_2.pDevMode =
DevMode
.FromIntPtr(pDevMode);
820
PRINTER_INFO_8_AND_9.pDevMode =
DevMode
.FromIntPtr(pDevMode);
PrintConfig\PrintSchemaShim.cs (18)
109
public static bool TryEmbedDevMode(InternalPrintTicket ticket, string oemDriverNamespace,
DevMode
devMode)
150
public static
DevMode
TryGetEmbeddedDevMode(InternalPrintTicket ticket, string oemDriverNamespace)
186
public static void CopyDevModeToTicket(InternalPrintTicket baseTicket,
DevMode
deltaDevMode, PrintTicketScope scope, DevModeFields supportedFields)
278
public static void CopyTicketToDevMode(
DevMode
baseDevMode, InternalPrintTicket deltaTicket, PrintTicketScope scope, DevModeFields supportedFields)
405
public static bool PruneFeatures(
DevMode
inDevMode, WinSpoolPrinterCapabilities capabilities)
514
private static void SetCollate(
DevMode
devMode, Collation collation)
533
private static void SetColor(
DevMode
devMode, OutputColor outputColor)
558
private static void SetCopies(
DevMode
devMode, int copyCount)
572
private static void SetDuplex(
DevMode
devMode, Duplexing duplexing)
669
private static void SetDefaultSource(
DevMode
devMode, InputBin inputBin)
766
private static void SetPaperSize(
DevMode
devMode, PageMediaSizeName pageMediaSizeName)
771
private static void SetPageHeight(
DevMode
devMode, double pageHeightInDIPs)
776
private static void SetPageWidth(
DevMode
devMode, double pageWidthInDIPs)
905
private static void SetMediaType(
DevMode
devMode, PageMediaType pageMediaType)
949
private static void SetOrientation(
DevMode
devMode, PageOrientation pageOrientation)
986
private static void SetPrintQuality(
DevMode
devMode, PageQualitativeResolution qualitativeResolution, int dpiX, int dpiY, DevModeFields supportedFields)
1070
private static void SetScale(
DevMode
devMode, int scale)
1113
private static void SetTTOption(
DevMode
devMode, DeviceFontSubstitution fontSubstitution, TrueTypeFontMode trueTypeFontMode)