1/*---------------------------------------------------------------------------*
2 |              PDFlib - A library for generating PDF on the fly             |
3 +---------------------------------------------------------------------------+
4 | Copyright (c) 1997-2004 Thomas Merz and PDFlib GmbH. All rights reserved. |
5 +---------------------------------------------------------------------------+
6 |                                                                           |
7 |    This software is subject to the PDFlib license. It is NOT in the       |
8 |    public domain. Extended versions and commercial licenses are           |
9 |    available, please check http://www.pdflib.com.                         |
10 |                                                                           |
11 *---------------------------------------------------------------------------*/
12
13/* $Id: p_keyconn.h 14574 2005-10-29 16:27:43Z bonefish $
14 *
15 * PDFlib shared keys connection lists
16 *
17 */
18
19#ifndef P_KEYCONN_H
20#define P_KEYCONN_H
21
22#if defined(P_IMAGE_C) || defined(P_XGSTATE_C) || defined(P_PARAMS_C)
23static const pdc_keyconn gs_renderingintents[] =
24{
25    {"Auto",                 AutoIntent},
26    {"AbsoluteColorimetric", AbsoluteColorimetric},
27    {"RelativeColorimetric", RelativeColorimetric},
28    {"Saturation",           Saturation},
29    {"Perceptual",           Perceptual},
30    {NULL, 0}
31};
32#endif /* P_IMAGE_C || P_XGSTATE_C || P_PARAMS_C */
33
34#if defined(P_XGSTATE_C)
35static const pdc_keyconn gs_blendmodes[] =
36{
37    {"Normal",          BM_Normal},
38    {"Multiply",        BM_Multiply},
39    {"Screen",          BM_Screen},
40    {"Overlay",         BM_Overlay},
41    {"Darken",          BM_Darken},
42    {"Lighten",         BM_Lighten},
43    {"ColorDodge",      BM_ColorDodge},
44    {"ColorBurn",       BM_ColorBurn},
45    {"HardLight",       BM_HardLight},
46    {"SoftLight",       BM_SoftLight},
47    {"Difference",      BM_Difference},
48    {"Exclusion",       BM_Exclusion},
49    {"Hue",             BM_Hue},
50    {"Saturation",      BM_Saturation},
51    {"Color",           BM_Color},
52    {"Luminosity",      BM_Luminosity},
53    {NULL, 0}
54};
55#endif /* P_XGSTATE_C */
56
57#if defined(P_PDI_C) || defined(P_PARAMS_C)
58static const pdc_keyconn pdf_usebox_keylist[] =
59{
60    {"art",   use_art},
61    {"bleed", use_bleed},
62    {"crop",  use_crop},
63    {"media", use_media},
64    {"trim",  use_trim},
65    {NULL, 0}
66};
67#endif /* P_PDI_C || P_PARAMS_C */
68
69#if defined(P_TEXT_C) || defined(P_PARAMS_C) || defined(P_BLOCK_C)
70static const pdc_keyconn pdf_textformat_keylist[] =
71{
72    {"auto",    pdc_auto},
73    {"auto2",   pdc_auto2},
74    {"bytes",   pdc_bytes},
75    {"bytes2",  pdc_bytes2},
76    {"utf8",    pdc_utf8},
77    {"utf16",   pdc_utf16},
78    {"utf16be", pdc_utf16be},
79    {"utf16le", pdc_utf16le},
80    {NULL, 0}
81};
82#endif /* P_TEXT_C || P_PARAMS_C || P_BLOCK_C */
83
84#if defined(P_TEXT_C) || defined(P_IMAGE_C) || defined(P_BLOCK_C)
85static const pdc_keyconn pdf_orientate_keylist[] =
86{
87    {"north",   0},
88    {"west",   90},
89    {"south", 180},
90    {"east",  270},
91    {NULL, 0}
92};
93#endif /* P_TEXT_C || P_IMAGE_C || P_BLOCK_C */
94
95#if defined(P_TEXT_C) || defined(P_IMAGE_C) || defined(P_BLOCK_C)
96static const pdc_keyconn pdf_fitmethod_keylist[] =
97{
98    {"nofit",       pdc_nofit},
99    {"clip",        pdc_clip},
100    {"slice",       pdc_slice},
101    {"meet",        pdc_meet},
102    {"entire",      pdc_entire},
103    {"auto",        pdc_tauto},
104    {NULL, 0}
105};
106#endif /* P_TEXT_C || P_IMAGE_C || P_BLOCK_C */
107
108#if defined(P_FONT_C) || defined(P_HYPER_C) || defined(P_BLOCK_C)
109static const pdc_keyconn pdf_fontstyle_keylist[] =
110{
111    {"normal",     pdc_Normal},
112    {"bold",       pdc_Bold },
113    {"italic",     pdc_Italic},
114    {"bolditalic", pdc_BoldItalic},
115    {NULL, 0}
116};
117#endif /* P_FONT_C || P_HYPER_C || P_BLOCK_C */
118
119#if defined(P_COLOR_C) || defined(P_BLOCK_C)
120static const pdc_keyconn pdf_colorspace_keylist[] =
121{
122    {"none",         NoColor},
123    {"gray",         DeviceGray},
124    {"rgb",          DeviceRGB },
125    {"cmyk",         DeviceCMYK},
126    {"spotname",     Separation},
127    {"spot",         Separation},
128    {"pattern",      PatternCS},
129    {"iccbasedgray", ICCBased},
130    {"iccbasedrgb",  ICCBased},
131    {"iccbasedcmyk", ICCBased},
132    {"lab",          Lab},
133    {NULL, 0}
134};
135#endif /* P_COLOR_C || P_BLOCK_C */
136
137#if defined(P_IMAGE_C) || defined(P_BLOCK_C)
138typedef enum
139{
140    dpi_none = -999999,
141    dpi_internal = 0
142}
143pdf_dpi_states;
144
145static const pdc_keyconn pdf_dpi_keylist[] =
146{
147    {"none",     dpi_none},
148    {"internal", dpi_internal},
149    {NULL, 0}
150};
151#endif /* P_IMAGE_C || P_BLOCK_C */
152
153#endif  /* P_KEYCONN_H */
154