desarrollostretch
Last change
on this file since c7e4b3d was
1f4adec,
checked in by aosorio <aosorio@…>, 8 years ago
|
Agregado proyecto base, esto luego del dh_make -f
|
-
Property mode set to
100644
|
File size:
1.7 KB
|
Line | |
---|
1 | /* |
---|
2 | |
---|
3 | Copyright 2013 Adam Reichold |
---|
4 | Copyright 2013 Alexander Volkov |
---|
5 | |
---|
6 | This file is part of qpdfview. |
---|
7 | |
---|
8 | qpdfview is free software: you can redistribute it and/or modify |
---|
9 | it under the terms of the GNU General Public License as published by |
---|
10 | the Free Software Foundation, either version 2 of the License, or |
---|
11 | (at your option) any later version. |
---|
12 | |
---|
13 | qpdfview is distributed in the hope that it will be useful, |
---|
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
16 | GNU General Public License for more details. |
---|
17 | |
---|
18 | You should have received a copy of the GNU General Public License |
---|
19 | along with qpdfview. If not, see <http://www.gnu.org/licenses/>. |
---|
20 | |
---|
21 | */ |
---|
22 | |
---|
23 | #ifndef PRINTOPTIONS_H |
---|
24 | #define PRINTOPTIONS_H |
---|
25 | |
---|
26 | namespace qpdfview |
---|
27 | { |
---|
28 | |
---|
29 | struct PrintOptions |
---|
30 | { |
---|
31 | bool fitToPage; |
---|
32 | |
---|
33 | QString pageRanges; |
---|
34 | |
---|
35 | #if QT_VERSION < QT_VERSION_CHECK(5,2,0) |
---|
36 | |
---|
37 | enum PageSet |
---|
38 | { |
---|
39 | AllPages = 0, |
---|
40 | EvenPages = 1, |
---|
41 | OddPages = 2 |
---|
42 | }; |
---|
43 | |
---|
44 | PageSet pageSet; |
---|
45 | |
---|
46 | enum NumberUp |
---|
47 | { |
---|
48 | SinglePage = 0, |
---|
49 | TwoPages = 1, |
---|
50 | FourPages = 2, |
---|
51 | SixPages = 3, |
---|
52 | NinePages = 4, |
---|
53 | SixteenPages = 5 |
---|
54 | }; |
---|
55 | |
---|
56 | NumberUp numberUp; |
---|
57 | |
---|
58 | enum NumberUpLayout |
---|
59 | { |
---|
60 | BottomTopLeftRight = 0, |
---|
61 | BottomTopRightLeft = 1, |
---|
62 | LeftRightBottomTop = 2, |
---|
63 | LeftRightTopBottom = 3, |
---|
64 | RightLeftBottomTop = 4, |
---|
65 | RightLeftTopBottom = 5, |
---|
66 | TopBottomLeftRight = 6, |
---|
67 | TopBottomRightLeft = 7 |
---|
68 | }; |
---|
69 | |
---|
70 | NumberUpLayout numberUpLayout; |
---|
71 | |
---|
72 | PrintOptions() : fitToPage(false), pageRanges(), pageSet(AllPages), numberUp(SinglePage), numberUpLayout(LeftRightTopBottom) {} |
---|
73 | |
---|
74 | #else |
---|
75 | |
---|
76 | PrintOptions() : fitToPage(false), pageRanges() {} |
---|
77 | |
---|
78 | #endif // QT_VERSION |
---|
79 | |
---|
80 | }; |
---|
81 | |
---|
82 | } // qpdfview |
---|
83 | |
---|
84 | #endif // PRINTOPTIONS_H |
---|
Note: See
TracBrowser
for help on using the repository browser.