132 references to DevModeFields
ReachFramework (132)
MS\Internal\Printing\Configuration\DevMode.cs (46)
115
public
DevModeFields
Fields
117
get { return (
DevModeFields
)ReadDWORD(dmFieldsByteOffset); }
129
this.SetField(
DevModeFields
.DM_ORIENTATION);
143
this.SetField(
DevModeFields
.DM_PAPERSIZE);
157
this.SetField(
DevModeFields
.DM_PAPERLENGTH);
171
this.SetField(
DevModeFields
.DM_PAPERWIDTH);
184
this.SetField(
DevModeFields
.DM_SCALE);
197
this.SetField(
DevModeFields
.DM_COPIES);
211
this.SetField(
DevModeFields
.DM_DEFAULTSOURCE);
226
this.SetField(
DevModeFields
.DM_PRINTQUALITY);
239
this.SetField(
DevModeFields
.DM_COLOR);
252
this.SetField(
DevModeFields
.DM_DUPLEX);
266
this.SetField(
DevModeFields
.DM_YRESOLUTION);
279
this.SetField(
DevModeFields
.DM_TTOPTION);
292
this.SetField(
DevModeFields
.DM_COLLATE);
305
this.SetField(
DevModeFields
.DM_FORMNAME);
318
this.SetField(
DevModeFields
.DM_NUP);
331
this.SetField(
DevModeFields
.DM_ICMMETHOD);
345
this.SetField(
DevModeFields
.DM_ICMINTENT);
359
this.SetField(
DevModeFields
.DM_MEDIATYPE);
373
this.SetField(
DevModeFields
.DM_DITHERTYPE);
407
public bool IsFieldSet(
DevModeFields
field)
412
public bool IsAnyFieldSet(
DevModeFields
fields)
422
public void Copy(DevMode src,
DevModeFields
fields)
429
Copy(
DevModeFields
.DM_ORIENTATION, fields, src.Orientation, (DevModeOrientation value) => this.Orientation = value);
430
Copy(
DevModeFields
.DM_PAPERSIZE, fields, src.PaperSize, (short value) => this.PaperSize = value);
431
Copy(
DevModeFields
.DM_PAPERLENGTH, fields, src.PaperLength, (short value) => this.PaperLength = value);
432
Copy(
DevModeFields
.DM_PAPERWIDTH, fields, src.PaperWidth, (short value) => this.PaperWidth = value);
433
Copy(
DevModeFields
.DM_SCALE, fields, src.Scale, (short value) => this.Scale = value);
434
Copy(
DevModeFields
.DM_COPIES, fields, src.Copies, (short value) => this.Copies = value);
435
Copy(
DevModeFields
.DM_DEFAULTSOURCE, fields, src.DefaultSource, (short value) => this.DefaultSource = value);
436
Copy(
DevModeFields
.DM_PRINTQUALITY, fields, src.PrintQuality, (short value) => this.PrintQuality = value);
437
Copy(
DevModeFields
.DM_COLOR, fields, src.Color, (DevModeColor value) => this.Color = value);
438
Copy(
DevModeFields
.DM_DUPLEX, fields, src.Duplex, (DevModeDuplex value) => this.Duplex = value);
439
Copy(
DevModeFields
.DM_YRESOLUTION, fields, src.YResolution, (short value) => this.YResolution = value);
440
Copy(
DevModeFields
.DM_TTOPTION, fields, src.TTOption, (DevModeTrueTypeOption value) => this.TTOption = value);
441
Copy(
DevModeFields
.DM_COLLATE, fields, src.Collate, (DevModeCollate value) => this.Collate = value);
442
Copy(
DevModeFields
.DM_FORMNAME, fields, src.FormName, (string value) => this.FormName = value);
443
Copy(
DevModeFields
.DM_NUP, fields, src.Nup, (DevModeNUp value) => this.Nup = value);
444
Copy(
DevModeFields
.DM_ICMMETHOD, fields, src.ICMMethod, (DevModeICMMethod value) => this.ICMMethod = value);
445
Copy(
DevModeFields
.DM_ICMINTENT, fields, src.ICMIntent, (uint value) => this.ICMIntent = value);
446
Copy(
DevModeFields
.DM_MEDIATYPE, fields, src.MediaType, (uint value) => this.MediaType = value);
447
Copy(
DevModeFields
.DM_DITHERTYPE, fields, src.DitherType, (uint value) => this.DitherType = value);
518
private void SetField(
DevModeFields
field)
571
private static void Copy<T>(
DevModeFields
mask,
DevModeFields
field, T value, Action<T> setter)
MS\Internal\Printing\Configuration\WinSpoolPrinterCapabilities.cs (11)
172
get { return GetBoolCapability(
DevModeFields
.DM_ICMINTENT); }
180
get { return GetBoolCapability(
DevModeFields
.DM_ICMMETHOD); }
277
get { return GetBoolCapability(
DevModeFields
.DM_SCALE); }
289
public
DevModeFields
Fields
293
return (
DevModeFields
)GetIntCapability(DeviceCapability.DC_FIELDS);
322
hasWidth = defaultDevMode.IsFieldSet(
DevModeFields
.DM_PAPERWIDTH);
329
hasHeight = defaultDevMode.IsFieldSet(
DevModeFields
.DM_PAPERWIDTH);
337
if (defaultDevMode.IsFieldSet(
DevModeFields
.DM_PAPERSIZE))
366
private bool GetBoolCapability(
DevModeFields
capability)
372
this._dmFields = (
DevModeFields
)GetIntCapability(DeviceCapability.DC_FIELDS);
597
private
DevModeFields
_dmFields;
PrintConfig\FallbackPTProvider.cs (12)
127
PrintTicketToDevMode(devMode, internalTicket, PrintTicketScope.JobScope,
DevModeFields
.All);
267
DevModeFields
supportedFields =
DevModeFields
.All;
309
InternalPrintTicket result = DevModeToPrintTicket(new DevMode(devMode), scope,
DevModeFields
.All);
339
DevModeFields
supportedFields;
432
if (originalDevMode.IsAnyFieldSet(
DevModeFields
.DM_PAPERWIDTH |
DevModeFields
.DM_PAPERLENGTH |
DevModeFields
.DM_PAPERSIZE))
434
originalDevMode.Fields &= ~
DevModeFields
.DM_FORMNAME;
435
originalDevMode.Fields |= devMode.Fields &
DevModeFields
.DM_FORMNAME;
469
private void PrintTicketToDevMode(DevMode devMode, InternalPrintTicket ticket, PrintTicketScope scope,
DevModeFields
supportedFields)
484
private InternalPrintTicket DevModeToPrintTicket(DevMode devmode, PrintTicketScope scope,
DevModeFields
supportedFields)
PrintConfig\PrintSchemaShim.cs (63)
191
public static void CopyDevModeToTicket(InternalPrintTicket baseTicket, DevMode deltaDevMode, PrintTicketScope scope,
DevModeFields
supportedFields)
200
if (IsSet(
DevModeFields
.DM_COLLATE, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_COLLATE))
208
if (IsSet(
DevModeFields
.DM_COLOR, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_COLOR))
217
if (IsSet(
DevModeFields
.DM_COPIES, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_COPIES))
227
if (IsSet(
DevModeFields
.DM_SCALE, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_SCALE))
232
if (IsSet(
DevModeFields
.DM_PAPERSIZE, supportedFields)
233
&& IsSet(
DevModeFields
.DM_PAPERWIDTH, supportedFields)
234
&& IsSet(
DevModeFields
.DM_PAPERLENGTH, supportedFields)
235
&& deltaDevMode.IsAnyFieldSet(
DevModeFields
.DM_PAPERSIZE |
DevModeFields
.DM_PAPERWIDTH |
DevModeFields
.DM_PAPERLENGTH))
240
if (IsSet(
DevModeFields
.DM_PRINTQUALITY, supportedFields)
241
&& IsSet(
DevModeFields
.DM_YRESOLUTION, supportedFields)
242
&& deltaDevMode.IsAnyFieldSet(
DevModeFields
.DM_PRINTQUALITY |
DevModeFields
.DM_YRESOLUTION))
247
if (IsSet(
DevModeFields
.DM_ORIENTATION, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_ORIENTATION))
252
if (IsSet(
DevModeFields
.DM_TTOPTION, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_TTOPTION))
257
if (IsSet(
DevModeFields
.DM_MEDIATYPE, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_MEDIATYPE))
263
if (IsSet(
DevModeFields
.DM_DEFAULTSOURCE, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_DEFAULTSOURCE))
270
if (IsSet(
DevModeFields
.DM_DUPLEX, supportedFields) && deltaDevMode.IsFieldSet(
DevModeFields
.DM_DUPLEX))
283
public static void CopyTicketToDevMode(DevMode baseDevMode, InternalPrintTicket deltaTicket, PrintTicketScope scope,
DevModeFields
supportedFields)
292
if (IsSet(
DevModeFields
.DM_DEFAULTSOURCE, supportedFields)
298
if (IsSet(
DevModeFields
.DM_TTOPTION, supportedFields)
307
if (IsSet(
DevModeFields
.DM_COLOR, supportedFields)
318
if (IsSet(
DevModeFields
.DM_PAPERWIDTH, supportedFields)
324
if (IsSet(
DevModeFields
.DM_PAPERLENGTH, supportedFields)
330
if (IsSet(
DevModeFields
.DM_PAPERSIZE, supportedFields)
336
if (IsSet(
DevModeFields
.DM_MEDIATYPE, supportedFields)
342
if (IsSet(
DevModeFields
.DM_ORIENTATION, supportedFields)
348
if (IsSet(
DevModeFields
.DM_SCALE, supportedFields))
375
if (IsSet(
DevModeFields
.DM_DEFAULTSOURCE, supportedFields)
381
if (IsSet(
DevModeFields
.DM_COLLATE, supportedFields)
390
if (IsSet(
DevModeFields
.DM_DEFAULTSOURCE, supportedFields)
396
if (IsSet(
DevModeFields
.DM_COPIES, supportedFields)
402
if (IsSet(
DevModeFields
.DM_DUPLEX, supportedFields)
421
if (inDevMode.IsFieldSet(
DevModeFields
.DM_DEFAULTSOURCE) && !bins.Contains(inDevMode.DefaultSource))
435
if (inDevMode.IsFieldSet(
DevModeFields
.DM_MEDIATYPE) && !mediaTypes.Contains(inDevMode.MediaType))
449
if (inDevMode.IsFieldSet(
DevModeFields
.DM_PAPERSIZE) && !papers.Contains(inDevMode.PaperSize))
724
private static void SetPageMediaSize(InternalPrintTicket ticket,
DevModeFields
devModeFields, short devModePaperSource, short devModePaperWidth, short devModePaperHeight, string devModeFormName)
730
bool hasPaperSize = (devModeFields &
DevModeFields
.DM_PAPERSIZE) ==
DevModeFields
.DM_PAPERSIZE;
744
bool hasWidth = (devModeFields &
DevModeFields
.DM_PAPERWIDTH) ==
DevModeFields
.DM_PAPERWIDTH;
745
bool hasHeight = (devModeFields &
DevModeFields
.DM_PAPERLENGTH) ==
DevModeFields
.DM_PAPERLENGTH;
974
private static void SetPageResolution(InternalPrintTicket ticket,
DevModeFields
devModeFields, short devModeXResolution, short devModeYResolution)
984
if ((devModeFields &
DevModeFields
.DM_YRESOLUTION) != 0 && devModeYResolution > 0)
991
private static void SetPrintQuality(DevMode devMode, PageQualitativeResolution qualitativeResolution, int dpiX, int dpiY,
DevModeFields
supportedFields)
996
if (IsSet(
DevModeFields
.DM_PRINTQUALITY, supportedFields))
1001
if (IsSet(
DevModeFields
.DM_YRESOLUTION, supportedFields))
1018
if (IsSet(
DevModeFields
.DM_PRINTQUALITY, supportedFields))
1022
if (IsSet(
DevModeFields
.DM_YRESOLUTION, supportedFields))
1176
private static bool IsSet(
DevModeFields
mask,
DevModeFields
fields)