132 references to DevModeFields
ReachFramework (132)
MS\Internal\Printing\Configuration\DevMode.cs (46)
112public DevModeFields Fields 114get { return (DevModeFields)ReadDWORD(dmFieldsByteOffset); } 126this.SetField(DevModeFields.DM_ORIENTATION); 140this.SetField(DevModeFields.DM_PAPERSIZE); 154this.SetField(DevModeFields.DM_PAPERLENGTH); 168this.SetField(DevModeFields.DM_PAPERWIDTH); 181this.SetField(DevModeFields.DM_SCALE); 194this.SetField(DevModeFields.DM_COPIES); 208this.SetField(DevModeFields.DM_DEFAULTSOURCE); 223this.SetField(DevModeFields.DM_PRINTQUALITY); 236this.SetField(DevModeFields.DM_COLOR); 249this.SetField(DevModeFields.DM_DUPLEX); 263this.SetField(DevModeFields.DM_YRESOLUTION); 276this.SetField(DevModeFields.DM_TTOPTION); 289this.SetField(DevModeFields.DM_COLLATE); 302this.SetField(DevModeFields.DM_FORMNAME); 315this.SetField(DevModeFields.DM_NUP); 328this.SetField(DevModeFields.DM_ICMMETHOD); 342this.SetField(DevModeFields.DM_ICMINTENT); 356this.SetField(DevModeFields.DM_MEDIATYPE); 370this.SetField(DevModeFields.DM_DITHERTYPE); 404public bool IsFieldSet(DevModeFields field) 409public bool IsAnyFieldSet(DevModeFields fields) 419public void Copy(DevMode src, DevModeFields fields) 426Copy(DevModeFields.DM_ORIENTATION, fields, src.Orientation, (DevModeOrientation value) => this.Orientation = value); 427Copy(DevModeFields.DM_PAPERSIZE, fields, src.PaperSize, (short value) => this.PaperSize = value); 428Copy(DevModeFields.DM_PAPERLENGTH, fields, src.PaperLength, (short value) => this.PaperLength = value); 429Copy(DevModeFields.DM_PAPERWIDTH, fields, src.PaperWidth, (short value) => this.PaperWidth = value); 430Copy(DevModeFields.DM_SCALE, fields, src.Scale, (short value) => this.Scale = value); 431Copy(DevModeFields.DM_COPIES, fields, src.Copies, (short value) => this.Copies = value); 432Copy(DevModeFields.DM_DEFAULTSOURCE, fields, src.DefaultSource, (short value) => this.DefaultSource = value); 433Copy(DevModeFields.DM_PRINTQUALITY, fields, src.PrintQuality, (short value) => this.PrintQuality = value); 434Copy(DevModeFields.DM_COLOR, fields, src.Color, (DevModeColor value) => this.Color = value); 435Copy(DevModeFields.DM_DUPLEX, fields, src.Duplex, (DevModeDuplex value) => this.Duplex = value); 436Copy(DevModeFields.DM_YRESOLUTION, fields, src.YResolution, (short value) => this.YResolution = value); 437Copy(DevModeFields.DM_TTOPTION, fields, src.TTOption, (DevModeTrueTypeOption value) => this.TTOption = value); 438Copy(DevModeFields.DM_COLLATE, fields, src.Collate, (DevModeCollate value) => this.Collate = value); 439Copy(DevModeFields.DM_FORMNAME, fields, src.FormName, (string value) => this.FormName = value); 440Copy(DevModeFields.DM_NUP, fields, src.Nup, (DevModeNUp value) => this.Nup = value); 441Copy(DevModeFields.DM_ICMMETHOD, fields, src.ICMMethod, (DevModeICMMethod value) => this.ICMMethod = value); 442Copy(DevModeFields.DM_ICMINTENT, fields, src.ICMIntent, (uint value) => this.ICMIntent = value); 443Copy(DevModeFields.DM_MEDIATYPE, fields, src.MediaType, (uint value) => this.MediaType = value); 444Copy(DevModeFields.DM_DITHERTYPE, fields, src.DitherType, (uint value) => this.DitherType = value); 515private void SetField(DevModeFields field) 568private static void Copy<T>(DevModeFields mask, DevModeFields field, T value, Action<T> setter)
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (11)
169get { return GetBoolCapability(DevModeFields.DM_ICMINTENT); } 177get { return GetBoolCapability(DevModeFields.DM_ICMMETHOD); } 274get { return GetBoolCapability(DevModeFields.DM_SCALE); } 286public DevModeFields Fields 290return (DevModeFields)GetIntCapability(DeviceCapability.DC_FIELDS); 319hasWidth = defaultDevMode.IsFieldSet(DevModeFields.DM_PAPERWIDTH); 326hasHeight = defaultDevMode.IsFieldSet(DevModeFields.DM_PAPERWIDTH); 334if (defaultDevMode.IsFieldSet(DevModeFields.DM_PAPERSIZE)) 363private bool GetBoolCapability(DevModeFields capability) 369this._dmFields = (DevModeFields)GetIntCapability(DeviceCapability.DC_FIELDS); 594private DevModeFields _dmFields;
PrintConfig\FallbackPTProvider.cs (12)
123PrintTicketToDevMode(devMode, internalTicket, PrintTicketScope.JobScope, DevModeFields.All); 263DevModeFields supportedFields = DevModeFields.All; 305InternalPrintTicket result = DevModeToPrintTicket(new DevMode(devMode), scope, DevModeFields.All); 335DevModeFields supportedFields; 425if (originalDevMode.IsAnyFieldSet(DevModeFields.DM_PAPERWIDTH | DevModeFields.DM_PAPERLENGTH | DevModeFields.DM_PAPERSIZE)) 427originalDevMode.Fields &= ~DevModeFields.DM_FORMNAME; 428originalDevMode.Fields |= devMode.Fields & DevModeFields.DM_FORMNAME; 462private void PrintTicketToDevMode(DevMode devMode, InternalPrintTicket ticket, PrintTicketScope scope, DevModeFields supportedFields) 477private InternalPrintTicket DevModeToPrintTicket(DevMode devmode, PrintTicketScope scope, DevModeFields supportedFields)
PrintConfig\PrintSchemaShim.cs (63)
187public static void CopyDevModeToTicket(InternalPrintTicket baseTicket, DevMode deltaDevMode, PrintTicketScope scope, DevModeFields supportedFields) 196if (IsSet(DevModeFields.DM_COLLATE, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_COLLATE)) 204if (IsSet(DevModeFields.DM_COLOR, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_COLOR)) 213if (IsSet(DevModeFields.DM_COPIES, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_COPIES)) 223if (IsSet(DevModeFields.DM_SCALE, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_SCALE)) 228if (IsSet(DevModeFields.DM_PAPERSIZE, supportedFields) 229&& IsSet(DevModeFields.DM_PAPERWIDTH, supportedFields) 230&& IsSet(DevModeFields.DM_PAPERLENGTH, supportedFields) 231&& deltaDevMode.IsAnyFieldSet(DevModeFields.DM_PAPERSIZE | DevModeFields.DM_PAPERWIDTH | DevModeFields.DM_PAPERLENGTH)) 236if (IsSet(DevModeFields.DM_PRINTQUALITY, supportedFields) 237&& IsSet(DevModeFields.DM_YRESOLUTION, supportedFields) 238&& deltaDevMode.IsAnyFieldSet(DevModeFields.DM_PRINTQUALITY | DevModeFields.DM_YRESOLUTION)) 243if (IsSet(DevModeFields.DM_ORIENTATION, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_ORIENTATION)) 248if (IsSet(DevModeFields.DM_TTOPTION, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_TTOPTION)) 253if (IsSet(DevModeFields.DM_MEDIATYPE, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_MEDIATYPE)) 259if (IsSet(DevModeFields.DM_DEFAULTSOURCE, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_DEFAULTSOURCE)) 266if (IsSet(DevModeFields.DM_DUPLEX, supportedFields) && deltaDevMode.IsFieldSet(DevModeFields.DM_DUPLEX)) 279public static void CopyTicketToDevMode(DevMode baseDevMode, InternalPrintTicket deltaTicket, PrintTicketScope scope, DevModeFields supportedFields) 288if (IsSet(DevModeFields.DM_DEFAULTSOURCE, supportedFields) 294if (IsSet(DevModeFields.DM_TTOPTION, supportedFields) 303if (IsSet(DevModeFields.DM_COLOR, supportedFields) 314if (IsSet(DevModeFields.DM_PAPERWIDTH, supportedFields) 320if (IsSet(DevModeFields.DM_PAPERLENGTH, supportedFields) 326if (IsSet(DevModeFields.DM_PAPERSIZE, supportedFields) 332if (IsSet(DevModeFields.DM_MEDIATYPE, supportedFields) 338if (IsSet(DevModeFields.DM_ORIENTATION, supportedFields) 344if (IsSet(DevModeFields.DM_SCALE, supportedFields)) 371if (IsSet(DevModeFields.DM_DEFAULTSOURCE, supportedFields) 377if (IsSet(DevModeFields.DM_COLLATE, supportedFields) 386if (IsSet(DevModeFields.DM_DEFAULTSOURCE, supportedFields) 392if (IsSet(DevModeFields.DM_COPIES, supportedFields) 398if (IsSet(DevModeFields.DM_DUPLEX, supportedFields) 417if (inDevMode.IsFieldSet(DevModeFields.DM_DEFAULTSOURCE) && !bins.Contains(inDevMode.DefaultSource)) 431if (inDevMode.IsFieldSet(DevModeFields.DM_MEDIATYPE) && !mediaTypes.Contains(inDevMode.MediaType)) 445if (inDevMode.IsFieldSet(DevModeFields.DM_PAPERSIZE) && !papers.Contains(inDevMode.PaperSize)) 720private static void SetPageMediaSize(InternalPrintTicket ticket, DevModeFields devModeFields, short devModePaperSource, short devModePaperWidth, short devModePaperHeight, string devModeFormName) 726bool hasPaperSize = (devModeFields & DevModeFields.DM_PAPERSIZE) == DevModeFields.DM_PAPERSIZE; 740bool hasWidth = (devModeFields & DevModeFields.DM_PAPERWIDTH) == DevModeFields.DM_PAPERWIDTH; 741bool hasHeight = (devModeFields & DevModeFields.DM_PAPERLENGTH) == DevModeFields.DM_PAPERLENGTH; 970private static void SetPageResolution(InternalPrintTicket ticket, DevModeFields devModeFields, short devModeXResolution, short devModeYResolution) 980if ((devModeFields & DevModeFields.DM_YRESOLUTION) != 0 && devModeYResolution > 0) 987private static void SetPrintQuality(DevMode devMode, PageQualitativeResolution qualitativeResolution, int dpiX, int dpiY, DevModeFields supportedFields) 992if (IsSet(DevModeFields.DM_PRINTQUALITY, supportedFields)) 997if (IsSet(DevModeFields.DM_YRESOLUTION, supportedFields)) 1014if (IsSet(DevModeFields.DM_PRINTQUALITY, supportedFields)) 1018if (IsSet(DevModeFields.DM_YRESOLUTION, supportedFields)) 1172private static bool IsSet(DevModeFields mask, DevModeFields fields)