/*
- * "$Id: mark.c,v 1.24 2001/01/22 15:03:30 mike Exp $"
+ * "$Id: mark.c,v 1.24.2.1 2001/04/11 00:24:11 mike Exp $"
*
* Option marking routines for the Common UNIX Printing System (CUPS).
*
* ppdFindOption() - Return a pointer to the specified option.
* ppdIsMarked() - Check to see if an option is marked...
* ppdMarkDefaults() - Mark all default options in the PPD file.
+ * ppdMarkNumeric() - Mark a numeric option.
* ppdMarkOption() - Mark an option in a PPD file.
* ppd_defaults() - Set the defaults for this group and all sub-groups.
*/
}
+/*
+ * 'ppdMarkNumeric()' - Mark a numeric option.
+ */
+
+int /* O - 0 or number of comflicts */
+ppdMarkNumeric(ppd_file_t *ppd, /* I - PPD file */
+ const char *keyword, /* I - Option name */
+ int num_values, /* I - Number of values */
+ float *values) /* I - Values */
+{
+ return (ppdConflicts(ppd));
+}
+
+
/*
* 'ppdMarkOption()' - Mark an option in a PPD file.
*
/*
- * End of "$Id: mark.c,v 1.24 2001/01/22 15:03:30 mike Exp $".
+ * End of "$Id: mark.c,v 1.24.2.1 2001/04/11 00:24:11 mike Exp $".
*/
/*
- * "$Id: ppd.c,v 1.51 2001/02/15 13:34:15 mike Exp $"
+ * "$Id: ppd.c,v 1.51.2.1 2001/04/11 00:24:11 mike Exp $"
*
* PPD file routines for the Common UNIX Printing System (CUPS).
*
ppd->modelname = string;
string = NULL; /* Don't free this string below */
}
+ else if (strcmp(keyword, "PCFileName") == 0)
+ {
+ ppd->pcfilename = string;
+ string = NULL; /* Don't free this string below */
+ }
else if (strcmp(keyword, "NickName") == 0)
{
ppd->nickname = string;
/*
- * End of "$Id: ppd.c,v 1.51 2001/02/15 13:34:15 mike Exp $".
+ * End of "$Id: ppd.c,v 1.51.2.1 2001/04/11 00:24:11 mike Exp $".
*/
/*
- * "$Id: ppd.h,v 1.24 2001/03/02 13:42:20 mike Exp $"
+ * "$Id: ppd.h,v 1.24.2.1 2001/04/11 00:24:11 mike Exp $"
*
* PostScript Printer Description definitions for the Common UNIX Printing
* System (CUPS).
{
PPD_UI_BOOLEAN, /* True or False option */
PPD_UI_PICKONE, /* Pick one from a list */
- PPD_UI_PICKMANY /* Pick zero or more from a list */
+ PPD_UI_PICKMANY, /* Pick zero or more from a list */
+ PPD_UI_CUPS_NUMBER, /* Specify a linear number */
+ PPD_UI_CUPS_GAMMA, /* Specify a gamma number */
+ PPD_UI_CUPS_CURVE /* Specify a gamma/density LUT */
} ppd_ui_t;
typedef enum /**** Order dependency sections ****/
float order; /* Order number */
int num_choices; /* Number of option choices */
ppd_choice_t *choices; /* Option choices */
+ const char *command; /* Command for numeric options */
+ int num_values; /* Number of numeric values */
+ float *values, /* Current value(s) */
+ lower, /* Lower bounds for numeric value */
+ upper, /* Upper bounds for numeric value */
+ precision; /* Precision of values */
} ppd_option_t;
typedef struct ppd_group_str /**** Groups ****/
*jcl_end, /* End JCL commands */
*lang_encoding, /* Language encoding */
*lang_version, /* Language version (English, Spanish, etc.) */
+ *pcfilename, /* PC filename */
*modelname, /* Model name (general) */
*ttrasterizer, /* Truetype rasterizer */
*manufacturer, /* Manufacturer name */
extern void ppdMarkDefaults(ppd_file_t *ppd);
extern int ppdMarkOption(ppd_file_t *ppd, const char *keyword,
const char *option);
+extern int ppdMarkNumeric(ppd_file_t *ppd, const char *keyword,
+ int num_values, float *values);
extern ppd_choice_t *ppdFindChoice(ppd_option_t *o, const char *option);
extern ppd_choice_t *ppdFindMarkedChoice(ppd_file_t *ppd, const char *keyword);
extern ppd_option_t *ppdFindOption(ppd_file_t *ppd, const char *keyword);
#endif /* !_CUPS_PPD_H_ */
/*
- * End of "$Id: ppd.h,v 1.24 2001/03/02 13:42:20 mike Exp $".
+ * End of "$Id: ppd.h,v 1.24.2.1 2001/04/11 00:24:11 mike Exp $".
*/
/*
- * "$Id: printers.c,v 1.93.2.1 2001/04/02 19:51:50 mike Exp $"
+ * "$Id: printers.c,v 1.93.2.2 2001/04/11 00:24:14 mike Exp $"
*
* Printer routines for the Common UNIX Printing System (CUPS).
*
ipp_finish_t finishings[5];
const char *multiple_document_handling[] =
{
- "single-document",
"separate-documents-uncollated-copies",
- "separate-documents-collated-copies",
- "single-document-new-sheet"
+ "separate-documents-collated-copies"
};
#ifdef __sgi
FILE *fp; /* Interface script file */
/*
- * End of "$Id: printers.c,v 1.93.2.1 2001/04/02 19:51:50 mike Exp $".
+ * End of "$Id: printers.c,v 1.93.2.2 2001/04/11 00:24:14 mike Exp $".
*/