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