OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "printing/print_settings_initializer_gtk.h" | 5 #include "printing/print_settings_initializer_gtk.h" |
6 | 6 |
7 #include <gtk/gtk.h> | 7 #include <gtk/gtk.h> |
8 #include <gtk/gtkprinter.h> | 8 #include <gtk/gtkunixprint.h> |
9 | 9 |
10 #include "base/string16.h" | 10 #include "base/string16.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "printing/print_settings.h" | 12 #include "printing/print_settings.h" |
13 #include "printing/units.h" | 13 #include "printing/units.h" |
14 | 14 |
15 namespace printing { | 15 namespace printing { |
16 | 16 |
17 // static | 17 // static |
18 void PrintSettingsInitializerGtk::InitPrintSettings( | 18 void PrintSettingsInitializerGtk::InitPrintSettings( |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 GtkPageOrientation orientation = gtk_print_settings_get_orientation(settings); | 75 GtkPageOrientation orientation = gtk_print_settings_get_orientation(settings); |
76 print_settings->SetOrientation(orientation == GTK_PAGE_ORIENTATION_LANDSCAPE); | 76 print_settings->SetOrientation(orientation == GTK_PAGE_ORIENTATION_LANDSCAPE); |
77 } | 77 } |
78 | 78 |
79 const double PrintSettingsInitializerGtk::kTopMarginInInch = 0.25; | 79 const double PrintSettingsInitializerGtk::kTopMarginInInch = 0.25; |
80 const double PrintSettingsInitializerGtk::kBottomMarginInInch = 0.56; | 80 const double PrintSettingsInitializerGtk::kBottomMarginInInch = 0.56; |
81 const double PrintSettingsInitializerGtk::kLeftMarginInInch = 0.25; | 81 const double PrintSettingsInitializerGtk::kLeftMarginInInch = 0.25; |
82 const double PrintSettingsInitializerGtk::kRightMarginInInch = 0.25; | 82 const double PrintSettingsInitializerGtk::kRightMarginInInch = 0.25; |
83 | 83 |
84 } // namespace printing | 84 } // namespace printing |
OLD | NEW |