g_param2.c 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. /* This file is part of the GNU plotutils package. Copyright (C) 1995,
  2. 1996, 1997, 1998, 1999, 2000, 2005, 2008, Free Software Foundation, Inc.
  3. The GNU plotutils package is free software. You may redistribute it
  4. and/or modify it under the terms of the GNU General Public License as
  5. published by the Free Software foundation; either version 2, or (at your
  6. option) any later version.
  7. The GNU plotutils package is distributed in the hope that it will be
  8. useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. General Public License for more details.
  11. You should have received a copy of the GNU General Public License along
  12. with the GNU plotutils package; see the file COPYING. If not, write to
  13. the Free Software Foundation, Inc., 51 Franklin St., Fifth Floor,
  14. Boston, MA 02110-1301, USA. */
  15. /* This database lists the Plotter parameters parameters (i.e. device
  16. driver parameters) that are recognized, and their default values.
  17. Whether or not a parameter is a string is listed too. */
  18. /* The `default_value' field should be specified for each parameter that is
  19. string-valued (i.e. (char *)-valued). [Exception: HPGL_PENS is set to
  20. NULL, because the default behavior is determined by the value of
  21. HPGL_VERSION. See h_defplot.c.]. */
  22. /* Beside each parameter there is a comment indicating which type(s) of
  23. Plotter the parameter is relevant to, and which datatype its value
  24. should be, if it is not a (char *). */
  25. #include "sys-defines.h"
  26. #include "extern.h"
  27. const struct plParamRecord _known_params[NUM_PLOTTER_PARAMETERS] =
  28. {
  29. /* String-valued (i.e. really (char *)-valued */
  30. {"AI_VERSION", (char *)"5", true}, /* ai [obsolescent; undocumented] */
  31. {"BG_COLOR", (char *)"white", true}, /* X, pnm, gif, cgm */
  32. {"BITMAPSIZE", (char *)"570x570", true}, /* X, pnm, gif */
  33. {"CGM_ENCODING", (char *)"binary", true}, /* cgm */
  34. {"CGM_MAX_VERSION", (char *)"4", true}, /* cgm */
  35. {"DISPLAY", (char *)"", true}, /* X */
  36. {"EMULATE_COLOR", (char *)"no", true}, /* all except meta */
  37. {"GIF_ANIMATION", (char *)"yes", true}, /* gif */
  38. {"GIF_DELAY", (char *)"0", true}, /* gif */
  39. {"GIF_ITERATIONS", (char *)"0", true}, /* gif */
  40. {"HPGL_ASSIGN_COLORS", (char *)"no", true}, /* hpgl */
  41. {"HPGL_OPAQUE_MODE", (char *)"yes", true}, /* hpgl */
  42. {"HPGL_PENS", (char *)NULL, true}, /* hpgl */
  43. {"HPGL_ROTATE", (char *)"no", true}, /* hpgl */
  44. {"HPGL_VERSION", (char *)"2", true}, /* hpgl */
  45. {"INTERLACE", (char *)"no", true}, /* gif */
  46. {"MAX_LINE_LENGTH", (char *)PL_MAX_UNFILLED_PATH_LENGTH_STRING, true}, /* all but tek and meta */
  47. {"META_PORTABLE", (char *)"no", true}, /* meta */
  48. {"PAGESIZE", (char *)"letter", true}, /* hpgl, pcl, fig, cgm, ps, ai */
  49. {"PCL_ASSIGN_COLORS", (char *)"no", true}, /* pcl */
  50. {"PCL_BEZIERS", (char *)"yes", true}, /* pcl */
  51. {"PNM_PORTABLE", (char *)"no", true}, /* pnm */
  52. {"ROTATION", (char *)"no", true}, /* tek, hpgl, pcl, fig, ps, ai, X, XDrawable */
  53. {"TERM", (char *)"tek", true}, /* tek only! */
  54. {"TRANSPARENT_COLOR", (char *)"none", true}, /* gif */
  55. {"USE_DOUBLE_BUFFERING", (char *)"no", true}, /* X, XDrawable */
  56. {"VANISH_ON_DELETE", (char *)"no", true}, /* X */
  57. {"X_AUTO_FLUSH", (char *)"yes", true}, /* X */
  58. /* Pointer-valued (i.e. non-string, i.e. non-(char *)-valued) */
  59. {"XDRAWABLE_COLORMAP", NULL, false}, /* XDrawable, is a Colormap* */
  60. {"XDRAWABLE_DISPLAY", NULL, false}, /* XDrawable, is a Display* */
  61. {"XDRAWABLE_DRAWABLE1", NULL, false}, /* XDrawable, is a Drawable* */
  62. {"XDRAWABLE_DRAWABLE2", NULL, false}, /* XDrawable, is a Drawable* */
  63. {"XDRAWABLE_VISUAL", NULL, false}, /* XDrawable, is a Visual* */
  64. };