| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef PRINTING_PRINT_SETTINGS_H_ | 5 #ifndef PRINTING_PRINT_SETTINGS_H_ |
| 6 #define PRINTING_PRINT_SETTINGS_H_ | 6 #define PRINTING_PRINT_SETTINGS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
| (...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 DuplexMode duplex_mode() const { return duplex_mode_; } | 149 DuplexMode duplex_mode() const { return duplex_mode_; } |
| 150 | 150 |
| 151 int desired_dpi() const { return desired_dpi_; } | 151 int desired_dpi() const { return desired_dpi_; } |
| 152 | 152 |
| 153 #if defined(OS_WIN) | 153 #if defined(OS_WIN) |
| 154 void set_print_text_with_gdi(bool use_gdi) { print_text_with_gdi_ = use_gdi; } | 154 void set_print_text_with_gdi(bool use_gdi) { print_text_with_gdi_ = use_gdi; } |
| 155 bool print_text_with_gdi() const { return print_text_with_gdi_; } | 155 bool print_text_with_gdi() const { return print_text_with_gdi_; } |
| 156 | 156 |
| 157 void set_printer_is_xps(bool is_xps) { printer_is_xps_ = is_xps; } | 157 void set_printer_is_xps(bool is_xps) { printer_is_xps_ = is_xps; } |
| 158 bool printer_is_xps() const { return printer_is_xps_; } | 158 bool printer_is_xps() const { return printer_is_xps_; } |
| 159 |
| 160 void set_printer_is_ps2(bool is_ps2) { printer_is_ps2_ = is_ps2; } |
| 161 bool printer_is_ps2() const { return printer_is_ps2_; } |
| 162 |
| 163 void set_printer_is_ps3(bool is_ps3) { printer_is_ps3_ = is_ps3; } |
| 164 bool printer_is_ps3() const { return printer_is_ps3_; } |
| 159 #endif | 165 #endif |
| 160 | 166 |
| 161 // Cookie generator. It is used to initialize PrintedDocument with its | 167 // Cookie generator. It is used to initialize PrintedDocument with its |
| 162 // associated PrintSettings, to be sure that each generated PrintedPage is | 168 // associated PrintSettings, to be sure that each generated PrintedPage is |
| 163 // correctly associated with its corresponding PrintedDocument. | 169 // correctly associated with its corresponding PrintedDocument. |
| 164 static int NewCookie(); | 170 static int NewCookie(); |
| 165 | 171 |
| 166 private: | 172 private: |
| 167 // Multi-page printing. Each PageRange describes a from-to page combination. | 173 // Multi-page printing. Each PageRange describes a from-to page combination. |
| 168 // This permits printing selected pages only. | 174 // This permits printing selected pages only. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 223 | 229 |
| 224 // True if this printer supports AlphaBlend. | 230 // True if this printer supports AlphaBlend. |
| 225 bool supports_alpha_blend_; | 231 bool supports_alpha_blend_; |
| 226 | 232 |
| 227 #if defined(OS_WIN) | 233 #if defined(OS_WIN) |
| 228 // True to print text with GDI. | 234 // True to print text with GDI. |
| 229 bool print_text_with_gdi_; | 235 bool print_text_with_gdi_; |
| 230 | 236 |
| 231 // True if the printer is an XPS printer. | 237 // True if the printer is an XPS printer. |
| 232 bool printer_is_xps_; | 238 bool printer_is_xps_; |
| 239 |
| 240 // True if the printer is an PostScript Level 2 printer. |
| 241 bool printer_is_ps2_; |
| 242 |
| 243 // True if the printer is an PostScript Level 3 printer. |
| 244 bool printer_is_ps3_; |
| 233 #endif | 245 #endif |
| 234 | 246 |
| 235 // If margin type is custom, this is what was requested. | 247 // If margin type is custom, this is what was requested. |
| 236 PageMargins requested_custom_margins_in_points_; | 248 PageMargins requested_custom_margins_in_points_; |
| 237 }; | 249 }; |
| 238 | 250 |
| 239 } // namespace printing | 251 } // namespace printing |
| 240 | 252 |
| 241 #endif // PRINTING_PRINT_SETTINGS_H_ | 253 #endif // PRINTING_PRINT_SETTINGS_H_ |
| OLD | NEW |