| 1 |
/* Graphics_enums.h |
| 2 |
* |
| 3 |
* Copyright (C) 1992-2007,2013-2019,2022,2024 Paul Boersma |
| 4 |
* |
| 5 |
* This code is free software; you can redistribute it and/or modify |
| 6 |
* it under the terms of the GNU General Public License as published by |
| 7 |
* the Free Software Foundation; either version 2 of the License, or (at |
| 8 |
* your option) any later version. |
| 9 |
* |
| 10 |
* This code is distributed in the hope that it will be useful, but |
| 11 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
| 13 |
* See the GNU General Public License for more details. |
| 14 |
* |
| 15 |
* You should have received a copy of the GNU General Public License |
| 16 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 17 |
*/ |
| 18 |
|
| 19 |
enums_begin (kGraphics_font, 0) |
| 20 |
enums_add (kGraphics_font, 0, HELVETICA, U"Helvetica") |
| 21 |
enums_add (kGraphics_font, 1, TIMES, U"Times") |
| 22 |
enums_add (kGraphics_font, 2, COURIER, U"Courier") |
| 23 |
enums_add (kGraphics_font, 3, PALATINO, U"Palatino") |
| 24 |
/* |
| 25 |
This enum can occur as a binary integer in picture files, |
| 26 |
so the numeric representations are fixed, |
| 27 |
and new values should only be added to the end. |
| 28 |
*/ |
| 29 |
enums_end (kGraphics_font, 3, TIMES) |
| 30 |
|
| 31 |
enums_begin (kGraphics_horizontalAlignment, 0) |
| 32 |
enums_add (kGraphics_horizontalAlignment, 0, LEFT, U"left") |
| 33 |
enums_add (kGraphics_horizontalAlignment, 1, CENTRE, U"centre") |
| 34 |
enums_alt (kGraphics_horizontalAlignment, CENTRE, U"center") |
| 35 |
enums_add (kGraphics_horizontalAlignment, 2, RIGHT, U"right") |
| 36 |
/* |
| 37 |
This enum can occur as a binary integer in picture files, |
| 38 |
so the numeric representations are fixed, |
| 39 |
and new values should only be added to the end. |
| 40 |
*/ |
| 41 |
enums_end (kGraphics_horizontalAlignment, 2, CENTRE) |
| 42 |
|
| 43 |
enums_begin (kGraphics_resolution, 0) |
| 44 |
enums_add (kGraphics_resolution, 0, DPI_90, U"90 dpi") |
| 45 |
enums_add (kGraphics_resolution, 1, DPI_96, U"96 dpi") |
| 46 |
enums_add (kGraphics_resolution, 2, DPI_100, U"100 dpi") |
| 47 |
enums_add (kGraphics_resolution, 2, DPI_119, U"119 dpi") |
| 48 |
enums_add (kGraphics_resolution, 3, DPI_120, U"120 dpi") |
| 49 |
enums_add (kGraphics_resolution, 4, DPI_150, U"150 dpi") |
| 50 |
enums_add (kGraphics_resolution, 5, DPI_180, U"180 dpi") |
| 51 |
enums_add (kGraphics_resolution, 6, DPI_200, U"200 dpi") |
| 52 |
enums_add (kGraphics_resolution, 7, DPI_204, U"204 dpi") |
| 53 |
enums_add (kGraphics_resolution, 8, DPI_300, U"300 dpi") |
| 54 |
enums_add (kGraphics_resolution, 9, DPI_360, U"360 dpi") |
| 55 |
enums_add (kGraphics_resolution, 10, DPI_600, U"600 dpi") |
| 56 |
enums_add (kGraphics_resolution, 11, DPI_690, U"690 dpi") |
| 57 |
enums_add (kGraphics_resolution, 12, DPI_720, U"720 dpi") |
| 58 |
enums_add (kGraphics_resolution, 13, DPI_900, U"900 dpi") |
| 59 |
enums_add (kGraphics_resolution, 14, DPI_1200, U"1200 dpi") |
| 60 |
enums_end (kGraphics_resolution, 14, DPI_100) |
| 61 |
|
| 62 |
enums_begin (kGraphics_colourScale, 0) |
| 63 |
enums_add (kGraphics_colourScale, 0, GREY, U"grey") |
| 64 |
enums_add (kGraphics_colourScale, 1, BLUE_TO_RED, U"blue to red") |
| 65 |
/* |
| 66 |
This enum can occur as a binary integer in picture files, |
| 67 |
so the numeric representations are fixed, |
| 68 |
and new values should only be added to the end. |
| 69 |
*/ |
| 70 |
enums_end (kGraphics_colourScale, 1, GREY) |
| 71 |
|
| 72 |
enums_begin (kGraphicsPostscript_spots, 0) |
| 73 |
enums_add (kGraphicsPostscript_spots, 0, FINE, U"finest") |
| 74 |
enums_add (kGraphicsPostscript_spots, 1, PHOTOCOPYABLE, U"photocopyable") |
| 75 |
enums_end (kGraphicsPostscript_spots, 1, FINE) |
| 76 |
|
| 77 |
enums_begin (kGraphicsPostscript_paperSize, 0) |
| 78 |
enums_add (kGraphicsPostscript_paperSize, 0, A4, U"A4") |
| 79 |
enums_add (kGraphicsPostscript_paperSize, 1, A3, U"A3") |
| 80 |
enums_add (kGraphicsPostscript_paperSize, 2, US_LETTER, U"US Letter") |
| 81 |
enums_end (kGraphicsPostscript_paperSize, 2, A4) |
| 82 |
|
| 83 |
enums_begin (kGraphicsPostscript_orientation, 0) |
| 84 |
enums_add (kGraphicsPostscript_orientation, 0, PORTRAIT, U"portrait") |
| 85 |
enums_add (kGraphicsPostscript_orientation, 1, LANDSCAPE, U"landscape") |
| 86 |
enums_end (kGraphicsPostscript_orientation, 1, PORTRAIT) |
| 87 |
|
| 88 |
enums_begin (kGraphicsPostscript_fontChoiceStrategy, 0) |
| 89 |
enums_add (kGraphicsPostscript_fontChoiceStrategy, 0, AUTOMATIC, U"automatic") |
| 90 |
enums_add (kGraphicsPostscript_fontChoiceStrategy, 1, LINOTYPE, U"Linotype") |
| 91 |
enums_add (kGraphicsPostscript_fontChoiceStrategy, 2, MONOTYPE, U"Monotype") |
| 92 |
enums_add (kGraphicsPostscript_fontChoiceStrategy, 3, PS_MONOTYPE, U"PS Monotype") |
| 93 |
enums_end (kGraphicsPostscript_fontChoiceStrategy, 3, AUTOMATIC) |
| 94 |
|
| 95 |
enums_begin (kGraphics_cjkFontStyle, 0) |
| 96 |
enums_add (kGraphics_cjkFontStyle, 0, CHINESE, U"Chinese") |
| 97 |
enums_add (kGraphics_cjkFontStyle, 1, JAPANESE, U"Japanese") |
| 98 |
enums_end (kGraphics_cjkFontStyle, 1, CHINESE) |
| 99 |
|
| 100 |
/* End of file Graphics_enums.h */ |