qpagesize.cpp

Absolute File Name:/home/qt/qt5_coco/qt5/qtbase/src/gui/painting/qpagesize.cpp
Switch to Source codePreprocessed file
LineSourceCount
1-
2-
3-
4-
5-
6-
7-
8enum WindowsDmPaper {-
9 DMPAPER_NONE = 0,-
10 DMPAPER_LETTER = 1,-
11 DMPAPER_LETTERSMALL = 2,-
12 DMPAPER_TABLOID = 3,-
13 DMPAPER_LEDGER = 4,-
14 DMPAPER_LEGAL = 5,-
15 DMPAPER_STATEMENT = 6,-
16 DMPAPER_EXECUTIVE = 7,-
17 DMPAPER_A3 = 8,-
18 DMPAPER_A4 = 9,-
19 DMPAPER_A4SMALL = 10,-
20 DMPAPER_A5 = 11,-
21 DMPAPER_B4 = 12,-
22 DMPAPER_B5 = 13,-
23 DMPAPER_FOLIO = 14,-
24 DMPAPER_QUARTO = 15,-
25 DMPAPER_10X14 = 16,-
26 DMPAPER_11X17 = 17,-
27 DMPAPER_NOTE = 18,-
28 DMPAPER_ENV_9 = 19,-
29 DMPAPER_ENV_10 = 20,-
30 DMPAPER_ENV_11 = 21,-
31 DMPAPER_ENV_12 = 22,-
32 DMPAPER_ENV_14 = 23,-
33 DMPAPER_CSHEET = 24,-
34 DMPAPER_DSHEET = 25,-
35 DMPAPER_ESHEET = 26,-
36 DMPAPER_ENV_DL = 27,-
37 DMPAPER_ENV_C5 = 28,-
38 DMPAPER_ENV_C3 = 29,-
39 DMPAPER_ENV_C4 = 30,-
40 DMPAPER_ENV_C6 = 31,-
41 DMPAPER_ENV_C65 = 32,-
42 DMPAPER_ENV_B4 = 33,-
43 DMPAPER_ENV_B5 = 34,-
44 DMPAPER_ENV_B6 = 35,-
45 DMPAPER_ENV_ITALY = 36,-
46 DMPAPER_ENV_MONARCH = 37,-
47 DMPAPER_ENV_PERSONAL = 38,-
48 DMPAPER_FANFOLD_US = 39,-
49 DMPAPER_FANFOLD_STD_GERMAN = 40,-
50 DMPAPER_FANFOLD_LGL_GERMAN = 41,-
51 DMPAPER_ISO_B4 = 42,-
52 DMPAPER_JAPANESE_POSTCARD = 43,-
53 DMPAPER_9X11 = 44,-
54 DMPAPER_10X11 = 45,-
55 DMPAPER_15X11 = 46,-
56 DMPAPER_ENV_INVITE = 47,-
57 DMPAPER_RESERVED_48 = 48,-
58 DMPAPER_RESERVED_49 = 49,-
59 DMPAPER_LETTER_EXTRA = 50,-
60 DMPAPER_LEGAL_EXTRA = 51,-
61 DMPAPER_TABLOID_EXTRA = 52,-
62 DMPAPER_A4_EXTRA = 53,-
63 DMPAPER_LETTER_TRANSVERSE = 54,-
64 DMPAPER_A4_TRANSVERSE = 55,-
65 DMPAPER_LETTER_EXTRA_TRANSVERSE = 56,-
66 DMPAPER_A_PLUS = 57,-
67 DMPAPER_B_PLUS = 58,-
68 DMPAPER_LETTER_PLUS = 59,-
69 DMPAPER_A4_PLUS = 60,-
70 DMPAPER_A5_TRANSVERSE = 61,-
71 DMPAPER_B5_TRANSVERSE = 62,-
72 DMPAPER_A3_EXTRA = 63,-
73 DMPAPER_A5_EXTRA = 64,-
74 DMPAPER_B5_EXTRA = 65,-
75 DMPAPER_A2 = 66,-
76 DMPAPER_A3_TRANSVERSE = 67,-
77 DMPAPER_A3_EXTRA_TRANSVERSE = 68,-
78 DMPAPER_DBL_JAPANESE_POSTCARD = 69,-
79 DMPAPER_A6 = 70,-
80 DMPAPER_JENV_KAKU2 = 71,-
81 DMPAPER_JENV_KAKU3 = 72,-
82 DMPAPER_JENV_CHOU3 = 73,-
83 DMPAPER_JENV_CHOU4 = 74,-
84 DMPAPER_LETTER_ROTATED = 75,-
85 DMPAPER_A3_ROTATED = 76,-
86 DMPAPER_A4_ROTATED = 77,-
87 DMPAPER_A5_ROTATED = 78,-
88 DMPAPER_B4_JIS_ROTATED = 79,-
89 DMPAPER_B5_JIS_ROTATED = 80,-
90 DMPAPER_JAPANESE_POSTCARD_ROTATED = 81,-
91 DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82,-
92 DMPAPER_A6_ROTATED = 83,-
93 DMPAPER_JENV_KAKU2_ROTATED = 84,-
94 DMPAPER_JENV_KAKU3_ROTATED = 85,-
95 DMPAPER_JENV_CHOU3_ROTATED = 86,-
96 DMPAPER_JENV_CHOU4_ROTATED = 87,-
97 DMPAPER_B6_JIS = 88,-
98 DMPAPER_B6_JIS_ROTATED = 89,-
99 DMPAPER_12X11 = 90,-
100 DMPAPER_JENV_YOU4 = 91,-
101 DMPAPER_JENV_YOU4_ROTATED = 92,-
102 DMPAPER_P16K = 93,-
103 DMPAPER_P32K = 94,-
104 DMPAPER_P32KBIG = 95,-
105 DMPAPER_PENV_1 = 96,-
106 DMPAPER_PENV_2 = 97,-
107 DMPAPER_PENV_3 = 98,-
108 DMPAPER_PENV_4 = 99,-
109 DMPAPER_PENV_5 = 100,-
110 DMPAPER_PENV_6 = 101,-
111 DMPAPER_PENV_7 = 102,-
112 DMPAPER_PENV_8 = 103,-
113 DMPAPER_PENV_9 = 104,-
114 DMPAPER_PENV_10 = 105,-
115 DMPAPER_P16K_ROTATED = 106,-
116 DMPAPER_P32K_ROTATED = 107,-
117 DMPAPER_P32KBIG_ROTATED = 108,-
118 DMPAPER_PENV_1_ROTATED = 109,-
119 DMPAPER_PENV_2_ROTATED = 110,-
120 DMPAPER_PENV_3_ROTATED = 111,-
121 DMPAPER_PENV_4_ROTATED = 112,-
122 DMPAPER_PENV_5_ROTATED = 113,-
123 DMPAPER_PENV_6_ROTATED = 114,-
124 DMPAPER_PENV_7_ROTATED = 115,-
125 DMPAPER_PENV_8_ROTATED = 116,-
126 DMPAPER_PENV_9_ROTATED = 117,-
127 DMPAPER_PENV_10_ROTATED = 118,-
128 DMPAPER_LAST = DMPAPER_PENV_10_ROTATED,-
129 DMPAPER_USER = 256-
130};-
131static const int qt_windowsConversion[][2] = {-
132 {DMPAPER_11X17, DMPAPER_TABLOID},-
133 {DMPAPER_A3_EXTRA_TRANSVERSE, DMPAPER_A3_EXTRA},-
134 {DMPAPER_A3_ROTATED, DMPAPER_A3},-
135 {DMPAPER_A3_TRANSVERSE, DMPAPER_A3},-
136 {DMPAPER_A4_ROTATED, DMPAPER_A4},-
137 {DMPAPER_A4_TRANSVERSE, DMPAPER_A4},-
138 {DMPAPER_A5_ROTATED, DMPAPER_A5},-
139 {DMPAPER_A5_TRANSVERSE, DMPAPER_A5},-
140 {DMPAPER_A6_ROTATED, DMPAPER_A6},-
141 {DMPAPER_B4_JIS_ROTATED, DMPAPER_B4},-
142 {DMPAPER_B5_JIS_ROTATED, DMPAPER_B5},-
143 {DMPAPER_B5_TRANSVERSE, DMPAPER_B5},-
144 {DMPAPER_B6_JIS_ROTATED, DMPAPER_B6_JIS},-
145 {DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED, DMPAPER_DBL_JAPANESE_POSTCARD},-
146 {DMPAPER_JAPANESE_POSTCARD_ROTATED, DMPAPER_JAPANESE_POSTCARD},-
147 {DMPAPER_JENV_CHOU3_ROTATED, DMPAPER_JENV_CHOU3},-
148 {DMPAPER_JENV_CHOU4_ROTATED, DMPAPER_JENV_CHOU4},-
149 {DMPAPER_JENV_KAKU2_ROTATED, DMPAPER_JENV_KAKU2},-
150 {DMPAPER_JENV_KAKU3_ROTATED, DMPAPER_JENV_KAKU3},-
151 {DMPAPER_JENV_YOU4_ROTATED, DMPAPER_JENV_YOU4},-
152 {DMPAPER_LETTER_EXTRA_TRANSVERSE, DMPAPER_LETTER_EXTRA},-
153 {DMPAPER_LETTER_ROTATED, DMPAPER_LETTER},-
154 {DMPAPER_LETTER_TRANSVERSE, DMPAPER_LETTER},-
155 {DMPAPER_P16K_ROTATED, DMPAPER_P16K},-
156 {DMPAPER_P32K_ROTATED, DMPAPER_P32K},-
157 {DMPAPER_P32KBIG_ROTATED, DMPAPER_P32KBIG},-
158 {DMPAPER_PENV_1_ROTATED, DMPAPER_PENV_1},-
159 {DMPAPER_PENV_2_ROTATED, DMPAPER_PENV_2},-
160 {DMPAPER_PENV_3_ROTATED, DMPAPER_PENV_3},-
161 {DMPAPER_PENV_4_ROTATED, DMPAPER_PENV_4},-
162 {DMPAPER_PENV_5_ROTATED, DMPAPER_PENV_5},-
163 {DMPAPER_PENV_6_ROTATED, DMPAPER_PENV_6},-
164 {DMPAPER_PENV_7_ROTATED, DMPAPER_PENV_7},-
165 {DMPAPER_PENV_8_ROTATED, DMPAPER_PENV_8},-
166 {DMPAPER_PENV_9_ROTATED, DMPAPER_PENV_9},-
167 {DMPAPER_PENV_10_ROTATED, DMPAPER_PENV_10}-
168};-
169-
170static const int windowsConversionCount = int(sizeof(qt_windowsConversion) / sizeof(qt_windowsConversion[0]));-
171-
172-
173struct StandardPageSize {-
174 QPageSize::PageSizeId id;-
175 int windowsId;-
176 QPageSize::Unit definitionUnits;-
177 int widthPoints;-
178 int heightPoints;-
179 qreal widthMillimeters;-
180 qreal heightMillimeters;-
181 qreal widthInches;-
182 qreal heightInches;-
183 const char *mediaOption;-
184};-
185-
186-
187-
188-
189-
190static const StandardPageSize qt_pageSizes[] = {-
191-
192-
193 {QPageSize::A4 , DMPAPER_A4 , QPageSize::Millimeter, 595, 842, 210 , 297 , 8.27, 11.69, "A4"},-
194 {QPageSize::B5 , DMPAPER_NONE , QPageSize::Millimeter, 499, 709, 176 , 250 , 6.9 , 9.8 , "ISOB5"},-
195 {QPageSize::Letter , DMPAPER_LETTER , QPageSize::Inch , 612, 792, 215.9, 279.4, 8.5 , 11 , "Letter"},-
196 {QPageSize::Legal , DMPAPER_LEGAL , QPageSize::Inch , 612, 1008, 215.9, 355.6, 8.5 , 14 , "Legal"},-
197 {QPageSize::Executive , DMPAPER_NONE , QPageSize::Inch , 540, 720, 190.5, 254 , 7.5 , 10 , "Executive.7.5x10in"},-
198 {QPageSize::A0 , DMPAPER_NONE , QPageSize::Millimeter, 2384, 3370, 841 , 1189 , 33.11, 46.81, "A0"},-
199 {QPageSize::A1 , DMPAPER_NONE , QPageSize::Millimeter, 1684, 2384, 594 , 841 , 23.39, 33.11, "A1"},-
200 {QPageSize::A2 , DMPAPER_A2 , QPageSize::Millimeter, 1191, 1684, 420 , 594 , 16.54, 23.39, "A2"},-
201 {QPageSize::A3 , DMPAPER_A3 , QPageSize::Millimeter, 842, 1191, 297 , 420 , 11.69, 16.54, "A3"},-
202 {QPageSize::A5 , DMPAPER_A5 , QPageSize::Millimeter, 420, 595, 148 , 210 , 5.83, 8.27, "A5"},-
203 {QPageSize::A6 , DMPAPER_A6 , QPageSize::Millimeter, 297, 420, 105 , 148 , 4.13, 5.83, "A6"},-
204 {QPageSize::A7 , DMPAPER_NONE , QPageSize::Millimeter, 210, 297, 74 , 105 , 2.91, 4.13, "A7"},-
205 {QPageSize::A8 , DMPAPER_NONE , QPageSize::Millimeter, 148, 210, 52 , 74 , 2.05, 2.91, "A8"},-
206 {QPageSize::A9 , DMPAPER_NONE , QPageSize::Millimeter, 105, 148, 37 , 52 , 1.46, 2.05, "A9"},-
207 {QPageSize::B0 , DMPAPER_NONE , QPageSize::Millimeter, 2835, 4008, 1000 , 1414 , 39.37, 55.67, "ISOB0"},-
208 {QPageSize::B1 , DMPAPER_NONE , QPageSize::Millimeter, 2004, 2835, 707 , 1000 , 27.83, 39.37, "ISOB1"},-
209 {QPageSize::B10 , DMPAPER_NONE , QPageSize::Millimeter, 88, 125, 31 , 44 , 1.22, 1.73, "ISOB10"},-
210 {QPageSize::B2 , DMPAPER_NONE , QPageSize::Millimeter, 1417, 2004, 500 , 707 , 19.68, 27.83, "ISOB2"},-
211 {QPageSize::B3 , DMPAPER_NONE , QPageSize::Millimeter, 1001, 1417, 353 , 500 , 13.9 , 19.68, "ISOB3"},-
212 {QPageSize::B4 , DMPAPER_ISO_B4 , QPageSize::Millimeter, 709, 1001, 250 , 353 , 9.84, 13.9 , "ISOB4"},-
213 {QPageSize::B6 , DMPAPER_NONE , QPageSize::Millimeter, 354, 499, 125 , 176 , 4.92, 6.93, "ISOB6"},-
214 {QPageSize::B7 , DMPAPER_NONE , QPageSize::Millimeter, 249, 354, 88 , 125 , 3.46, 4.92, "ISOB7"},-
215 {QPageSize::B8 , DMPAPER_NONE , QPageSize::Millimeter, 176, 249, 62 , 88 , 2.44, 3.46, "ISOB8"},-
216 {QPageSize::B9 , DMPAPER_NONE , QPageSize::Millimeter, 125, 176, 44 , 62 , 1.73, 2.44, "ISOB9"},-
217 {QPageSize::C5E , DMPAPER_ENV_C5 , QPageSize::Millimeter, 459, 649, 162 , 229 , 6.38, 9.02, "EnvC5"},-
218 {QPageSize::Comm10E , DMPAPER_ENV_10 , QPageSize::Inch , 297, 684, 104.8, 241.3, 4.12, 9.5 , "Env10"},-
219 {QPageSize::DLE , DMPAPER_ENV_DL , QPageSize::Millimeter, 312, 624, 110 , 220 , 4.33, 8.66, "EnvDL"},-
220 {QPageSize::Folio , DMPAPER_NONE , QPageSize::Millimeter, 595, 935, 210 , 330 , 8.27, 13 , "Folio"},-
221 {QPageSize::Ledger , DMPAPER_LEDGER , QPageSize::Inch , 1224, 792, 431.8, 279.4, 17 , 11 , "Ledger"},-
222 {QPageSize::Tabloid , DMPAPER_TABLOID , QPageSize::Inch , 792, 1224, 279.4, 431.8, 11 , 17 , "Tabloid"},-
223 {QPageSize::Custom , DMPAPER_USER , QPageSize::Millimeter, -1, -1, -1. , -1 , -1 , -1 , "Custom"},-
224-
225-
226 {QPageSize::A10 , DMPAPER_NONE , QPageSize::Millimeter, 73, 105, 26 , 37 , 1.02, 1.46, "A10"},-
227 {QPageSize::A3Extra , DMPAPER_A3_EXTRA , QPageSize::Millimeter, 913, 1262, 322 , 445 , 12.67, 17.52, "A3Extra"},-
228 {QPageSize::A4Extra , DMPAPER_A4_EXTRA , QPageSize::Millimeter, 667, 914, 235.5, 322.3, 9.27, 12.69, "A4Extra"},-
229 {QPageSize::A4Plus , DMPAPER_A4_PLUS , QPageSize::Millimeter, 595, 936, 210 , 330 , 8.27, 13 , "A4Plus"},-
230 {QPageSize::A4Small , DMPAPER_A4SMALL , QPageSize::Millimeter, 595, 842, 210 , 297 , 8.27, 11.69, "A4Small"},-
231 {QPageSize::A5Extra , DMPAPER_A5_EXTRA , QPageSize::Millimeter, 492, 668, 174 , 235 , 6.85, 9.25, "A5Extra"},-
232 {QPageSize::B5Extra , DMPAPER_B5_EXTRA , QPageSize::Millimeter, 570, 782, 201 , 276 , 7.9 , 10.8 , "ISOB5Extra"},-
233-
234-
235 {QPageSize::JisB0 , DMPAPER_NONE , QPageSize::Millimeter, 2920, 4127, 1030 , 1456 , 40.55, 57.32, "B0"},-
236 {QPageSize::JisB1 , DMPAPER_NONE , QPageSize::Millimeter, 2064, 2920, 728 , 1030 , 28.66, 40.55, "B1"},-
237 {QPageSize::JisB2 , DMPAPER_NONE , QPageSize::Millimeter, 1460, 2064, 515 , 728 , 20.28, 28.66, "B2"},-
238 {QPageSize::JisB3 , DMPAPER_NONE , QPageSize::Millimeter, 1032, 1460, 364 , 515 , 14.33, 20.28, "B3"},-
239 {QPageSize::JisB4 , DMPAPER_B4 , QPageSize::Millimeter, 729, 1032, 257 , 364 , 10.12, 14.33, "B4"},-
240 {QPageSize::JisB5 , DMPAPER_B5 , QPageSize::Millimeter, 516, 729, 182 , 257 , 7.17, 10.12, "B5"},-
241 {QPageSize::JisB6 , DMPAPER_B6_JIS , QPageSize::Millimeter, 363, 516, 128 , 182 , 5.04, 7.17, "B6"},-
242 {QPageSize::JisB7 , DMPAPER_NONE , QPageSize::Millimeter, 258, 363, 91 , 128 , 3.58, 5.04, "B7"},-
243 {QPageSize::JisB8 , DMPAPER_NONE , QPageSize::Millimeter, 181, 258, 64 , 91 , 2.52, 3.58, "B8"},-
244 {QPageSize::JisB9 , DMPAPER_NONE , QPageSize::Millimeter, 127, 181, 45 , 64 , 1.77, 2.52, "B9"},-
245 {QPageSize::JisB10 , DMPAPER_NONE , QPageSize::Millimeter, 91, 127, 32 , 45 , 1.26, 1.77, "B10"},-
246-
247-
248 {QPageSize::AnsiC , DMPAPER_NONE , QPageSize::Inch , 1224, 1584, 431.8, 558.8, 17 , 22 , "AnsiC"},-
249 {QPageSize::AnsiD , DMPAPER_NONE , QPageSize::Inch , 1584, 2448, 558.8, 863.6, 22 , 34 , "AnsiD"},-
250 {QPageSize::AnsiE , DMPAPER_NONE , QPageSize::Inch , 2448, 3168, 863.6, 1118 , 34 , 44 , "AnsiE"},-
251 {QPageSize::LegalExtra , DMPAPER_LEGAL_EXTRA , QPageSize::Inch , 684, 1080, 241.3, 381 , 9.5 , 15 , "LegalExtra"},-
252 {QPageSize::LetterExtra , DMPAPER_LETTER_EXTRA , QPageSize::Inch , 684, 864, 241.3, 304.8, 9.5 , 12 , "LetterExtra"},-
253 {QPageSize::LetterPlus , DMPAPER_LETTER_PLUS , QPageSize::Inch , 612, 914, 215.9, 322.3, 8.5 , 12.69, "LetterPlus"},-
254 {QPageSize::LetterSmall , DMPAPER_LETTERSMALL , QPageSize::Inch , 612, 792, 215.9, 279.4, 8.5 , 11 , "LetterSmall"},-
255 {QPageSize::TabloidExtra , DMPAPER_TABLOID_EXTRA , QPageSize::Inch , 864, 1296, 304.8, 457.2, 12 , 18 , "TabloidExtra"},-
256-
257-
258 {QPageSize::ArchA , DMPAPER_NONE , QPageSize::Inch , 648, 864, 228.6, 304.8, 9 , 12 , "ARCHA"},-
259 {QPageSize::ArchB , DMPAPER_NONE , QPageSize::Inch , 864, 1296, 304.8, 457.2, 12 , 18 , "ARCHB"},-
260 {QPageSize::ArchC , DMPAPER_CSHEET , QPageSize::Inch , 1296, 1728, 457.2, 609.6, 18 , 24 , "ARCHC"},-
261 {QPageSize::ArchD , DMPAPER_DSHEET , QPageSize::Inch , 1728, 2592, 609.6, 914.4, 24 , 36 , "ARCHD"},-
262 {QPageSize::ArchE , DMPAPER_ESHEET , QPageSize::Inch , 2592, 3456, 914.4, 1219 , 36 , 48 , "ARCHE"},-
263-
264-
265 {QPageSize::Imperial7x9 , DMPAPER_NONE , QPageSize::Inch , 504, 648, 177.8, 228.6, 7 , 9 , "7x9"},-
266 {QPageSize::Imperial8x10 , DMPAPER_NONE , QPageSize::Inch , 576, 720, 203.2, 254 , 8 , 10 , "8x10"},-
267 {QPageSize::Imperial9x11 , DMPAPER_9X11 , QPageSize::Inch , 648, 792, 228.6, 279.4, 9 , 11 , "9x11"},-
268 {QPageSize::Imperial9x12 , DMPAPER_NONE , QPageSize::Inch , 648, 864, 228.6, 304.8, 9 , 12 , "9x12"},-
269 {QPageSize::Imperial10x11 , DMPAPER_10X11 , QPageSize::Inch , 720, 792, 254 , 279.4, 10 , 11 , "10x11"},-
270 {QPageSize::Imperial10x13 , DMPAPER_NONE , QPageSize::Inch , 720, 936, 254 , 330.2, 10 , 13 , "10x13"},-
271 {QPageSize::Imperial10x14 , DMPAPER_10X14 , QPageSize::Inch , 720, 1008, 254 , 355.6, 10 , 14 , "10x14"},-
272 {QPageSize::Imperial12x11 , DMPAPER_12X11 , QPageSize::Inch , 864, 792, 304.8, 279.4, 12 , 11 , "12x11"},-
273 {QPageSize::Imperial15x11 , DMPAPER_15X11 , QPageSize::Inch , 1080, 792, 381 , 279.4, 15 , 11 , "15x11"},-
274-
275-
276 {QPageSize::ExecutiveStandard , DMPAPER_EXECUTIVE , QPageSize::Inch , 522, 756, 184.2, 266.7, 7.25, 10.5 , "Executive"},-
277 {QPageSize::Note , DMPAPER_NOTE , QPageSize::Inch , 612, 792, 215.9, 279.4, 8.5 , 11 , "Note"},-
278 {QPageSize::Quarto , DMPAPER_QUARTO , QPageSize::Inch , 610, 780, 215.9, 275.1, 8.5 , 10.83, "Quarto"},-
279 {QPageSize::Statement , DMPAPER_STATEMENT , QPageSize::Inch , 396, 612, 139.7, 215.9, 5.5 , 8.5 , "Statement"},-
280 {QPageSize::SuperA , DMPAPER_A_PLUS , QPageSize::Millimeter, 643, 1009, 227 , 356 , 8.94, 14 , "SuperA"},-
281 {QPageSize::SuperB , DMPAPER_B_PLUS , QPageSize::Millimeter, 864, 1380, 305 , 487 , 12 , 19.17, "SuperB"},-
282 {QPageSize::Postcard , DMPAPER_JAPANESE_POSTCARD , QPageSize::Millimeter, 284, 419, 100 , 148 , 3.94, 5.83, "Postcard"},-
283 {QPageSize::DoublePostcard , DMPAPER_DBL_JAPANESE_POSTCARD, QPageSize::Millimeter, 567, 419, 200 , 148 , 7.87, 5.83, "DoublePostcard"},-
284 {QPageSize::Prc16K , DMPAPER_P16K , QPageSize::Millimeter, 414, 610, 146 , 215 , 5.75, 8.5 , "PRC16K"},-
285 {QPageSize::Prc32K , DMPAPER_P32K , QPageSize::Millimeter, 275, 428, 97 , 151 , 3.82, 5.95, "PRC32K"},-
286 {QPageSize::Prc32KBig , DMPAPER_P32KBIG , QPageSize::Millimeter, 275, 428, 97 , 151 , 3.82, 5.95, "PRC32KBig"},-
287-
288-
289 {QPageSize::FanFoldUS , DMPAPER_FANFOLD_US , QPageSize::Inch , 1071, 792, 377.8, 279.4, 14.875, 11 , "FanFoldUS"},-
290 {QPageSize::FanFoldGerman , DMPAPER_FANFOLD_STD_GERMAN , QPageSize::Inch , 612, 864, 215.9, 304.8, 8.5 , 12 , "FanFoldGerman"},-
291 {QPageSize::FanFoldGermanLegal, DMPAPER_FANFOLD_LGL_GERMAN , QPageSize::Inch , 612, 936, 215.9, 330 , 8.5 , 13 , "FanFoldGermanLegal"},-
292-
293-
294 {QPageSize::EnvelopeB4 , DMPAPER_ENV_B4 , QPageSize::Millimeter, 708, 1001, 250 , 353 , 9.84, 13.9 , "EnvISOB4"},-
295 {QPageSize::EnvelopeB5 , DMPAPER_ENV_B5 , QPageSize::Millimeter, 499, 709, 176 , 250 , 6.9 , 9.8 , "EnvISOB5"},-
296 {QPageSize::EnvelopeB6 , DMPAPER_ENV_B6 , QPageSize::Millimeter, 499, 354, 176 , 125 , 6.9 , 4.9 , "EnvISOB6"},-
297 {QPageSize::EnvelopeC0 , DMPAPER_NONE , QPageSize::Millimeter, 2599, 3676, 917 , 1297 , 36.1 , 51.06, "EnvC0"},-
298 {QPageSize::EnvelopeC1 , DMPAPER_NONE , QPageSize::Millimeter, 1837, 2599, 648 , 917 , 25.51, 36.1 , "EnvC1"},-
299 {QPageSize::EnvelopeC2 , DMPAPER_NONE , QPageSize::Millimeter, 1298, 1837, 458 , 648 , 18.03, 25.51, "EnvC2"},-
300 {QPageSize::EnvelopeC3 , DMPAPER_ENV_C3 , QPageSize::Millimeter, 918, 1296, 324 , 458 , 12.75, 18.03, "EnvC3"},-
301 {QPageSize::EnvelopeC4 , DMPAPER_ENV_C4 , QPageSize::Millimeter, 649, 918, 229 , 324 , 9.02, 12.75, "EnvC4"},-
302 {QPageSize::EnvelopeC6 , DMPAPER_ENV_C6 , QPageSize::Millimeter, 323, 459, 114 , 162 , 4.49, 6.38, "EnvC6"},-
303 {QPageSize::EnvelopeC65 , DMPAPER_ENV_C65 , QPageSize::Millimeter, 324, 648, 114 , 229 , 4.5 , 9 , "EnvC65"},-
304 {QPageSize::EnvelopeC7 , DMPAPER_NONE , QPageSize::Millimeter, 230, 323, 81 , 114 , 3.19, 4.49, "EnvC7"},-
305-
306-
307 {QPageSize::Envelope9 , DMPAPER_ENV_9 , QPageSize::Inch , 279, 639, 98.4, 225.4, 3.875, 8.875, "Env9"},-
308 {QPageSize::Envelope11 , DMPAPER_ENV_11 , QPageSize::Inch , 324, 747, 114.3, 263.5, 4.5 , 10.375, "Env11"},-
309 {QPageSize::Envelope12 , DMPAPER_ENV_12 , QPageSize::Inch , 342, 792, 120.7, 279.4, 4.75, 11 , "Env12"},-
310 {QPageSize::Envelope14 , DMPAPER_ENV_14 , QPageSize::Inch , 360, 828, 127 , 292.1, 5 , 11.5 , "Env14"},-
311 {QPageSize::EnvelopeMonarch , DMPAPER_ENV_MONARCH , QPageSize::Inch , 279, 540, 98.43, 190.5, 3.875, 7.5 , "EnvMonarch"},-
312 {QPageSize::EnvelopePersonal , DMPAPER_ENV_PERSONAL , QPageSize::Inch , 261, 468, 92.08, 165.1, 3.625, 6.5 , "EnvPersonal"},-
313-
314-
315 {QPageSize::EnvelopeChou3 , DMPAPER_JENV_CHOU3 , QPageSize::Millimeter, 340, 666, 120 , 235 , 4.72, 9.25, "EnvChou3"},-
316 {QPageSize::EnvelopeChou4 , DMPAPER_JENV_CHOU4 , QPageSize::Millimeter, 255, 581, 90 , 205 , 3.54, 8 , "EnvChou4"},-
317 {QPageSize::EnvelopeInvite , DMPAPER_ENV_INVITE , QPageSize::Millimeter, 624, 624, 220 , 220 , 8.66, 8.66, "EnvInvite"},-
318 {QPageSize::EnvelopeItalian , DMPAPER_ENV_ITALY , QPageSize::Millimeter, 312, 652, 110 , 230 , 4.33, 9 , "EnvItalian"},-
319 {QPageSize::EnvelopeKaku2 , DMPAPER_JENV_KAKU2 , QPageSize::Millimeter, 680, 941, 240 , 332 , 9.45, 13 , "EnvKaku2"},-
320 {QPageSize::EnvelopeKaku3 , DMPAPER_JENV_KAKU3 , QPageSize::Millimeter, 612, 785, 216 , 277 , 8.5 , 10.9 , "EnvKaku3"},-
321 {QPageSize::EnvelopePrc1 , DMPAPER_PENV_1 , QPageSize::Millimeter, 289, 468, 102 , 165 , 4 , 6.5 , "EnvPRC1"},-
322 {QPageSize::EnvelopePrc2 , DMPAPER_PENV_2 , QPageSize::Millimeter, 289, 499, 102 , 176 , 4 , 6.9 , "EnvPRC2"},-
323 {QPageSize::EnvelopePrc3 , DMPAPER_PENV_3 , QPageSize::Millimeter, 354, 499, 125 , 176 , 4.9 , 6.9 , "EnvPRC3"},-
324 {QPageSize::EnvelopePrc4 , DMPAPER_PENV_4 , QPageSize::Millimeter, 312, 590, 110 , 208 , 4.33, 8.2 , "EnvPRC4"},-
325 {QPageSize::EnvelopePrc5 , DMPAPER_PENV_5 , QPageSize::Millimeter, 312, 624, 110 , 220 , 4.33, 8.66, "EnvPRC5"},-
326 {QPageSize::EnvelopePrc6 , DMPAPER_PENV_6 , QPageSize::Millimeter, 340, 652, 120 , 230 , 4.7 , 9 , "EnvPRC6"},-
327 {QPageSize::EnvelopePrc7 , DMPAPER_PENV_7 , QPageSize::Millimeter, 454, 652, 160 , 230 , 6.3 , 9 , "EnvPRC7"},-
328 {QPageSize::EnvelopePrc8 , DMPAPER_PENV_8 , QPageSize::Millimeter, 340, 876, 120 , 309 , 4.7 , 12.2 , "EnvPRC8"},-
329 {QPageSize::EnvelopePrc9 , DMPAPER_PENV_9 , QPageSize::Millimeter, 649, 918, 229 , 324 , 9 , 12.75, "EnvPRC9"},-
330 {QPageSize::EnvelopePrc10 , DMPAPER_PENV_10 , QPageSize::Millimeter, 918, 1298, 324 , 458 , 12.75, 18 , "EnvPRC10"},-
331 {QPageSize::EnvelopeYou4 , DMPAPER_JENV_YOU4 , QPageSize::Millimeter, 298, 666, 105 , 235 , 4.13, 9.25, "EnvYou4"}-
332};-
333-
334static const int pageSizesCount = int(sizeof(qt_pageSizes) / sizeof(qt_pageSizes[0]));-
335static_assert(bool(pageSizesCount == QPageSize::LastPageSize + 1), "pageSizesCount == QPageSize::LastPageSize + 1");-
336-
337-
338static QString qt_keyForPageSizeId(QPageSize::PageSizeId id)-
339{-
340 return
never executed: return QString::fromLatin1(qt_pageSizes[id].mediaOption);
QString::fromLatin1(qt_pageSizes[id].mediaOption);
never executed: return QString::fromLatin1(qt_pageSizes[id].mediaOption);
0
341}-
342-
343-
344static QPageSize::PageSizeId qt_idForPpdKey(const QString &ppdKey, QSize *match = 0)-
345{-
346 if (ppdKey.isEmpty()
ppdKey.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
347 return
never executed: return QPageSize::Custom;
QPageSize::Custom;
never executed: return QPageSize::Custom;
0
348 QString key = ppdKey;-
349-
350 if (key.endsWith(QLatin1String("Rotated"))
key.endsWith(Q...ng("Rotated"))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
351 key.chop(7);
never executed: key.chop(7);
0
352 else if (key.endsWith(QLatin1String(".Transverse"))
key.endsWith(Q....Transverse"))Description
TRUEnever evaluated
FALSEnever evaluated
)
0
353 key.chop(11);
never executed: key.chop(11);
0
354 for (int i = 0; i <= int(QPageSize::LastPageSize)
i <= int(QPage...:LastPageSize)Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
355 if (QLatin1String(qt_pageSizes[i].mediaOption) == key
QLatin1String(...Option) == keyDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
356 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
357 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
358 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
359 }-
360 }
never executed: end of block
0
361 return
never executed: return QPageSize::Custom;
QPageSize::Custom;
never executed: return QPageSize::Custom;
0
362}-
363-
364-
365static QPageSize::PageSizeId qt_idForWindowsID(int windowsId, QSize *match = 0)-
366{-
367-
368 if (windowsId <= DMPAPER_NONE
windowsId <= DMPAPER_NONEDescription
TRUEnever evaluated
FALSEnever evaluated
|| windowsId > DMPAPER_LAST
windowsId > DMPAPER_LASTDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
369 return
never executed: return QPageSize::Custom;
QPageSize::Custom;
never executed: return QPageSize::Custom;
0
370-
371 for (int i = 0; i < windowsConversionCount
i < windowsConversionCountDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
372 if (qt_windowsConversion[i][0] == windowsId
qt_windowsConv...] == windowsIdDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
373 windowsId = qt_windowsConversion[i][1];-
374 break;
never executed: break;
0
375 }-
376 }
never executed: end of block
0
377-
378 for (int i = 0; i <= int(QPageSize::LastPageSize)
i <= int(QPage...:LastPageSize)Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
379 if (qt_pageSizes[i].windowsId == windowsId
qt_pageSizes[i...d == windowsIdDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
380 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
381 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
382 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
383 }-
384 }
never executed: end of block
0
385-
386 return
never executed: return QPageSize::Custom;
QPageSize::Custom;
never executed: return QPageSize::Custom;
0
387}-
388-
389-
390static QString qt_keyForCustomSize(const QSizeF &size, QPageSize::Unit units)-
391{-
392-
393 QString key = ([]() -> QString { enum { Size = sizeof(u"" "Custom.%1x%2%3")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "Custom.%1x%2%3" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
0
394 QString abbrev;-
395 switch (units) {-
396 case
never executed: case QPageSize::Millimeter:
QPageSize::Millimeter:
never executed: case QPageSize::Millimeter:
0
397 abbrev = ([]() -> QString { enum { Size = sizeof(u"" "mm")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "mm" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
0
398 break;
never executed: break;
0
399 case
never executed: case QPageSize::Point:
QPageSize::Point:
never executed: case QPageSize::Point:
0
400 break;
never executed: break;
0
401 case
never executed: case QPageSize::Inch:
QPageSize::Inch:
never executed: case QPageSize::Inch:
0
402 abbrev = ([]() -> QString { enum { Size = sizeof(u"" "in")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "in" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
0
403 break;
never executed: break;
0
404 case
never executed: case QPageSize::Pica:
QPageSize::Pica:
never executed: case QPageSize::Pica:
0
405 abbrev = ([]() -> QString { enum { Size = sizeof(u"" "pc")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "pc" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
0
406 break;
never executed: break;
0
407 case
never executed: case QPageSize::Didot:
QPageSize::Didot:
never executed: case QPageSize::Didot:
0
408 abbrev = ([]() -> QString { enum { Size = sizeof(u"" "DD")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "DD" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
0
409 break;
never executed: break;
0
410 case
never executed: case QPageSize::Cicero:
QPageSize::Cicero:
never executed: case QPageSize::Cicero:
0
411 abbrev = ([]() -> QString { enum { Size = sizeof(u"" "CC")/2 - 1 }; static const QStaticStringData<Size> qstring_literal = { { { { -1 } }, Size, 0, 0, sizeof(QStringData) }, u"" "CC" }; QStringDataPtr holder = { qstring_literal.data_ptr() }; const QString qstring_literal_temp(holder); return
never executed: return qstring_literal_temp;
qstring_literal_temp;
never executed: return qstring_literal_temp;
}());
0
412 break;
never executed: break;
0
413 }-
414-
415 return
never executed: return key.arg(size.width()).arg(size.height()).arg(abbrev);
key.arg(size.width()).arg(size.height()).arg(abbrev);
never executed: return key.arg(size.width()).arg(size.height()).arg(abbrev);
0
416}-
417-
418-
419static QString qt_nameForCustomSize(const QSizeF &size, QPageSize::Unit units)-
420{-
421 QString name;-
422 switch (units) {-
423 case
never executed: case QPageSize::Millimeter:
QPageSize::Millimeter:
never executed: case QPageSize::Millimeter:
0
424-
425 name = QCoreApplication::translate("QPageSize", "Custom (%1mm x %2mm)");-
426 break;
never executed: break;
0
427 case
never executed: case QPageSize::Point:
QPageSize::Point:
never executed: case QPageSize::Point:
0
428-
429 name = QCoreApplication::translate("QPageSize", "Custom (%1pt x %2pt)");-
430 break;
never executed: break;
0
431 case
never executed: case QPageSize::Inch:
QPageSize::Inch:
never executed: case QPageSize::Inch:
0
432-
433 name = QCoreApplication::translate("QPageSize", "Custom (%1in x %2in)");-
434 break;
never executed: break;
0
435 case
never executed: case QPageSize::Pica:
QPageSize::Pica:
never executed: case QPageSize::Pica:
0
436-
437 name = QCoreApplication::translate("QPageSize", "Custom (%1pc x %2pc)");-
438 break;
never executed: break;
0
439 case
never executed: case QPageSize::Didot:
QPageSize::Didot:
never executed: case QPageSize::Didot:
0
440-
441 name = QCoreApplication::translate("QPageSize", "Custom (%1DD x %2DD)");-
442 break;
never executed: break;
0
443 case
never executed: case QPageSize::Cicero:
QPageSize::Cicero:
never executed: case QPageSize::Cicero:
0
444-
445 name = QCoreApplication::translate("QPageSize", "Custom (%1CC x %2CC)");-
446 break;
never executed: break;
0
447 }-
448-
449 return
never executed: return name.arg(size.width()).arg(size.height());
name.arg(size.width()).arg(size.height());
never executed: return name.arg(size.width()).arg(size.height());
0
450}-
451-
452-
453static qreal qt_pointMultiplier(QPageSize::Unit unit)-
454{-
455 switch (unit) {-
456 case
never executed: case QPageSize::Millimeter:
QPageSize::Millimeter:
never executed: case QPageSize::Millimeter:
0
457 return
never executed: return 2.83464566929;
2.83464566929;
never executed: return 2.83464566929;
0
458 case
never executed: case QPageSize::Point:
QPageSize::Point:
never executed: case QPageSize::Point:
0
459 return
never executed: return 1.0;
1.0;
never executed: return 1.0;
0
460 case
never executed: case QPageSize::Inch:
QPageSize::Inch:
never executed: case QPageSize::Inch:
0
461 return
never executed: return 72.0;
72.0;
never executed: return 72.0;
0
462 case
never executed: case QPageSize::Pica:
QPageSize::Pica:
never executed: case QPageSize::Pica:
0
463 return
never executed: return 12;
12;
never executed: return 12;
0
464 case
never executed: case QPageSize::Didot:
QPageSize::Didot:
never executed: case QPageSize::Didot:
0
465 return
never executed: return 1.065826771;
1.065826771;
never executed: return 1.065826771;
0
466 case
never executed: case QPageSize::Cicero:
QPageSize::Cicero:
never executed: case QPageSize::Cicero:
0
467 return
never executed: return 12.789921252;
12.789921252;
never executed: return 12.789921252;
0
468 }-
469 return
never executed: return 1.0;
1.0;
never executed: return 1.0;
0
470}-
471-
472-
473__attribute__((visibility("default"))) qreal qt_pixelMultiplier(int resolution)-
474{-
475 return
never executed: return resolution <= 0 ? 1.0 : 72.0 / resolution;
resolution <= 0 ? 1.0 : 72.0 / resolution;
never executed: return resolution <= 0 ? 1.0 : 72.0 / resolution;
0
476}-
477-
478static QSizeF qt_definitionSize(QPageSize::PageSizeId pageSizeId)-
479{-
480 QPageSize::Unit units = qt_pageSizes[pageSizeId].definitionUnits;-
481 if (units == QPageSize::Millimeter
units == QPageSize::MillimeterDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
482 return
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthMillimeters, qt_pageSizes[pageSizeId].heightMillimeters);
QSizeF(qt_pageSizes[pageSizeId].widthMillimeters, qt_pageSizes[pageSizeId].heightMillimeters);
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthMillimeters, qt_pageSizes[pageSizeId].heightMillimeters);
0
483 ((!(units == QPageSize::Inch)) ? qt_assert("units == QPageSize::Inch",__FILE__,538) : qt_noop());-
484 return
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthInches, qt_pageSizes[pageSizeId].heightInches);
QSizeF(qt_pageSizes[pageSizeId].widthInches, qt_pageSizes[pageSizeId].heightInches);
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthInches, qt_pageSizes[pageSizeId].heightInches);
0
485}-
486-
487static QSizeF qt_convertUnits(const QSizeF &size, QPageSize::Unit fromUnits, QPageSize::Unit toUnits)-
488{-
489 if (!size.isValid()
!size.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
490 return
never executed: return QSizeF();
QSizeF();
never executed: return QSizeF();
0
491-
492-
493 if (fromUnits == toUnits
fromUnits == toUnitsDescription
TRUEnever evaluated
FALSEnever evaluated
|| (qFuzzyIsNull(size.width())
qFuzzyIsNull(size.width())Description
TRUEnever evaluated
FALSEnever evaluated
&& qFuzzyIsNull(size.height())
qFuzzyIsNull(size.height())Description
TRUEnever evaluated
FALSEnever evaluated
))
0
494 return
never executed: return size;
size;
never executed: return size;
0
495-
496 QSizeF newSize = size;-
497-
498 if (fromUnits != QPageSize::Point
fromUnits != QPageSize::PointDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
499 const qreal multiplier = qt_pointMultiplier(fromUnits);-
500 newSize = newSize * multiplier;-
501 }
never executed: end of block
0
502-
503 const qreal multiplier = qt_pointMultiplier(toUnits);-
504-
505 const int width = qRound(newSize.width() * 100 / multiplier);-
506 const int height = qRound(newSize.height() * 100 / multiplier);-
507 return
never executed: return QSizeF(width / 100.0, height / 100.0);
QSizeF(width / 100.0, height / 100.0);
never executed: return QSizeF(width / 100.0, height / 100.0);
0
508}-
509-
510static QSize qt_convertUnitsToPoints(const QSizeF &size, QPageSize::Unit units)-
511{-
512 if (!size.isValid()
!size.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
513 return
never executed: return QSize();
QSize();
never executed: return QSize();
0
514 return
never executed: return QSizeF(size * qt_pointMultiplier(units)).toSize();
QSizeF(size * qt_pointMultiplier(units)).toSize();
never executed: return QSizeF(size * qt_pointMultiplier(units)).toSize();
0
515}-
516-
517static QSize qt_convertPointsToPixels(const QSize &size, int resolution)-
518{-
519 if (!size.isValid()
!size.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
|| resolution <= 0
resolution <= 0Description
TRUEnever evaluated
FALSEnever evaluated
)
0
520 return
never executed: return QSize();
QSize();
never executed: return QSize();
0
521 const qreal multiplier = qt_pixelMultiplier(resolution);-
522 return
never executed: return QSize(qRound(size.width() / multiplier), qRound(size.height() / multiplier));
QSize(qRound(size.width() / multiplier), qRound(size.height() / multiplier));
never executed: return QSize(qRound(size.width() / multiplier), qRound(size.height() / multiplier));
0
523}-
524-
525static QSizeF qt_convertPointsToUnits(const QSize &size, QPageSize::Unit units)-
526{-
527 if (!size.isValid()
!size.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
528 return
never executed: return QSizeF();
QSizeF();
never executed: return QSizeF();
0
529 const qreal multiplier = qt_pointMultiplier(units);-
530-
531 const int width = qRound(size.width() * 100 / multiplier);-
532 const int height = qRound(size.height() * 100 / multiplier);-
533 return
never executed: return QSizeF(width / 100.0, height / 100.0);
QSizeF(width / 100.0, height / 100.0);
never executed: return QSizeF(width / 100.0, height / 100.0);
0
534}-
535-
536static QSizeF qt_unitSize(QPageSize::PageSizeId pageSizeId, QPageSize::Unit units)-
537{-
538 switch (units) {-
539 case
never executed: case QPageSize::Millimeter:
QPageSize::Millimeter:
never executed: case QPageSize::Millimeter:
0
540 return
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthMillimeters, qt_pageSizes[pageSizeId].heightMillimeters);
QSizeF(qt_pageSizes[pageSizeId].widthMillimeters, qt_pageSizes[pageSizeId].heightMillimeters);
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthMillimeters, qt_pageSizes[pageSizeId].heightMillimeters);
0
541 case
never executed: case QPageSize::Point:
QPageSize::Point:
never executed: case QPageSize::Point:
0
542 return
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints);
QSizeF(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints);
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints);
0
543 case
never executed: case QPageSize::Inch:
QPageSize::Inch:
never executed: case QPageSize::Inch:
0
544 return
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthInches, qt_pageSizes[pageSizeId].heightInches);
QSizeF(qt_pageSizes[pageSizeId].widthInches, qt_pageSizes[pageSizeId].heightInches);
never executed: return QSizeF(qt_pageSizes[pageSizeId].widthInches, qt_pageSizes[pageSizeId].heightInches);
0
545 case
never executed: case QPageSize::Pica:
QPageSize::Pica:
never executed: case QPageSize::Pica:
0
546 case
never executed: case QPageSize::Didot:
QPageSize::Didot:
never executed: case QPageSize::Didot:
0
547 case
never executed: case QPageSize::Cicero:
QPageSize::Cicero:
never executed: case QPageSize::Cicero:
0
548 return
never executed: return qt_convertPointsToUnits(QSize(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints), units);
qt_convertPointsToUnits(QSize(qt_pageSizes[pageSizeId].widthPoints,
never executed: return qt_convertPointsToUnits(QSize(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints), units);
0
549 qt_pageSizes[pageSizeId].heightPoints), units);
never executed: return qt_convertPointsToUnits(QSize(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints), units);
0
550 }-
551 return
never executed: return QSizeF();
QSizeF();
never executed: return QSizeF();
0
552}-
553-
554-
555static QPageSize::PageSizeId qt_idForPointSize(const QSize &size, QPageSize::SizeMatchPolicy matchPolicy, QSize *match)-
556{-
557 if (!size.isValid()
!size.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
558 return
never executed: return QPageSize::Custom;
QPageSize::Custom;
never executed: return QPageSize::Custom;
0
559-
560-
561 for (int i = 0; i <= int(QPageSize::LastPageSize)
i <= int(QPage...:LastPageSize)Description
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
562 if (size.width() == qt_pageSizes[i].widthPoints
size.width() =...i].widthPointsDescription
TRUEnever evaluated
FALSEnever evaluated
&& size.height() == qt_pageSizes[i].heightPoints
size.height() ...].heightPointsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
563 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
564 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
565 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
566 }-
567 }
never executed: end of block
0
568-
569-
570 if (matchPolicy != QPageSize::ExactMatch
matchPolicy !=...ze::ExactMatchDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
571-
572-
573 const int tolerance = 3;-
574 const int minWidth = size.width() - tolerance;-
575 const int maxWidth = size.width() + tolerance;-
576 const int minHeight = size.height() - tolerance;-
577 const int maxHeight = size.height() + tolerance;-
578-
579-
580 for (int i = 0; i <= QPageSize::LastPageSize
i <= QPageSize::LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
581 const int width = qt_pageSizes[i].widthPoints;-
582 const int height = qt_pageSizes[i].heightPoints;-
583 if (width >= minWidth
width >= minWidthDescription
TRUEnever evaluated
FALSEnever evaluated
&& width <= maxWidth
width <= maxWidthDescription
TRUEnever evaluated
FALSEnever evaluated
&& height >= minHeight
height >= minHeightDescription
TRUEnever evaluated
FALSEnever evaluated
&& height <= maxHeight
height <= maxHeightDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
584 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
585 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
586 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
587 }-
588 }
never executed: end of block
0
589-
590-
591 if (matchPolicy == QPageSize::FuzzyOrientationMatch
matchPolicy ==...ientationMatchDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
592-
593 for (int i = 0; i <= QPageSize::LastPageSize
i <= QPageSize::LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
594 if (size.width() == qt_pageSizes[i].heightPoints
size.width() =...].heightPointsDescription
TRUEnever evaluated
FALSEnever evaluated
&& size.height() == qt_pageSizes[i].widthPoints
size.height() ...i].widthPointsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
595 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
596 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
597 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
598 }-
599 }
never executed: end of block
0
600-
601-
602 for (int i = 0; i <= QPageSize::LastPageSize
i <= QPageSize::LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
603 const int width = qt_pageSizes[i].heightPoints;-
604 const int height = qt_pageSizes[i].widthPoints;-
605 if (width >= minWidth
width >= minWidthDescription
TRUEnever evaluated
FALSEnever evaluated
&& width <= maxWidth
width <= maxWidthDescription
TRUEnever evaluated
FALSEnever evaluated
&& height >= minHeight
height >= minHeightDescription
TRUEnever evaluated
FALSEnever evaluated
&& height <= maxHeight
height <= maxHeightDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
606 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
607 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
608 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
609 }-
610 }
never executed: end of block
0
611 }
never executed: end of block
0
612 }
never executed: end of block
0
613-
614 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
615 *
never executed: *match = size;
match = size;
never executed: *match = size;
0
616-
617 return
never executed: return QPageSize::Custom;
QPageSize::Custom;
never executed: return QPageSize::Custom;
0
618}-
619-
620-
621static QPageSize::PageSizeId qt_idForSize(const QSizeF &size, QPageSize::Unit units,-
622 QPageSize::SizeMatchPolicy matchPolicy, QSize *match)-
623{-
624 if (!size.isValid()
!size.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
625 return
never executed: return QPageSize::Custom;
QPageSize::Custom;
never executed: return QPageSize::Custom;
0
626-
627-
628 if (units == QPageSize::Millimeter
units == QPageSize::MillimeterDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
629 for (int i = 0; i <= QPageSize::LastPageSize
i <= QPageSize::LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
630 if (size.width() == qt_pageSizes[i].widthMillimeters
size.width() =...dthMillimetersDescription
TRUEnever evaluated
FALSEnever evaluated
&& size.height() == qt_pageSizes[i].heightMillimeters
size.height() ...ghtMillimetersDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
631 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
632 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
633 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
634 }-
635 }
never executed: end of block
0
636 }
never executed: end of block
else if (units == QPageSize::Inch
units == QPageSize::InchDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
637 for (int i = 0; i <= QPageSize::LastPageSize
i <= QPageSize::LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
638 if (size.width() == qt_pageSizes[i].widthInches
size.width() =...i].widthInchesDescription
TRUEnever evaluated
FALSEnever evaluated
&& size.height() == qt_pageSizes[i].heightInches
size.height() ...].heightInchesDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
639 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
640 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
641 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
642 }-
643 }
never executed: end of block
0
644 }
never executed: end of block
else if (units == QPageSize::Point
units == QPageSize::PointDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
645 for (int i = 0; i <= QPageSize::LastPageSize
i <= QPageSize::LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
; ++i) {
0
646 if (size.width() == qt_pageSizes[i].widthPoints
size.width() =...i].widthPointsDescription
TRUEnever evaluated
FALSEnever evaluated
&& size.height() == qt_pageSizes[i].heightPoints
size.height() ...].heightPointsDescription
TRUEnever evaluated
FALSEnever evaluated
) {
0
647 if (match
matchDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
648 *
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
never executed: *match = QSize(qt_pageSizes[i].widthPoints, qt_pageSizes[i].heightPoints);
0
649 return
never executed: return qt_pageSizes[i].id;
qt_pageSizes[i].id;
never executed: return qt_pageSizes[i].id;
0
650 }-
651 }
never executed: end of block
0
652 }
never executed: end of block
0
653-
654-
655 QSize points = qt_convertUnitsToPoints(size, units);-
656 return
never executed: return qt_idForPointSize(points, matchPolicy, match);
qt_idForPointSize(points, matchPolicy, match);
never executed: return qt_idForPointSize(points, matchPolicy, match);
0
657}-
658-
659class QPageSizePrivate : public QSharedData-
660{-
661public:-
662 QPageSizePrivate();-
663 explicit QPageSizePrivate(QPageSize::PageSizeId pageSizeId);-
664 QPageSizePrivate(const QSize &pointSize,-
665 const QString &name,-
666 QPageSize::SizeMatchPolicy matchPolicy);-
667 QPageSizePrivate(const QSizeF &size, QPageSize::Unit units,-
668 const QString &name,-
669 QPageSize::SizeMatchPolicy matchPolicy);-
670 QPageSizePrivate(const QString &key, const QSize &size, const QString &name);-
671 QPageSizePrivate(int windowsId, const QSize &pointSize, const QString &name);-
672 ~QPageSizePrivate();-
673-
674 bool operator==(const QPageSizePrivate &other) const;-
675 bool isEquivalentTo(const QPageSizePrivate &other) const;-
676-
677 bool isValid() const;-
678-
679 QSizeF size(QPageSize::Unit units) const;-
680 QSize sizePixels(int resolution) const;-
681-
682private:-
683 friend class QPageSize;-
684-
685 void init(QPageSize::PageSizeId id, const QString &name);-
686 void init(const QSize &size, const QString &name);-
687 void init(const QSizeF &size, QPageSize::Unit units, const QString &name);-
688-
689 QString m_key;-
690 QPageSize::PageSizeId m_id;-
691 QSize m_pointSize;-
692 QString m_name;-
693 int m_windowsId;-
694 QSizeF m_size;-
695 QPageSize::Unit m_units;-
696};-
697-
698QPageSizePrivate::QPageSizePrivate()-
699 : m_id(QPageSize::Custom),-
700 m_windowsId(0),-
701 m_units(QPageSize::Point)-
702{-
703}
never executed: end of block
0
704-
705QPageSizePrivate::QPageSizePrivate(QPageSize::PageSizeId pageSizeId)-
706 : m_id(QPageSize::Custom),-
707 m_windowsId(0),-
708 m_units(QPageSize::Point)-
709{-
710 if (pageSizeId >= QPageSize::PageSizeId(0)
pageSizeId >= ...:PageSizeId(0)Description
TRUEnever evaluated
FALSEnever evaluated
&& pageSizeId <= QPageSize::LastPageSize
pageSizeId <= ...::LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
711 init(pageSizeId, QString());
never executed: init(pageSizeId, QString());
0
712}
never executed: end of block
0
713-
714QPageSizePrivate::QPageSizePrivate(const QSize &pointSize, const QString &name, QPageSize::SizeMatchPolicy matchPolicy)-
715 : m_id(QPageSize::Custom),-
716 m_windowsId(0),-
717 m_units(QPageSize::Point)-
718{-
719 if (pointSize.isValid()
pointSize.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
720 QPageSize::PageSizeId id = qt_idForPointSize(pointSize, matchPolicy, 0);-
721 id == QPageSize::Custom ? init(pointSize, name) : init(id, name);-
722 }
never executed: end of block
0
723}
never executed: end of block
0
724-
725QPageSizePrivate::QPageSizePrivate(const QSizeF &size, QPageSize::Unit units,-
726 const QString &name, QPageSize::SizeMatchPolicy matchPolicy)-
727 : m_id(QPageSize::Custom),-
728 m_windowsId(0),-
729 m_units(QPageSize::Point)-
730{-
731 if (size.isValid()
size.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
732 QPageSize::PageSizeId id = qt_idForSize(size, units, matchPolicy, 0);-
733 id == QPageSize::Custom ? init(size, units, name) : init(id, name);-
734 }
never executed: end of block
0
735}
never executed: end of block
0
736-
737QPageSizePrivate::QPageSizePrivate(const QString &key, const QSize &pointSize, const QString &name)-
738 : m_id(QPageSize::Custom),-
739 m_windowsId(0),-
740 m_units(QPageSize::Point)-
741{-
742 if (!key.isEmpty()
!key.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
&& pointSize.isValid()
pointSize.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
743 QPageSize::PageSizeId id = qt_idForPpdKey(key, 0);-
744-
745 if (id == QPageSize::Custom
id == QPageSize::CustomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
746 id = qt_idForPointSize(pointSize, QPageSize::FuzzyMatch, 0);
never executed: id = qt_idForPointSize(pointSize, QPageSize::FuzzyMatch, 0);
0
747 id == QPageSize::Custom ? init(pointSize, name) : init(id, name);-
748 m_key = key;-
749 }
never executed: end of block
0
750}
never executed: end of block
0
751-
752QPageSizePrivate::QPageSizePrivate(int windowsId, const QSize &pointSize, const QString &name)-
753 : m_id(QPageSize::Custom),-
754 m_windowsId(0),-
755 m_units(QPageSize::Point)-
756{-
757 if (windowsId > 0
windowsId > 0Description
TRUEnever evaluated
FALSEnever evaluated
&& pointSize.isValid()
pointSize.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
758 QPageSize::PageSizeId id = qt_idForWindowsID(windowsId, 0);-
759-
760 if (id == QPageSize::Custom
id == QPageSize::CustomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
761 id = qt_idForPointSize(pointSize, QPageSize::FuzzyMatch, 0);
never executed: id = qt_idForPointSize(pointSize, QPageSize::FuzzyMatch, 0);
0
762 id == QPageSize::Custom ? init(pointSize, name) : init(id, name);-
763 m_windowsId = windowsId;-
764 }
never executed: end of block
0
765}
never executed: end of block
0
766-
767QPageSizePrivate::~QPageSizePrivate()-
768{-
769}-
770-
771-
772void QPageSizePrivate::init(QPageSize::PageSizeId id, const QString &name)-
773{-
774 m_id = id;-
775 m_size = qt_definitionSize(id);-
776 m_units = qt_pageSizes[id].definitionUnits;-
777 m_key = qt_keyForPageSizeId(id);-
778 m_name = name.isEmpty()
name.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
? QPageSize::name(id) : name;
0
779 m_windowsId = qt_pageSizes[id].windowsId;-
780 m_pointSize = QSize(qt_pageSizes[id].widthPoints, qt_pageSizes[id].heightPoints);-
781}
never executed: end of block
0
782-
783-
784void QPageSizePrivate::init(const QSize &size, const QString &name)-
785{-
786 m_id = QPageSize::Custom;-
787 m_size = size;-
788 m_units = QPageSize::Point;-
789 m_key = qt_keyForCustomSize(m_size, m_units);-
790 m_name = name.isEmpty()
name.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
? qt_nameForCustomSize(m_size, m_units) : name;
0
791 m_windowsId = 0;-
792 m_pointSize = size;-
793}
never executed: end of block
0
794-
795-
796void QPageSizePrivate::init(const QSizeF &size, QPageSize::Unit units, const QString &name)-
797{-
798 m_id = QPageSize::Custom;-
799 m_size = size;-
800 m_units = units;-
801 m_key = qt_keyForCustomSize(m_size, m_units);-
802 if (name.isEmpty()
name.isEmpty()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
803 m_name = qt_nameForCustomSize(m_size, m_units);
never executed: m_name = qt_nameForCustomSize(m_size, m_units);
0
804 else-
805 m_name = name;
never executed: m_name = name;
0
806 m_windowsId = 0;-
807 m_pointSize = qt_convertUnitsToPoints(m_size, m_units);-
808}
never executed: end of block
0
809-
810bool QPageSizePrivate::operator==(const QPageSizePrivate &other) const-
811{-
812 return
never executed: return m_size == other.m_size && m_units == other.m_units && m_key == other.m_key && m_name == other.m_name;
m_size == other.m_size
never executed: return m_size == other.m_size && m_units == other.m_units && m_key == other.m_key && m_name == other.m_name;
0
813 && m_units == other.m_units
never executed: return m_size == other.m_size && m_units == other.m_units && m_key == other.m_key && m_name == other.m_name;
0
814 && m_key == other.m_key
never executed: return m_size == other.m_size && m_units == other.m_units && m_key == other.m_key && m_name == other.m_name;
0
815 && m_name == other.m_name;
never executed: return m_size == other.m_size && m_units == other.m_units && m_key == other.m_key && m_name == other.m_name;
0
816}-
817-
818bool QPageSizePrivate::isEquivalentTo(const QPageSizePrivate &other) const-
819{-
820 return
never executed: return m_pointSize == other.m_pointSize;
m_pointSize == other.m_pointSize;
never executed: return m_pointSize == other.m_pointSize;
0
821}-
822-
823bool QPageSizePrivate::isValid() const-
824{-
825 return
never executed: return m_pointSize.isValid() && !m_key.isEmpty() && !m_name.isEmpty();
m_pointSize.isValid() && !m_key.isEmpty() && !m_name.isEmpty();
never executed: return m_pointSize.isValid() && !m_key.isEmpty() && !m_name.isEmpty();
0
826}-
827-
828QSizeF QPageSizePrivate::size(QPageSize::Unit units) const-
829{-
830-
831 if (units == m_units
units == m_unitsDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
832 return
never executed: return m_size;
m_size;
never executed: return m_size;
0
833-
834-
835 if (units == QPageSize::Point
units == QPageSize::PointDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
836 return
never executed: return QSizeF(m_pointSize.width(), m_pointSize.height());
QSizeF(m_pointSize.width(), m_pointSize.height());
never executed: return QSizeF(m_pointSize.width(), m_pointSize.height());
0
837-
838-
839 if (m_id == QPageSize::Custom
m_id == QPageSize::CustomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
840 return
never executed: return qt_convertUnits(m_size, m_units, units);
qt_convertUnits(m_size, m_units, units);
never executed: return qt_convertUnits(m_size, m_units, units);
0
841-
842-
843 return
never executed: return qt_unitSize(m_id, units);
qt_unitSize(m_id, units);
never executed: return qt_unitSize(m_id, units);
0
844}-
845-
846QSize QPageSizePrivate::sizePixels(int resolution) const-
847{-
848 return
never executed: return qt_convertPointsToPixels(m_pointSize, resolution);
qt_convertPointsToPixels(m_pointSize, resolution);
never executed: return qt_convertPointsToPixels(m_pointSize, resolution);
;
0
849}-
850QPageSize::QPageSize()-
851 : d(new QPageSizePrivate())-
852{-
853}
never executed: end of block
0
854QPageSize::QPageSize(PageSizeId pageSize)-
855 : d(new QPageSizePrivate(pageSize))-
856{-
857}
never executed: end of block
0
858QPageSize::QPageSize(const QSize &pointSize, const QString &name, SizeMatchPolicy matchPolicy)-
859 : d(new QPageSizePrivate(pointSize, name, matchPolicy))-
860{-
861}
never executed: end of block
0
862QPageSize::QPageSize(const QSizeF &size, Unit units,-
863 const QString &name, SizeMatchPolicy matchPolicy)-
864 : d(new QPageSizePrivate(size, units, name, matchPolicy))-
865{-
866}
never executed: end of block
0
867-
868-
869-
870-
871-
872-
873-
874QPageSize::QPageSize(const QString &key, const QSize &pointSize, const QString &name)-
875 : d(new QPageSizePrivate(key, pointSize, name))-
876{-
877}
never executed: end of block
0
878-
879-
880-
881-
882-
883-
884-
885QPageSize::QPageSize(int windowsId, const QSize &pointSize, const QString &name)-
886 : d(new QPageSizePrivate(windowsId, pointSize, name))-
887{-
888}
never executed: end of block
0
889-
890-
891-
892-
893-
894-
895-
896QPageSize::QPageSize(QPageSizePrivate &dd)-
897 : d(&dd)-
898{-
899}
never executed: end of block
0
900-
901-
902-
903-
904-
905QPageSize::QPageSize(const QPageSize &other)-
906 : d(other.d)-
907{-
908}
never executed: end of block
0
909-
910-
911-
912-
913-
914QPageSize::~QPageSize()-
915{-
916}-
917-
918-
919-
920-
921-
922QPageSize &QPageSize::operator=(const QPageSize &other)-
923{-
924 d = other.d;-
925 return
never executed: return *this;
*this;
never executed: return *this;
0
926}-
927bool operator==(const QPageSize &lhs, const QPageSize &rhs)-
928{-
929 return
never executed: return lhs.d == rhs.d || *lhs.d == *rhs.d;
lhs.d == rhs.d || *lhs.d == *rhs.d;
never executed: return lhs.d == rhs.d || *lhs.d == *rhs.d;
0
930}-
931bool QPageSize::isEquivalentTo(const QPageSize &other) const-
932{-
933 if (d == other.d
d == other.dDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
934 return
never executed: return true;
true;
never executed: return true;
0
935 return
never executed: return d && other.d && d->isEquivalentTo(*other.d);
d && other.d && d->isEquivalentTo(*other.d);
never executed: return d && other.d && d->isEquivalentTo(*other.d);
0
936}-
937bool QPageSize::isValid() const-
938{-
939 return
never executed: return d && d->isValid();
d && d->isValid();
never executed: return d && d->isValid();
0
940}-
941QString QPageSize::key() const-
942{-
943 return
never executed: return isValid() ? d->m_key : QString();
isValid() ? d->m_key : QString();
never executed: return isValid() ? d->m_key : QString();
0
944}-
945QString QPageSize::name() const-
946{-
947 return
never executed: return isValid() ? d->m_name : QString();
isValid() ? d->m_name : QString();
never executed: return isValid() ? d->m_name : QString();
0
948}-
949-
950-
951-
952-
953-
954-
955-
956QPageSize::PageSizeId QPageSize::id() const-
957{-
958 return
never executed: return isValid() ? d->m_id : Custom;
isValid() ? d->m_id : Custom;
never executed: return isValid() ? d->m_id : Custom;
0
959}-
960int QPageSize::windowsId() const-
961{-
962 if (!isValid()
!isValid()Description
TRUEnever evaluated
FALSEnever evaluated
)
0
963 return
never executed: return 0;
0;
never executed: return 0;
0
964 return
never executed: return d->m_windowsId > 0 ? d->m_windowsId : windowsId(d->m_id);
d->m_windowsId > 0 ? d->m_windowsId : windowsId(d->m_id);
never executed: return d->m_windowsId > 0 ? d->m_windowsId : windowsId(d->m_id);
0
965}-
966QSizeF QPageSize::definitionSize() const-
967{-
968 return
never executed: return isValid() ? d->m_size : QSizeF();
isValid() ? d->m_size : QSizeF();
never executed: return isValid() ? d->m_size : QSizeF();
0
969}-
970QPageSize::Unit QPageSize::definitionUnits() const-
971{-
972 return
never executed: return isValid() ? d->m_units : Unit(-1);
isValid() ? d->m_units : Unit(-1);
never executed: return isValid() ? d->m_units : Unit(-1);
0
973}-
974-
975-
976-
977-
978-
979-
980-
981QSizeF QPageSize::size(Unit units) const-
982{-
983 return
never executed: return isValid() ? d->size(units) : QSize();
isValid() ? d->size(units) : QSize();
never executed: return isValid() ? d->size(units) : QSize();
0
984}-
985-
986-
987-
988-
989-
990-
991-
992QSize QPageSize::sizePoints() const-
993{-
994 return
never executed: return isValid() ? d->m_pointSize : QSize();
isValid() ? d->m_pointSize : QSize();
never executed: return isValid() ? d->m_pointSize : QSize();
0
995}-
996-
997-
998-
999-
1000-
1001-
1002-
1003QSize QPageSize::sizePixels(int resolution) const-
1004{-
1005 return
never executed: return isValid() ? d->sizePixels(resolution) : QSize();
isValid() ? d->sizePixels(resolution) : QSize();
never executed: return isValid() ? d->sizePixels(resolution) : QSize();
0
1006}-
1007-
1008-
1009-
1010-
1011-
1012-
1013-
1014QRectF QPageSize::rect(Unit units) const-
1015{-
1016 return
never executed: return isValid() ? QRectF(QPointF(0, 0), d->size(units)) : QRectF();
isValid() ? QRectF(QPointF(0, 0), d->size(units)) : QRectF();
never executed: return isValid() ? QRectF(QPointF(0, 0), d->size(units)) : QRectF();
0
1017}-
1018-
1019-
1020-
1021-
1022-
1023-
1024-
1025QRect QPageSize::rectPoints() const-
1026{-
1027 return
never executed: return isValid() ? QRect(QPoint(0, 0), d->m_pointSize) : QRect();
isValid() ? QRect(QPoint(0, 0), d->m_pointSize) : QRect();
never executed: return isValid() ? QRect(QPoint(0, 0), d->m_pointSize) : QRect();
0
1028}-
1029-
1030-
1031-
1032-
1033-
1034-
1035-
1036QRect QPageSize::rectPixels(int resolution) const-
1037{-
1038 return
never executed: return isValid() ? QRect(QPoint(0, 0), d->sizePixels(resolution)) : QRect();
isValid() ? QRect(QPoint(0, 0), d->sizePixels(resolution)) : QRect();
never executed: return isValid() ? QRect(QPoint(0, 0), d->sizePixels(resolution)) : QRect();
0
1039}-
1040QString QPageSize::key(PageSizeId pageSizeId)-
1041{-
1042 if (pageSizeId < PageSizeId(0)
pageSizeId < PageSizeId(0)Description
TRUEnever evaluated
FALSEnever evaluated
|| pageSizeId > LastPageSize
pageSizeId > LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1043 return
never executed: return QString();
QString();
never executed: return QString();
0
1044 return
never executed: return QString::fromUtf8(qt_pageSizes[pageSizeId].mediaOption);
QString::fromUtf8(qt_pageSizes[pageSizeId].mediaOption);
never executed: return QString::fromUtf8(qt_pageSizes[pageSizeId].mediaOption);
0
1045}-
1046-
1047static QString msgImperialPageSizeInch(int width, int height)-
1048{-
1049-
1050 return
never executed: return QCoreApplication::translate("QPageSize", "%1 x %2 in").arg(width).arg(height);
QCoreApplication::translate("QPageSize", "%1 x %2 in").arg(width).arg(height);
never executed: return QCoreApplication::translate("QPageSize", "%1 x %2 in").arg(width).arg(height);
0
1051}-
1052-
1053-
1054-
1055-
1056-
1057-
1058-
1059QString QPageSize::name(PageSizeId pageSizeId)-
1060{-
1061 if (pageSizeId < PageSizeId(0)
pageSizeId < PageSizeId(0)Description
TRUEnever evaluated
FALSEnever evaluated
|| pageSizeId > LastPageSize
pageSizeId > LastPageSizeDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1062 return
never executed: return QString();
QString();
never executed: return QString();
0
1063-
1064 switch (pageSizeId) {-
1065 case
never executed: case A0:
A0:
never executed: case A0:
0
1066 return
never executed: return QCoreApplication::translate("QPageSize", "A0");
QCoreApplication::translate("QPageSize", "A0");
never executed: return QCoreApplication::translate("QPageSize", "A0");
0
1067 case
never executed: case A1:
A1:
never executed: case A1:
0
1068 return
never executed: return QCoreApplication::translate("QPageSize", "A1");
QCoreApplication::translate("QPageSize", "A1");
never executed: return QCoreApplication::translate("QPageSize", "A1");
0
1069 case
never executed: case A2:
A2:
never executed: case A2:
0
1070 return
never executed: return QCoreApplication::translate("QPageSize", "A2");
QCoreApplication::translate("QPageSize", "A2");
never executed: return QCoreApplication::translate("QPageSize", "A2");
0
1071 case
never executed: case A3:
A3:
never executed: case A3:
0
1072 return
never executed: return QCoreApplication::translate("QPageSize", "A3");
QCoreApplication::translate("QPageSize", "A3");
never executed: return QCoreApplication::translate("QPageSize", "A3");
0
1073 case
never executed: case A4:
A4:
never executed: case A4:
0
1074 return
never executed: return QCoreApplication::translate("QPageSize", "A4");
QCoreApplication::translate("QPageSize", "A4");
never executed: return QCoreApplication::translate("QPageSize", "A4");
0
1075 case
never executed: case A5:
A5:
never executed: case A5:
0
1076 return
never executed: return QCoreApplication::translate("QPageSize", "A5");
QCoreApplication::translate("QPageSize", "A5");
never executed: return QCoreApplication::translate("QPageSize", "A5");
0
1077 case
never executed: case A6:
A6:
never executed: case A6:
0
1078 return
never executed: return QCoreApplication::translate("QPageSize", "A6");
QCoreApplication::translate("QPageSize", "A6");
never executed: return QCoreApplication::translate("QPageSize", "A6");
0
1079 case
never executed: case A7:
A7:
never executed: case A7:
0
1080 return
never executed: return QCoreApplication::translate("QPageSize", "A7");
QCoreApplication::translate("QPageSize", "A7");
never executed: return QCoreApplication::translate("QPageSize", "A7");
0
1081 case
never executed: case A8:
A8:
never executed: case A8:
0
1082 return
never executed: return QCoreApplication::translate("QPageSize", "A8");
QCoreApplication::translate("QPageSize", "A8");
never executed: return QCoreApplication::translate("QPageSize", "A8");
0
1083 case
never executed: case A9:
A9:
never executed: case A9:
0
1084 return
never executed: return QCoreApplication::translate("QPageSize", "A9");
QCoreApplication::translate("QPageSize", "A9");
never executed: return QCoreApplication::translate("QPageSize", "A9");
0
1085 case
never executed: case A10:
A10:
never executed: case A10:
0
1086 return
never executed: return QCoreApplication::translate("QPageSize", "A10");
QCoreApplication::translate("QPageSize", "A10");
never executed: return QCoreApplication::translate("QPageSize", "A10");
0
1087 case
never executed: case B0:
B0:
never executed: case B0:
0
1088 return
never executed: return QCoreApplication::translate("QPageSize", "B0");
QCoreApplication::translate("QPageSize", "B0");
never executed: return QCoreApplication::translate("QPageSize", "B0");
0
1089 case
never executed: case B1:
B1:
never executed: case B1:
0
1090 return
never executed: return QCoreApplication::translate("QPageSize", "B1");
QCoreApplication::translate("QPageSize", "B1");
never executed: return QCoreApplication::translate("QPageSize", "B1");
0
1091 case
never executed: case B2:
B2:
never executed: case B2:
0
1092 return
never executed: return QCoreApplication::translate("QPageSize", "B2");
QCoreApplication::translate("QPageSize", "B2");
never executed: return QCoreApplication::translate("QPageSize", "B2");
0
1093 case
never executed: case B3:
B3:
never executed: case B3:
0
1094 return
never executed: return QCoreApplication::translate("QPageSize", "B3");
QCoreApplication::translate("QPageSize", "B3");
never executed: return QCoreApplication::translate("QPageSize", "B3");
0
1095 case
never executed: case B4:
B4:
never executed: case B4:
0
1096 return
never executed: return QCoreApplication::translate("QPageSize", "B4");
QCoreApplication::translate("QPageSize", "B4");
never executed: return QCoreApplication::translate("QPageSize", "B4");
0
1097 case
never executed: case B5:
B5:
never executed: case B5:
0
1098 return
never executed: return QCoreApplication::translate("QPageSize", "B5");
QCoreApplication::translate("QPageSize", "B5");
never executed: return QCoreApplication::translate("QPageSize", "B5");
0
1099 case
never executed: case B6:
B6:
never executed: case B6:
0
1100 return
never executed: return QCoreApplication::translate("QPageSize", "B6");
QCoreApplication::translate("QPageSize", "B6");
never executed: return QCoreApplication::translate("QPageSize", "B6");
0
1101 case
never executed: case B7:
B7:
never executed: case B7:
0
1102 return
never executed: return QCoreApplication::translate("QPageSize", "B7");
QCoreApplication::translate("QPageSize", "B7");
never executed: return QCoreApplication::translate("QPageSize", "B7");
0
1103 case
never executed: case B8:
B8:
never executed: case B8:
0
1104 return
never executed: return QCoreApplication::translate("QPageSize", "B8");
QCoreApplication::translate("QPageSize", "B8");
never executed: return QCoreApplication::translate("QPageSize", "B8");
0
1105 case
never executed: case B9:
B9:
never executed: case B9:
0
1106 return
never executed: return QCoreApplication::translate("QPageSize", "B9");
QCoreApplication::translate("QPageSize", "B9");
never executed: return QCoreApplication::translate("QPageSize", "B9");
0
1107 case
never executed: case B10:
B10:
never executed: case B10:
0
1108 return
never executed: return QCoreApplication::translate("QPageSize", "B10");
QCoreApplication::translate("QPageSize", "B10");
never executed: return QCoreApplication::translate("QPageSize", "B10");
0
1109 case
never executed: case Executive:
Executive:
never executed: case Executive:
0
1110 return
never executed: return QCoreApplication::translate("QPageSize", "Executive (7.5 x 10 in)");
QCoreApplication::translate("QPageSize", "Executive (7.5 x 10 in)");
never executed: return QCoreApplication::translate("QPageSize", "Executive (7.5 x 10 in)");
0
1111 case
never executed: case ExecutiveStandard:
ExecutiveStandard:
never executed: case ExecutiveStandard:
0
1112 return
never executed: return QCoreApplication::translate("QPageSize", "Executive (7.25 x 10.5 in)");
QCoreApplication::translate("QPageSize", "Executive (7.25 x 10.5 in)");
never executed: return QCoreApplication::translate("QPageSize", "Executive (7.25 x 10.5 in)");
0
1113 case
never executed: case Folio:
Folio:
never executed: case Folio:
0
1114 return
never executed: return QCoreApplication::translate("QPageSize", "Folio (8.27 x 13 in)");
QCoreApplication::translate("QPageSize", "Folio (8.27 x 13 in)");
never executed: return QCoreApplication::translate("QPageSize", "Folio (8.27 x 13 in)");
0
1115 case
never executed: case Legal:
Legal:
never executed: case Legal:
0
1116 return
never executed: return QCoreApplication::translate("QPageSize", "Legal");
QCoreApplication::translate("QPageSize", "Legal");
never executed: return QCoreApplication::translate("QPageSize", "Legal");
0
1117 case
never executed: case Letter:
Letter:
never executed: case Letter:
0
1118 return
never executed: return QCoreApplication::translate("QPageSize", "Letter / ANSI A");
QCoreApplication::translate("QPageSize", "Letter / ANSI A");
never executed: return QCoreApplication::translate("QPageSize", "Letter / ANSI A");
0
1119 case
never executed: case Tabloid:
Tabloid:
never executed: case Tabloid:
0
1120 return
never executed: return QCoreApplication::translate("QPageSize", "Tabloid / ANSI B");
QCoreApplication::translate("QPageSize", "Tabloid / ANSI B");
never executed: return QCoreApplication::translate("QPageSize", "Tabloid / ANSI B");
0
1121 case
never executed: case Ledger:
Ledger:
never executed: case Ledger:
0
1122 return
never executed: return QCoreApplication::translate("QPageSize", "Ledger / ANSI B");
QCoreApplication::translate("QPageSize", "Ledger / ANSI B");
never executed: return QCoreApplication::translate("QPageSize", "Ledger / ANSI B");
0
1123 case
never executed: case Custom:
Custom:
never executed: case Custom:
0
1124 return
never executed: return QCoreApplication::translate("QPageSize", "Custom");
QCoreApplication::translate("QPageSize", "Custom");
never executed: return QCoreApplication::translate("QPageSize", "Custom");
0
1125 case
never executed: case A3Extra:
A3Extra:
never executed: case A3Extra:
0
1126 return
never executed: return QCoreApplication::translate("QPageSize", "A3 Extra");
QCoreApplication::translate("QPageSize", "A3 Extra");
never executed: return QCoreApplication::translate("QPageSize", "A3 Extra");
0
1127 case
never executed: case A4Extra:
A4Extra:
never executed: case A4Extra:
0
1128 return
never executed: return QCoreApplication::translate("QPageSize", "A4 Extra");
QCoreApplication::translate("QPageSize", "A4 Extra");
never executed: return QCoreApplication::translate("QPageSize", "A4 Extra");
0
1129 case
never executed: case A4Plus:
A4Plus:
never executed: case A4Plus:
0
1130 return
never executed: return QCoreApplication::translate("QPageSize", "A4 Plus");
QCoreApplication::translate("QPageSize", "A4 Plus");
never executed: return QCoreApplication::translate("QPageSize", "A4 Plus");
0
1131 case
never executed: case A4Small:
A4Small:
never executed: case A4Small:
0
1132 return
never executed: return QCoreApplication::translate("QPageSize", "A4 Small");
QCoreApplication::translate("QPageSize", "A4 Small");
never executed: return QCoreApplication::translate("QPageSize", "A4 Small");
0
1133 case
never executed: case A5Extra:
A5Extra:
never executed: case A5Extra:
0
1134 return
never executed: return QCoreApplication::translate("QPageSize", "A5 Extra");
QCoreApplication::translate("QPageSize", "A5 Extra");
never executed: return QCoreApplication::translate("QPageSize", "A5 Extra");
0
1135 case
never executed: case B5Extra:
B5Extra:
never executed: case B5Extra:
0
1136 return
never executed: return QCoreApplication::translate("QPageSize", "B5 Extra");
QCoreApplication::translate("QPageSize", "B5 Extra");
never executed: return QCoreApplication::translate("QPageSize", "B5 Extra");
0
1137 case
never executed: case JisB0:
JisB0:
never executed: case JisB0:
0
1138 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B0");
QCoreApplication::translate("QPageSize", "JIS B0");
never executed: return QCoreApplication::translate("QPageSize", "JIS B0");
0
1139 case
never executed: case JisB1:
JisB1:
never executed: case JisB1:
0
1140 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B1");
QCoreApplication::translate("QPageSize", "JIS B1");
never executed: return QCoreApplication::translate("QPageSize", "JIS B1");
0
1141 case
never executed: case JisB2:
JisB2:
never executed: case JisB2:
0
1142 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B2");
QCoreApplication::translate("QPageSize", "JIS B2");
never executed: return QCoreApplication::translate("QPageSize", "JIS B2");
0
1143 case
never executed: case JisB3:
JisB3:
never executed: case JisB3:
0
1144 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B3");
QCoreApplication::translate("QPageSize", "JIS B3");
never executed: return QCoreApplication::translate("QPageSize", "JIS B3");
0
1145 case
never executed: case JisB4:
JisB4:
never executed: case JisB4:
0
1146 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B4");
QCoreApplication::translate("QPageSize", "JIS B4");
never executed: return QCoreApplication::translate("QPageSize", "JIS B4");
0
1147 case
never executed: case JisB5:
JisB5:
never executed: case JisB5:
0
1148 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B5");
QCoreApplication::translate("QPageSize", "JIS B5");
never executed: return QCoreApplication::translate("QPageSize", "JIS B5");
0
1149 case
never executed: case JisB6:
JisB6:
never executed: case JisB6:
0
1150 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B6");
QCoreApplication::translate("QPageSize", "JIS B6");
never executed: return QCoreApplication::translate("QPageSize", "JIS B6");
0
1151 case
never executed: case JisB7:
JisB7:
never executed: case JisB7:
0
1152 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B7");
QCoreApplication::translate("QPageSize", "JIS B7");
never executed: return QCoreApplication::translate("QPageSize", "JIS B7");
0
1153 case
never executed: case JisB8:
JisB8:
never executed: case JisB8:
0
1154 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B8");
QCoreApplication::translate("QPageSize", "JIS B8");
never executed: return QCoreApplication::translate("QPageSize", "JIS B8");
0
1155 case
never executed: case JisB9:
JisB9:
never executed: case JisB9:
0
1156 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B9");
QCoreApplication::translate("QPageSize", "JIS B9");
never executed: return QCoreApplication::translate("QPageSize", "JIS B9");
0
1157 case
never executed: case JisB10:
JisB10:
never executed: case JisB10:
0
1158 return
never executed: return QCoreApplication::translate("QPageSize", "JIS B10");
QCoreApplication::translate("QPageSize", "JIS B10");
never executed: return QCoreApplication::translate("QPageSize", "JIS B10");
0
1159 case
never executed: case AnsiC:
AnsiC:
never executed: case AnsiC:
0
1160 return
never executed: return QCoreApplication::translate("QPageSize", "ANSI C");
QCoreApplication::translate("QPageSize", "ANSI C");
never executed: return QCoreApplication::translate("QPageSize", "ANSI C");
0
1161 case
never executed: case AnsiD:
AnsiD:
never executed: case AnsiD:
0
1162 return
never executed: return QCoreApplication::translate("QPageSize", "ANSI D");
QCoreApplication::translate("QPageSize", "ANSI D");
never executed: return QCoreApplication::translate("QPageSize", "ANSI D");
0
1163 case
never executed: case AnsiE:
AnsiE:
never executed: case AnsiE:
0
1164 return
never executed: return QCoreApplication::translate("QPageSize", "ANSI E");
QCoreApplication::translate("QPageSize", "ANSI E");
never executed: return QCoreApplication::translate("QPageSize", "ANSI E");
0
1165 case
never executed: case LegalExtra:
LegalExtra:
never executed: case LegalExtra:
0
1166 return
never executed: return QCoreApplication::translate("QPageSize", "Legal Extra");
QCoreApplication::translate("QPageSize", "Legal Extra");
never executed: return QCoreApplication::translate("QPageSize", "Legal Extra");
0
1167 case
never executed: case LetterExtra:
LetterExtra:
never executed: case LetterExtra:
0
1168 return
never executed: return QCoreApplication::translate("QPageSize", "Letter Extra");
QCoreApplication::translate("QPageSize", "Letter Extra");
never executed: return QCoreApplication::translate("QPageSize", "Letter Extra");
0
1169 case
never executed: case LetterPlus:
LetterPlus:
never executed: case LetterPlus:
0
1170 return
never executed: return QCoreApplication::translate("QPageSize", "Letter Plus");
QCoreApplication::translate("QPageSize", "Letter Plus");
never executed: return QCoreApplication::translate("QPageSize", "Letter Plus");
0
1171 case
never executed: case LetterSmall:
LetterSmall:
never executed: case LetterSmall:
0
1172 return
never executed: return QCoreApplication::translate("QPageSize", "Letter Small");
QCoreApplication::translate("QPageSize", "Letter Small");
never executed: return QCoreApplication::translate("QPageSize", "Letter Small");
0
1173 case
never executed: case TabloidExtra:
TabloidExtra:
never executed: case TabloidExtra:
0
1174 return
never executed: return QCoreApplication::translate("QPageSize", "Tabloid Extra");
QCoreApplication::translate("QPageSize", "Tabloid Extra");
never executed: return QCoreApplication::translate("QPageSize", "Tabloid Extra");
0
1175 case
never executed: case ArchA:
ArchA:
never executed: case ArchA:
0
1176 return
never executed: return QCoreApplication::translate("QPageSize", "Architect A");
QCoreApplication::translate("QPageSize", "Architect A");
never executed: return QCoreApplication::translate("QPageSize", "Architect A");
0
1177 case
never executed: case ArchB:
ArchB:
never executed: case ArchB:
0
1178 return
never executed: return QCoreApplication::translate("QPageSize", "Architect B");
QCoreApplication::translate("QPageSize", "Architect B");
never executed: return QCoreApplication::translate("QPageSize", "Architect B");
0
1179 case
never executed: case ArchC:
ArchC:
never executed: case ArchC:
0
1180 return
never executed: return QCoreApplication::translate("QPageSize", "Architect C");
QCoreApplication::translate("QPageSize", "Architect C");
never executed: return QCoreApplication::translate("QPageSize", "Architect C");
0
1181 case
never executed: case ArchD:
ArchD:
never executed: case ArchD:
0
1182 return
never executed: return QCoreApplication::translate("QPageSize", "Architect D");
QCoreApplication::translate("QPageSize", "Architect D");
never executed: return QCoreApplication::translate("QPageSize", "Architect D");
0
1183 case
never executed: case ArchE:
ArchE:
never executed: case ArchE:
0
1184 return
never executed: return QCoreApplication::translate("QPageSize", "Architect E");
QCoreApplication::translate("QPageSize", "Architect E");
never executed: return QCoreApplication::translate("QPageSize", "Architect E");
0
1185 case
never executed: case Imperial7x9:
Imperial7x9:
never executed: case Imperial7x9:
0
1186 return
never executed: return msgImperialPageSizeInch(7, 9);
msgImperialPageSizeInch(7, 9);
never executed: return msgImperialPageSizeInch(7, 9);
0
1187 case
never executed: case Imperial8x10:
Imperial8x10:
never executed: case Imperial8x10:
0
1188 return
never executed: return msgImperialPageSizeInch(8, 10);
msgImperialPageSizeInch(8, 10);
never executed: return msgImperialPageSizeInch(8, 10);
0
1189 case
never executed: case Imperial9x11:
Imperial9x11:
never executed: case Imperial9x11:
0
1190 return
never executed: return msgImperialPageSizeInch(9, 11);
msgImperialPageSizeInch(9, 11);
never executed: return msgImperialPageSizeInch(9, 11);
0
1191 case
never executed: case Imperial9x12:
Imperial9x12:
never executed: case Imperial9x12:
0
1192 return
never executed: return msgImperialPageSizeInch(9, 12);
msgImperialPageSizeInch(9, 12);
never executed: return msgImperialPageSizeInch(9, 12);
0
1193 case
never executed: case Imperial10x11:
Imperial10x11:
never executed: case Imperial10x11:
0
1194 return
never executed: return msgImperialPageSizeInch(10, 11);
msgImperialPageSizeInch(10, 11);
never executed: return msgImperialPageSizeInch(10, 11);
0
1195 case
never executed: case Imperial10x13:
Imperial10x13:
never executed: case Imperial10x13:
0
1196 return
never executed: return msgImperialPageSizeInch(10, 13);
msgImperialPageSizeInch(10, 13);
never executed: return msgImperialPageSizeInch(10, 13);
0
1197 case
never executed: case Imperial10x14:
Imperial10x14:
never executed: case Imperial10x14:
0
1198 return
never executed: return msgImperialPageSizeInch(10, 14);
msgImperialPageSizeInch(10, 14);
never executed: return msgImperialPageSizeInch(10, 14);
0
1199 case
never executed: case Imperial12x11:
Imperial12x11:
never executed: case Imperial12x11:
0
1200 return
never executed: return msgImperialPageSizeInch(12, 11);
msgImperialPageSizeInch(12, 11);
never executed: return msgImperialPageSizeInch(12, 11);
0
1201 case
never executed: case Imperial15x11:
Imperial15x11:
never executed: case Imperial15x11:
0
1202 return
never executed: return msgImperialPageSizeInch(15, 11);
msgImperialPageSizeInch(15, 11);
never executed: return msgImperialPageSizeInch(15, 11);
0
1203 case
never executed: case Note:
Note:
never executed: case Note:
0
1204 return
never executed: return QCoreApplication::translate("QPageSize", "Note");
QCoreApplication::translate("QPageSize", "Note");
never executed: return QCoreApplication::translate("QPageSize", "Note");
0
1205 case
never executed: case Quarto:
Quarto:
never executed: case Quarto:
0
1206 return
never executed: return QCoreApplication::translate("QPageSize", "Quarto");
QCoreApplication::translate("QPageSize", "Quarto");
never executed: return QCoreApplication::translate("QPageSize", "Quarto");
0
1207 case
never executed: case Statement:
Statement:
never executed: case Statement:
0
1208 return
never executed: return QCoreApplication::translate("QPageSize", "Statement");
QCoreApplication::translate("QPageSize", "Statement");
never executed: return QCoreApplication::translate("QPageSize", "Statement");
0
1209 case
never executed: case SuperA:
SuperA:
never executed: case SuperA:
0
1210 return
never executed: return QCoreApplication::translate("QPageSize", "Super A");
QCoreApplication::translate("QPageSize", "Super A");
never executed: return QCoreApplication::translate("QPageSize", "Super A");
0
1211 case
never executed: case SuperB:
SuperB:
never executed: case SuperB:
0
1212 return
never executed: return QCoreApplication::translate("QPageSize", "Super B");
QCoreApplication::translate("QPageSize", "Super B");
never executed: return QCoreApplication::translate("QPageSize", "Super B");
0
1213 case
never executed: case Postcard:
Postcard:
never executed: case Postcard:
0
1214 return
never executed: return QCoreApplication::translate("QPageSize", "Postcard");
QCoreApplication::translate("QPageSize", "Postcard");
never executed: return QCoreApplication::translate("QPageSize", "Postcard");
0
1215 case
never executed: case DoublePostcard:
DoublePostcard:
never executed: case DoublePostcard:
0
1216 return
never executed: return QCoreApplication::translate("QPageSize", "Double Postcard");
QCoreApplication::translate("QPageSize", "Double Postcard");
never executed: return QCoreApplication::translate("QPageSize", "Double Postcard");
0
1217 case
never executed: case Prc16K:
Prc16K:
never executed: case Prc16K:
0
1218 return
never executed: return QCoreApplication::translate("QPageSize", "PRC 16K");
QCoreApplication::translate("QPageSize", "PRC 16K");
never executed: return QCoreApplication::translate("QPageSize", "PRC 16K");
0
1219 case
never executed: case Prc32K:
Prc32K:
never executed: case Prc32K:
0
1220 return
never executed: return QCoreApplication::translate("QPageSize", "PRC 32K");
QCoreApplication::translate("QPageSize", "PRC 32K");
never executed: return QCoreApplication::translate("QPageSize", "PRC 32K");
0
1221 case
never executed: case Prc32KBig:
Prc32KBig:
never executed: case Prc32KBig:
0
1222 return
never executed: return QCoreApplication::translate("QPageSize", "PRC 32K Big");
QCoreApplication::translate("QPageSize", "PRC 32K Big");
never executed: return QCoreApplication::translate("QPageSize", "PRC 32K Big");
0
1223 case
never executed: case FanFoldUS:
FanFoldUS:
never executed: case FanFoldUS:
0
1224 return
never executed: return QCoreApplication::translate("QPageSize", "Fan-fold US (14.875 x 11 in)");
QCoreApplication::translate("QPageSize", "Fan-fold US (14.875 x 11 in)");
never executed: return QCoreApplication::translate("QPageSize", "Fan-fold US (14.875 x 11 in)");
0
1225 case
never executed: case FanFoldGerman:
FanFoldGerman:
never executed: case FanFoldGerman:
0
1226 return
never executed: return QCoreApplication::translate("QPageSize", "Fan-fold German (8.5 x 12 in)");
QCoreApplication::translate("QPageSize", "Fan-fold German (8.5 x 12 in)");
never executed: return QCoreApplication::translate("QPageSize", "Fan-fold German (8.5 x 12 in)");
0
1227 case
never executed: case FanFoldGermanLegal:
FanFoldGermanLegal:
never executed: case FanFoldGermanLegal:
0
1228 return
never executed: return QCoreApplication::translate("QPageSize", "Fan-fold German Legal (8.5 x 13 in)");
QCoreApplication::translate("QPageSize", "Fan-fold German Legal (8.5 x 13 in)");
never executed: return QCoreApplication::translate("QPageSize", "Fan-fold German Legal (8.5 x 13 in)");
0
1229 case
never executed: case EnvelopeB4:
EnvelopeB4:
never executed: case EnvelopeB4:
0
1230 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope B4");
QCoreApplication::translate("QPageSize", "Envelope B4");
never executed: return QCoreApplication::translate("QPageSize", "Envelope B4");
0
1231 case
never executed: case EnvelopeB5:
EnvelopeB5:
never executed: case EnvelopeB5:
0
1232 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope B5");
QCoreApplication::translate("QPageSize", "Envelope B5");
never executed: return QCoreApplication::translate("QPageSize", "Envelope B5");
0
1233 case
never executed: case EnvelopeB6:
EnvelopeB6:
never executed: case EnvelopeB6:
0
1234 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope B6");
QCoreApplication::translate("QPageSize", "Envelope B6");
never executed: return QCoreApplication::translate("QPageSize", "Envelope B6");
0
1235 case
never executed: case EnvelopeC0:
EnvelopeC0:
never executed: case EnvelopeC0:
0
1236 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C0");
QCoreApplication::translate("QPageSize", "Envelope C0");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C0");
0
1237 case
never executed: case EnvelopeC1:
EnvelopeC1:
never executed: case EnvelopeC1:
0
1238 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C1");
QCoreApplication::translate("QPageSize", "Envelope C1");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C1");
0
1239 case
never executed: case EnvelopeC2:
EnvelopeC2:
never executed: case EnvelopeC2:
0
1240 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C2");
QCoreApplication::translate("QPageSize", "Envelope C2");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C2");
0
1241 case
never executed: case EnvelopeC3:
EnvelopeC3:
never executed: case EnvelopeC3:
0
1242 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C3");
QCoreApplication::translate("QPageSize", "Envelope C3");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C3");
0
1243 case
never executed: case EnvelopeC4:
EnvelopeC4:
never executed: case EnvelopeC4:
0
1244 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C4");
QCoreApplication::translate("QPageSize", "Envelope C4");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C4");
0
1245 case
never executed: case EnvelopeC5:
EnvelopeC5:
never executed: case EnvelopeC5:
0
1246 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C5");
QCoreApplication::translate("QPageSize", "Envelope C5");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C5");
0
1247 case
never executed: case EnvelopeC6:
EnvelopeC6:
never executed: case EnvelopeC6:
0
1248 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C6");
QCoreApplication::translate("QPageSize", "Envelope C6");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C6");
0
1249 case
never executed: case EnvelopeC65:
EnvelopeC65:
never executed: case EnvelopeC65:
0
1250 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C65");
QCoreApplication::translate("QPageSize", "Envelope C65");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C65");
0
1251 case
never executed: case EnvelopeC7:
EnvelopeC7:
never executed: case EnvelopeC7:
0
1252 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope C7");
QCoreApplication::translate("QPageSize", "Envelope C7");
never executed: return QCoreApplication::translate("QPageSize", "Envelope C7");
0
1253 case
never executed: case EnvelopeDL:
EnvelopeDL:
never executed: case EnvelopeDL:
0
1254 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope DL");
QCoreApplication::translate("QPageSize", "Envelope DL");
never executed: return QCoreApplication::translate("QPageSize", "Envelope DL");
0
1255 case
never executed: case Envelope9:
Envelope9:
never executed: case Envelope9:
0
1256 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 9");
QCoreApplication::translate("QPageSize", "Envelope US 9");
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 9");
0
1257 case
never executed: case Envelope10:
Envelope10:
never executed: case Envelope10:
0
1258 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 10");
QCoreApplication::translate("QPageSize", "Envelope US 10");
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 10");
0
1259 case
never executed: case Envelope11:
Envelope11:
never executed: case Envelope11:
0
1260 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 11");
QCoreApplication::translate("QPageSize", "Envelope US 11");
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 11");
0
1261 case
never executed: case Envelope12:
Envelope12:
never executed: case Envelope12:
0
1262 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 12");
QCoreApplication::translate("QPageSize", "Envelope US 12");
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 12");
0
1263 case
never executed: case Envelope14:
Envelope14:
never executed: case Envelope14:
0
1264 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 14");
QCoreApplication::translate("QPageSize", "Envelope US 14");
never executed: return QCoreApplication::translate("QPageSize", "Envelope US 14");
0
1265 case
never executed: case EnvelopeMonarch:
EnvelopeMonarch:
never executed: case EnvelopeMonarch:
0
1266 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope Monarch");
QCoreApplication::translate("QPageSize", "Envelope Monarch");
never executed: return QCoreApplication::translate("QPageSize", "Envelope Monarch");
0
1267 case
never executed: case EnvelopePersonal:
EnvelopePersonal:
never executed: case EnvelopePersonal:
0
1268 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope Personal");
QCoreApplication::translate("QPageSize", "Envelope Personal");
never executed: return QCoreApplication::translate("QPageSize", "Envelope Personal");
0
1269 case
never executed: case EnvelopeChou3:
EnvelopeChou3:
never executed: case EnvelopeChou3:
0
1270 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope Chou 3");
QCoreApplication::translate("QPageSize", "Envelope Chou 3");
never executed: return QCoreApplication::translate("QPageSize", "Envelope Chou 3");
0
1271 case
never executed: case EnvelopeChou4:
EnvelopeChou4:
never executed: case EnvelopeChou4:
0
1272 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope Chou 4");
QCoreApplication::translate("QPageSize", "Envelope Chou 4");
never executed: return QCoreApplication::translate("QPageSize", "Envelope Chou 4");
0
1273 case
never executed: case EnvelopeInvite:
EnvelopeInvite:
never executed: case EnvelopeInvite:
0
1274 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope Invite");
QCoreApplication::translate("QPageSize", "Envelope Invite");
never executed: return QCoreApplication::translate("QPageSize", "Envelope Invite");
0
1275 case
never executed: case EnvelopeItalian:
EnvelopeItalian:
never executed: case EnvelopeItalian:
0
1276 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope Italian");
QCoreApplication::translate("QPageSize", "Envelope Italian");
never executed: return QCoreApplication::translate("QPageSize", "Envelope Italian");
0
1277 case
never executed: case EnvelopeKaku2:
EnvelopeKaku2:
never executed: case EnvelopeKaku2:
0
1278 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope Kaku 2");
QCoreApplication::translate("QPageSize", "Envelope Kaku 2");
never executed: return QCoreApplication::translate("QPageSize", "Envelope Kaku 2");
0
1279 case
never executed: case EnvelopeKaku3:
EnvelopeKaku3:
never executed: case EnvelopeKaku3:
0
1280 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope Kaku 3");
QCoreApplication::translate("QPageSize", "Envelope Kaku 3");
never executed: return QCoreApplication::translate("QPageSize", "Envelope Kaku 3");
0
1281 case
never executed: case EnvelopePrc1:
EnvelopePrc1:
never executed: case EnvelopePrc1:
0
1282 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 1");
QCoreApplication::translate("QPageSize", "Envelope PRC 1");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 1");
0
1283 case
never executed: case EnvelopePrc2:
EnvelopePrc2:
never executed: case EnvelopePrc2:
0
1284 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 2");
QCoreApplication::translate("QPageSize", "Envelope PRC 2");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 2");
0
1285 case
never executed: case EnvelopePrc3:
EnvelopePrc3:
never executed: case EnvelopePrc3:
0
1286 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 3");
QCoreApplication::translate("QPageSize", "Envelope PRC 3");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 3");
0
1287 case
never executed: case EnvelopePrc4:
EnvelopePrc4:
never executed: case EnvelopePrc4:
0
1288 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 4");
QCoreApplication::translate("QPageSize", "Envelope PRC 4");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 4");
0
1289 case
never executed: case EnvelopePrc5:
EnvelopePrc5:
never executed: case EnvelopePrc5:
0
1290 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 5");
QCoreApplication::translate("QPageSize", "Envelope PRC 5");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 5");
0
1291 case
never executed: case EnvelopePrc6:
EnvelopePrc6:
never executed: case EnvelopePrc6:
0
1292 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 6");
QCoreApplication::translate("QPageSize", "Envelope PRC 6");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 6");
0
1293 case
never executed: case EnvelopePrc7:
EnvelopePrc7:
never executed: case EnvelopePrc7:
0
1294 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 7");
QCoreApplication::translate("QPageSize", "Envelope PRC 7");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 7");
0
1295 case
never executed: case EnvelopePrc8:
EnvelopePrc8:
never executed: case EnvelopePrc8:
0
1296 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 8");
QCoreApplication::translate("QPageSize", "Envelope PRC 8");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 8");
0
1297 case
never executed: case EnvelopePrc9:
EnvelopePrc9:
never executed: case EnvelopePrc9:
0
1298 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 9");
QCoreApplication::translate("QPageSize", "Envelope PRC 9");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 9");
0
1299 case
never executed: case EnvelopePrc10:
EnvelopePrc10:
never executed: case EnvelopePrc10:
0
1300 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 10");
QCoreApplication::translate("QPageSize", "Envelope PRC 10");
never executed: return QCoreApplication::translate("QPageSize", "Envelope PRC 10");
0
1301 case
never executed: case EnvelopeYou4:
EnvelopeYou4:
never executed: case EnvelopeYou4:
0
1302 return
never executed: return QCoreApplication::translate("QPageSize", "Envelope You 4");
QCoreApplication::translate("QPageSize", "Envelope You 4");
never executed: return QCoreApplication::translate("QPageSize", "Envelope You 4");
0
1303 }-
1304 return
never executed: return QString();
QString();
never executed: return QString();
0
1305}-
1306QPageSize::PageSizeId QPageSize::id(const QSize &pointSize, SizeMatchPolicy matchPolicy)-
1307{-
1308 return
never executed: return qt_idForPointSize(pointSize, matchPolicy, 0);
qt_idForPointSize(pointSize, matchPolicy, 0);
never executed: return qt_idForPointSize(pointSize, matchPolicy, 0);
0
1309}-
1310QPageSize::PageSizeId QPageSize::id(const QSizeF &size, Unit units,-
1311 SizeMatchPolicy matchPolicy)-
1312{-
1313 return
never executed: return qt_idForSize(size, units, matchPolicy, 0);
qt_idForSize(size, units, matchPolicy, 0);
never executed: return qt_idForSize(size, units, matchPolicy, 0);
0
1314}-
1315-
1316-
1317-
1318-
1319-
1320-
1321-
1322QPageSize::PageSizeId QPageSize::id(int windowsId)-
1323{-
1324 return
never executed: return qt_idForWindowsID(windowsId);
qt_idForWindowsID(windowsId);
never executed: return qt_idForWindowsID(windowsId);
0
1325}-
1326int QPageSize::windowsId(PageSizeId pageSizeId)-
1327{-
1328 return
never executed: return qt_pageSizes[pageSizeId].windowsId;
qt_pageSizes[pageSizeId].windowsId;
never executed: return qt_pageSizes[pageSizeId].windowsId;
0
1329}-
1330-
1331-
1332-
1333-
1334-
1335-
1336-
1337QSizeF QPageSize::definitionSize(PageSizeId pageSizeId)-
1338{-
1339 if (pageSizeId == Custom
pageSizeId == CustomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1340 return
never executed: return QSizeF();
QSizeF();
never executed: return QSizeF();
0
1341 return
never executed: return qt_definitionSize(pageSizeId);
qt_definitionSize(pageSizeId);
never executed: return qt_definitionSize(pageSizeId);
0
1342}-
1343-
1344-
1345-
1346-
1347-
1348-
1349-
1350QPageSize::Unit QPageSize::definitionUnits(PageSizeId pageSizeId)-
1351{-
1352 if (pageSizeId == Custom
pageSizeId == CustomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1353 return
never executed: return Unit(-1);
Unit(-1);
never executed: return Unit(-1);
0
1354 return
never executed: return qt_pageSizes[pageSizeId].definitionUnits;
qt_pageSizes[pageSizeId].definitionUnits;
never executed: return qt_pageSizes[pageSizeId].definitionUnits;
0
1355}-
1356-
1357-
1358-
1359-
1360-
1361QSizeF QPageSize::size(PageSizeId pageSizeId, Unit units)-
1362{-
1363 if (pageSizeId == Custom
pageSizeId == CustomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1364 return
never executed: return QSizeF();
QSizeF();
never executed: return QSizeF();
0
1365 return
never executed: return qt_unitSize(pageSizeId, units);
qt_unitSize(pageSizeId, units);
never executed: return qt_unitSize(pageSizeId, units);
0
1366}-
1367-
1368-
1369-
1370-
1371-
1372QSize QPageSize::sizePoints(PageSizeId pageSizeId)-
1373{-
1374 if (pageSizeId == Custom
pageSizeId == CustomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1375 return
never executed: return QSize();
QSize();
never executed: return QSize();
0
1376 return
never executed: return QSize(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints);
QSize(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints);
never executed: return QSize(qt_pageSizes[pageSizeId].widthPoints, qt_pageSizes[pageSizeId].heightPoints);
0
1377}-
1378-
1379-
1380-
1381-
1382-
1383-
1384QSize QPageSize::sizePixels(PageSizeId pageSizeId, int resolution)-
1385{-
1386 if (pageSizeId == Custom
pageSizeId == CustomDescription
TRUEnever evaluated
FALSEnever evaluated
)
0
1387 return
never executed: return QSize();
QSize();
never executed: return QSize();
0
1388 return
never executed: return qt_convertPointsToPixels(sizePoints(pageSizeId), resolution);
qt_convertPointsToPixels(sizePoints(pageSizeId), resolution);
never executed: return qt_convertPointsToPixels(sizePoints(pageSizeId), resolution);
0
1389}-
1390-
1391-
1392QDebug operator<<(QDebug dbg, const QPageSize &pageSize)-
1393{-
1394 QDebugStateSaver saver(dbg);-
1395 dbg.nospace();-
1396 dbg.noquote();-
1397 dbg << "QPageSize(";-
1398 if (pageSize.isValid()
pageSize.isValid()Description
TRUEnever evaluated
FALSEnever evaluated
) {
0
1399 dbg << '"' << pageSize.name() << "\", key=\"" << pageSize.key()-
1400 << "\", " << pageSize.sizePoints().width() << 'x'-
1401 << pageSize.sizePoints().height() << "pt, id=" << pageSize.id();-
1402 }
never executed: end of block
else {
0
1403 dbg.nospace() << "QPageSize()";-
1404 }
never executed: end of block
0
1405 dbg << ')';-
1406 return
never executed: return dbg;
dbg;
never executed: return dbg;
0
1407}-
1408-
1409-
1410-
Switch to Source codePreprocessed file

Generated by Squish Coco Non-Commercial 4.3.0-BETA-master-30-08-2018-4cb69e9