Lines Matching refs:dev_mode
250 scoped_ptr<DEVMODE, base::FreeDeleter> dev_mode =
252 if (!dev_mode || !AllocateContext(info_2->pPrinterName, dev_mode.get(),
256 if (InitializeSettings(*dev_mode.get(), info_2->pPrinterName, NULL, 0,
319 DEVMODE* dev_mode = scoped_dev_mode.get();
320 dev_mode->dmCopies = std::max(settings_.copies(), 1);
321 if (dev_mode->dmCopies > 1) { // do not change unless multiple copies
322 dev_mode->dmFields |= DM_COPIES;
323 dev_mode->dmCollate = settings_.collate() ? DMCOLLATE_TRUE :
329 dev_mode->dmFields |= DM_DUPLEX;
330 dev_mode->dmDuplex = DMDUP_VERTICAL;
333 dev_mode->dmFields |= DM_DUPLEX;
334 dev_mode->dmDuplex = DMDUP_HORIZONTAL;
337 dev_mode->dmFields |= DM_DUPLEX;
338 dev_mode->dmDuplex = DMDUP_SIMPLEX;
344 dev_mode->dmFields |= DM_ORIENTATION;
345 dev_mode->dmOrientation = settings_.landscape() ? DMORIENT_LANDSCAPE :
355 dev_mode->dmFields |= DM_PAPERSIZE;
356 dev_mode->dmPaperSize = static_cast<short>(id);
358 dev_mode->dmFields |= DM_PAPERWIDTH;
359 dev_mode->dmPaperWidth = width;
360 dev_mode->dmFields |= DM_PAPERLENGTH;
361 dev_mode->dmPaperLength = height;
511 bool PrintingContextWin::InitializeSettings(const DEVMODE& dev_mode,
551 PrintSettingsInitializerWin::InitPrintSettings(context_, dev_mode,
561 scoped_ptr<DEVMODE, base::FreeDeleter> dev_mode =
564 if (!dev_mode || !AllocateContext(device_name, dev_mode.get(), &context_)) {
569 return InitializeSettings(*dev_mode.get(), device_name, NULL, 0, false);
574 const DEVMODE* dev_mode,
576 *context = CreateDC(L"WINSPOOL", device_name.c_str(), NULL, dev_mode);
588 DEVMODE* dev_mode = NULL;
590 dev_mode =
592 DCHECK(dev_mode);
608 if (dev_mode && !device_name.empty()) {
620 success = InitializeSettings(*dev_mode,
632 if (dev_mode) {
677 DEVMODE* dev_mode = NULL;
679 dev_mode =
681 DCHECK(dev_mode);
699 if (dev_mode && !device_name.empty()) {
701 success = InitializeSettings(*dev_mode, device_name, NULL, 0, false);
709 if (dev_mode) {