Graphics_enums.h 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* Graphics_enums.h
  2. *
  3. * Copyright (C) 1992-2007,2013-2018 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. enums_begin (kGraphics_font, 0)
  19. enums_add (kGraphics_font, 0, HELVETICA, U"Helvetica")
  20. enums_add (kGraphics_font, 1, TIMES, U"Times")
  21. enums_add (kGraphics_font, 2, COURIER, U"Courier")
  22. enums_add (kGraphics_font, 3, PALATINO, U"Palatino")
  23. /*
  24. This enum can occur as a binary integer in picture files,
  25. so the numeric representations are fixed,
  26. and new values should only be added to the end.
  27. */
  28. enums_end (kGraphics_font, 3, TIMES)
  29. enums_begin (kGraphics_horizontalAlignment, 0)
  30. enums_add (kGraphics_horizontalAlignment, 0, LEFT, U"left")
  31. enums_add (kGraphics_horizontalAlignment, 1, CENTRE, U"centre")
  32. enums_alt (kGraphics_horizontalAlignment, CENTRE, U"center")
  33. enums_add (kGraphics_horizontalAlignment, 2, RIGHT, U"right")
  34. /*
  35. This enum can occur as a binary integer in picture files,
  36. so the numeric representations are fixed,
  37. and new values should only be added to the end.
  38. */
  39. enums_end (kGraphics_horizontalAlignment, 2, CENTRE)
  40. enums_begin (kGraphics_resolution, 0)
  41. enums_add (kGraphics_resolution, 0, DPI_90, U"90 dpi")
  42. enums_add (kGraphics_resolution, 1, DPI_96, U"96 dpi")
  43. enums_add (kGraphics_resolution, 2, DPI_100, U"100 dpi")
  44. enums_add (kGraphics_resolution, 3, DPI_180, U"180 dpi")
  45. enums_add (kGraphics_resolution, 4, DPI_200, U"200 dpi")
  46. enums_add (kGraphics_resolution, 5, DPI_300, U"300 dpi")
  47. enums_add (kGraphics_resolution, 6, DPI_360, U"360 dpi")
  48. enums_add (kGraphics_resolution, 7, DPI_600, U"600 dpi")
  49. enums_add (kGraphics_resolution, 8, DPI_720, U"720 dpi")
  50. enums_add (kGraphics_resolution, 9, DPI_900, U"900 dpi")
  51. enums_add (kGraphics_resolution, 10, DPI_1200, U"1200 dpi")
  52. enums_end (kGraphics_resolution, 10, DPI_100)
  53. enums_begin (kGraphics_colourScale, 0)
  54. enums_add (kGraphics_colourScale, 0, GREY, U"grey")
  55. enums_add (kGraphics_colourScale, 1, BLUE_TO_RED, U"blue to red")
  56. /*
  57. This enum can occur as a binary integer in picture files,
  58. so the numeric representations are fixed,
  59. and new values should only be added to the end.
  60. */
  61. enums_end (kGraphics_colourScale, 1, GREY)
  62. enums_begin (kGraphicsPostscript_spots, 0)
  63. enums_add (kGraphicsPostscript_spots, 0, FINE, U"finest")
  64. enums_add (kGraphicsPostscript_spots, 1, PHOTOCOPYABLE, U"photocopyable")
  65. enums_end (kGraphicsPostscript_spots, 1, FINE)
  66. enums_begin (kGraphicsPostscript_paperSize, 0)
  67. enums_add (kGraphicsPostscript_paperSize, 0, A4, U"A4")
  68. enums_add (kGraphicsPostscript_paperSize, 1, A3, U"A3")
  69. enums_add (kGraphicsPostscript_paperSize, 2, US_LETTER, U"US Letter")
  70. enums_end (kGraphicsPostscript_paperSize, 2, A4)
  71. enums_begin (kGraphicsPostscript_orientation, 0)
  72. enums_add (kGraphicsPostscript_orientation, 0, PORTRAIT, U"portrait")
  73. enums_add (kGraphicsPostscript_orientation, 1, LANDSCAPE, U"landscape")
  74. enums_end (kGraphicsPostscript_orientation, 1, PORTRAIT)
  75. enums_begin (kGraphicsPostscript_fontChoiceStrategy, 0)
  76. enums_add (kGraphicsPostscript_fontChoiceStrategy, 0, AUTOMATIC, U"automatic")
  77. enums_add (kGraphicsPostscript_fontChoiceStrategy, 1, LINOTYPE, U"Linotype")
  78. enums_add (kGraphicsPostscript_fontChoiceStrategy, 2, MONOTYPE, U"Monotype")
  79. enums_add (kGraphicsPostscript_fontChoiceStrategy, 3, PS_MONOTYPE, U"PS Monotype")
  80. enums_end (kGraphicsPostscript_fontChoiceStrategy, 3, AUTOMATIC)
  81. enums_begin (kGraphics_cjkFontStyle, 0)
  82. enums_add (kGraphics_cjkFontStyle, 0, CHINESE, U"Chinese")
  83. enums_add (kGraphics_cjkFontStyle, 1, JAPANESE, U"Japanese")
  84. enums_end (kGraphics_cjkFontStyle, 1, CHINESE)
  85. /* End of file Graphics_enums.h */