00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #ifndef GIMP_PRINT_INTERNAL_PRINTERS_H
00034 #define GIMP_PRINT_INTERNAL_PRINTERS_H
00035
00036 #ifdef __cplusplus
00037 extern "C" {
00038 #endif
00039
00040 typedef struct
00041 {
00042 stp_parameter_list_t (*list_parameters)(stp_const_vars_t v);
00043 void (*parameters)(stp_const_vars_t v, const char *name,
00044 stp_parameter_t *);
00045 void (*media_size)(stp_const_vars_t v, int *width, int *height);
00046 void (*imageable_area)(stp_const_vars_t v,
00047 int *left, int *right, int *bottom, int *top);
00048 void (*limit)(stp_const_vars_t v, int *max_width, int *max_height,
00049 int *min_width, int *min_height);
00050 int (*print)(stp_const_vars_t v, stp_image_t *image);
00051 void (*describe_resolution)(stp_const_vars_t v, int *x, int *y);
00052 const char *(*describe_output)(stp_const_vars_t v);
00053 int (*verify)(stp_vars_t v);
00054 int (*start_job)(stp_const_vars_t v, stp_image_t *image);
00055 int (*end_job)(stp_const_vars_t v, stp_image_t *image);
00056 } stpi_printfuncs_t;
00057
00058 typedef struct stpi_internal_family
00059 {
00060 const stpi_printfuncs_t *printfuncs;
00061 stpi_list_t *printer_list;
00062 } stpi_internal_family_t;
00063
00064 extern int stpi_get_model_id(stp_const_vars_t v);
00065
00066 extern int stpi_verify_printer_params(stp_vars_t);
00067
00068 extern int stpi_family_register(stpi_list_t *family);
00069 extern int stpi_family_unregister(stpi_list_t *family);
00070 extern void stpi_initialize_printer_defaults(void);
00071
00072 extern stp_parameter_list_t stpi_printer_list_parameters(stp_const_vars_t v);
00073
00074 extern void
00075 stpi_printer_describe_parameter(stp_const_vars_t v, const char *name,
00076 stp_parameter_t *description);
00077
00078 const char *stpi_describe_output(stp_const_vars_t v);
00079
00080 #ifdef __cplusplus
00081 }
00082 #endif
00083
00084 #endif
00085
00086
00087