Data Structures | |
struct | stp_double_bound_t |
double_bound (range) parameter. More... | |
struct | stp_int_bound_t |
int_bound (range) parameter. More... | |
struct | stp_param_string_t |
String parameter. More... | |
struct | stp_parameter_t |
Parameter description. More... | |
struct | stp_raw_t |
Raw parameter. More... | |
Typedefs | |
typedef stp_vars | stp_vars_t |
The vars opaque data type. | |
typedef void * | stp_string_list_t |
The string_list opaque data type. | |
typedef const void * | stp_const_string_list_t |
The contant string_list opaque data type. | |
typedef void * | stp_parameter_list_t |
The parameter_list opaque data type. | |
typedef const void * | stp_const_parameter_list_t |
The constant parameter_list opaque data type. | |
typedef void(* | stp_outfunc_t )(void *data, const char *buffer, size_t bytes) |
Output function supplied by the calling application. | |
typedef void *(* | stp_copy_data_func_t )(void *) |
typedef void(* | stp_free_data_func_t )(void *) |
typedef stp_compdata | compdata_t |
Enumerations | |
enum | stp_parameter_type_t { STP_PARAMETER_TYPE_STRING_LIST, STP_PARAMETER_TYPE_INT, STP_PARAMETER_TYPE_BOOLEAN, STP_PARAMETER_TYPE_DOUBLE, STP_PARAMETER_TYPE_CURVE, STP_PARAMETER_TYPE_FILE, STP_PARAMETER_TYPE_RAW, STP_PARAMETER_TYPE_ARRAY, STP_PARAMETER_TYPE_INVALID } |
Parameter types. More... | |
enum | stp_parameter_class_t { STP_PARAMETER_CLASS_FEATURE, STP_PARAMETER_CLASS_OUTPUT, STP_PARAMETER_CLASS_CORE, STP_PARAMETER_CLASS_INVALID } |
Parameter class. More... | |
enum | stp_parameter_level_t { STP_PARAMETER_LEVEL_BASIC, STP_PARAMETER_LEVEL_ADVANCED, STP_PARAMETER_LEVEL_ADVANCED1, STP_PARAMETER_LEVEL_ADVANCED2, STP_PARAMETER_LEVEL_ADVANCED3, STP_PARAMETER_LEVEL_ADVANCED4, STP_PARAMETER_LEVEL_INTERNAL, STP_PARAMETER_LEVEL_EXTERNAL, STP_PARAMETER_LEVEL_INVALID } |
Parameter level. More... | |
enum | stp_parameter_activity_t { STP_PARAMETER_INACTIVE, STP_PARAMETER_DEFAULTED, STP_PARAMETER_ACTIVE } |
Parameter activity. More... | |
enum | stp_parameter_verify_t { PARAMETER_BAD, PARAMETER_OK, PARAMETER_INACTIVE } |
Functions | |
stp_vars_t * | stp_vars_create (void) |
Create a new vars object. | |
void | stp_vars_copy (stp_vars_t *dest, const stp_vars_t *source) |
Copy a vars object. | |
stp_vars_t * | stp_vars_create_copy (const stp_vars_t *source) |
Copy and allocate a vars object. | |
void | stp_vars_destroy (stp_vars_t *v) |
Destroy a vars object. | |
void | stp_set_driver (stp_vars_t *v, const char *val) |
Set the name of the printer driver. | |
void | stp_set_driver_n (stp_vars_t *v, const char *val, int bytes) |
Set the name of the printer driver. | |
const char * | stp_get_driver (const stp_vars_t *v) |
Get the name of the printer driver. | |
void | stp_set_color_conversion (stp_vars_t *v, const char *val) |
Set the name of the color conversion routine, if not the default. | |
void | stp_set_color_conversion_n (stp_vars_t *v, const char *val, int bytes) |
Set the name of the color conversion routine, if not the default. | |
const char * | stp_get_color_conversion (const stp_vars_t *v) |
Get the name of the color conversion routine. | |
void | stp_set_left (stp_vars_t *v, int val) |
Set the left edge of the image. | |
int | stp_get_left (const stp_vars_t *v) |
Get the left edge of the image. | |
void | stp_set_top (stp_vars_t *v, int val) |
Set the top edge of the image. | |
int | stp_get_top (const stp_vars_t *v) |
Get the top edge of the image. | |
void | stp_set_width (stp_vars_t *v, int val) |
Set the width of the image. | |
int | stp_get_width (const stp_vars_t *v) |
Get the width edge of the image. | |
void | stp_set_height (stp_vars_t *v, int val) |
Set the height of the image. | |
int | stp_get_height (const stp_vars_t *v) |
Get the height of the image. | |
void | stp_set_page_width (stp_vars_t *v, int val) |
Set the page width. | |
int | stp_get_page_width (const stp_vars_t *v) |
Get the page width. | |
void | stp_set_page_height (stp_vars_t *v, int val) |
Set the page height. | |
int | stp_get_page_height (const stp_vars_t *v) |
Get the page height. | |
void | stp_set_outfunc (stp_vars_t *v, stp_outfunc_t val) |
Set the function used to print output information. | |
stp_outfunc_t | stp_get_outfunc (const stp_vars_t *v) |
Get the function used to print output information. | |
void | stp_set_errfunc (stp_vars_t *v, stp_outfunc_t val) |
Set the function used to print error and diagnostic information. | |
stp_outfunc_t | stp_get_errfunc (const stp_vars_t *v) |
Get the function used to print output information. | |
void | stp_set_outdata (stp_vars_t *v, void *val) |
Set the output data. | |
void * | stp_get_outdata (const stp_vars_t *v) |
Get the output data. | |
void | stp_set_errdata (stp_vars_t *v, void *val) |
Set the error data. | |
void * | stp_get_errdata (const stp_vars_t *v) |
Get the error data. | |
void | stp_merge_printvars (stp_vars_t *user, const stp_vars_t *print) |
Merge defaults for a printer with user-chosen settings. | |
stp_parameter_list_t | stp_get_parameter_list (const stp_vars_t *v) |
List the available parameters for the currently chosen settings. | |
size_t | stp_parameter_list_count (stp_const_parameter_list_t list) |
List the number of available parameters for the currently chosen settings. | |
const stp_parameter_t * | stp_parameter_find (stp_const_parameter_list_t list, const char *name) |
Find a parameter by its name. | |
const stp_parameter_t * | stp_parameter_list_param (stp_const_parameter_list_t list, size_t item) |
Find a parameter by its index number. | |
void | stp_parameter_list_destroy (stp_parameter_list_t list) |
Destroy a parameter_list. | |
stp_parameter_list_t | stp_parameter_list_create (void) |
Create a parameter_list. | |
void | stp_parameter_list_add_param (stp_parameter_list_t list, const stp_parameter_t *item) |
Add a parameter to a parameter_list. | |
stp_parameter_list_t | stp_parameter_list_copy (stp_const_parameter_list_t list) |
Copy and allocate a parameter_list. | |
void | stp_parameter_list_append (stp_parameter_list_t list, stp_const_parameter_list_t append) |
Append one parameter_list to another. | |
void | stp_describe_parameter (const stp_vars_t *v, const char *name, stp_parameter_t *description) |
Describe a parameter in detail. | |
void | stp_parameter_description_destroy (stp_parameter_t *description) |
Destroy a parameter description. | |
const stp_parameter_t * | stp_parameter_find_in_settings (const stp_vars_t *v, const char *name) |
Find a parameter by its name from a vars object. | |
void | stp_set_string_parameter (stp_vars_t *v, const char *parameter, const char *value) |
Set a string parameter. | |
void | stp_set_string_parameter_n (stp_vars_t *v, const char *parameter, const char *value, size_t bytes) |
Set a string parameter. | |
void | stp_set_file_parameter (stp_vars_t *v, const char *parameter, const char *value) |
Set a file parameter. | |
void | stp_set_file_parameter_n (stp_vars_t *v, const char *parameter, const char *value, size_t bytes) |
Set a file parameter. | |
void | stp_set_float_parameter (stp_vars_t *v, const char *parameter, double value) |
Set a float parameter. | |
void | stp_set_int_parameter (stp_vars_t *v, const char *parameter, int value) |
Set an integer parameter. | |
void | stp_set_boolean_parameter (stp_vars_t *v, const char *parameter, int value) |
Set a boolean parameter. | |
void | stp_set_curve_parameter (stp_vars_t *v, const char *parameter, const stp_curve_t *value) |
Set a curve parameter. | |
void | stp_set_array_parameter (stp_vars_t *v, const char *parameter, const stp_array_t *value) |
Set an array parameter. | |
void | stp_set_raw_parameter (stp_vars_t *v, const char *parameter, const void *value, size_t bytes) |
Set a raw parameter. | |
void | stp_scale_float_parameter (stp_vars_t *v, const char *parameter, double scale) |
Multiply the value of a float parameter by a scaling factor. | |
void | stp_set_default_string_parameter (stp_vars_t *v, const char *parameter, const char *value) |
Set a default string parameter. | |
void | stp_set_default_string_parameter_n (stp_vars_t *v, const char *parameter, const char *value, size_t bytes) |
Set a default string parameter. | |
void | stp_set_default_file_parameter (stp_vars_t *v, const char *parameter, const char *value) |
Set a default file parameter. | |
void | stp_set_default_file_parameter_n (stp_vars_t *v, const char *parameter, const char *value, size_t bytes) |
Set a default file parameter. | |
void | stp_set_default_float_parameter (stp_vars_t *v, const char *parameter, double value) |
Set a default float parameter. | |
void | stp_set_default_int_parameter (stp_vars_t *v, const char *parameter, int value) |
Set a default integer parameter. | |
void | stp_set_default_boolean_parameter (stp_vars_t *v, const char *parameter, int value) |
Set a default boolean parameter. | |
void | stp_set_default_curve_parameter (stp_vars_t *v, const char *parameter, const stp_curve_t *value) |
Set a default curve parameter. | |
void | stp_set_default_array_parameter (stp_vars_t *v, const char *parameter, const stp_array_t *value) |
Set a default array parameter. | |
void | stp_set_default_raw_parameter (stp_vars_t *v, const char *parameter, const void *value, size_t bytes) |
Set a default raw parameter. | |
const char * | stp_get_string_parameter (const stp_vars_t *v, const char *parameter) |
Get a string parameter. | |
const char * | stp_get_file_parameter (const stp_vars_t *v, const char *parameter) |
Get a file parameter. | |
double | stp_get_float_parameter (const stp_vars_t *v, const char *parameter) |
Get a float parameter. | |
int | stp_get_int_parameter (const stp_vars_t *v, const char *parameter) |
Get an integer parameter. | |
int | stp_get_boolean_parameter (const stp_vars_t *v, const char *parameter) |
Get a boolean parameter. | |
const stp_curve_t * | stp_get_curve_parameter (const stp_vars_t *v, const char *parameter) |
Get a curve parameter. | |
const stp_array_t * | stp_get_array_parameter (const stp_vars_t *v, const char *parameter) |
Get an array parameter. | |
const stp_raw_t * | stp_get_raw_parameter (const stp_vars_t *v, const char *parameter) |
Get a raw parameter. | |
void | stp_clear_string_parameter (stp_vars_t *v, const char *parameter) |
Clear a string parameter. | |
void | stp_clear_file_parameter (stp_vars_t *v, const char *parameter) |
Clear a file parameter. | |
void | stp_clear_float_parameter (stp_vars_t *v, const char *parameter) |
Clear (remove) a float parameter. | |
void | stp_clear_int_parameter (stp_vars_t *v, const char *parameter) |
Clear (remove) an integer parameter. | |
void | stp_clear_boolean_parameter (stp_vars_t *v, const char *parameter) |
Clear (remove) a boolean parameter. | |
void | stp_clear_curve_parameter (stp_vars_t *v, const char *parameter) |
Clear a curve parameter. | |
void | stp_clear_array_parameter (stp_vars_t *v, const char *parameter) |
Clear an array parameter. | |
void | stp_clear_raw_parameter (stp_vars_t *v, const char *parameter) |
Clear a raw parameter. | |
void | stp_set_string_parameter_active (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Set the activity of a string parameter. | |
void | stp_set_file_parameter_active (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Set the activity of a file parameter. | |
void | stp_set_float_parameter_active (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Set the activity of a float parameter. | |
void | stp_set_int_parameter_active (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Set the activity of an integer parameter. | |
void | stp_set_boolean_parameter_active (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Set the activity of a boolean parameter. | |
void | stp_set_curve_parameter_active (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Set the activity of a curveparameter. | |
void | stp_set_array_parameter_active (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Set the activity of an array parameter. | |
void | stp_set_raw_parameter_active (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Set the activity of a raw parameter. | |
int | stp_check_string_parameter (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Check if a string parameter is set. | |
int | stp_check_file_parameter (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Check if a file parameter is set. | |
int | stp_check_float_parameter (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Check if a float parameter is set. | |
int | stp_check_int_parameter (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Check if an integer parameter is set. | |
int | stp_check_boolean_parameter (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Check if a boolean parameter is set. | |
int | stp_check_curve_parameter (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Check if a curve parameter is set. | |
int | stp_check_array_parameter (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Check if an array parameter is set. | |
int | stp_check_raw_parameter (const stp_vars_t *v, const char *parameter, stp_parameter_activity_t active) |
Check if a raw parameter is set. | |
stp_parameter_activity_t | stp_get_string_parameter_active (const stp_vars_t *v, const char *parameter) |
Get the activity status of a string parameter. | |
stp_parameter_activity_t | stp_get_file_parameter_active (const stp_vars_t *v, const char *parameter) |
Get the activity status of a file parameter. | |
stp_parameter_activity_t | stp_get_float_parameter_active (const stp_vars_t *v, const char *parameter) |
Get the activity status of a float parameter. | |
stp_parameter_activity_t | stp_get_int_parameter_active (const stp_vars_t *v, const char *parameter) |
Get the activity status of an integer parameter. | |
stp_parameter_activity_t | stp_get_boolean_parameter_active (const stp_vars_t *v, const char *parameter) |
Get the activity status of a boolean parameter. | |
stp_parameter_activity_t | stp_get_curve_parameter_active (const stp_vars_t *v, const char *parameter) |
Get the activity status of a curve parameter. | |
stp_parameter_activity_t | stp_get_array_parameter_active (const stp_vars_t *v, const char *parameter) |
Get the activity status of an array parameter. | |
stp_parameter_activity_t | stp_get_raw_parameter_active (const stp_vars_t *v, const char *parameter) |
Get the activity status of a raw parameter. | |
void | stp_get_media_size (const stp_vars_t *v, int *width, int *height) |
Get the media (paper) size. | |
void | stp_get_imageable_area (const stp_vars_t *v, int *left, int *right, int *bottom, int *top) |
Get the imagable area of the page. | |
void | stp_get_size_limit (const stp_vars_t *v, int *max_width, int *max_height, int *min_width, int *min_height) |
Get the media size limits. | |
void | stp_describe_resolution (const stp_vars_t *v, int *x, int *y) |
Retrieve the printing resolution of the selected resolution. | |
int | stp_verify (stp_vars_t *v) |
Verify parameters. | |
const stp_vars_t * | stp_default_settings (void) |
Get default global settings. | |
void | stp_allocate_component_data (stp_vars_t *v, const char *name, stp_copy_data_func_t copyfunc, stp_free_data_func_t freefunc, void *data) |
void | stp_destroy_component_data (stp_vars_t *v, const char *name) |
void * | stp_get_component_data (const stp_vars_t *v, const char *name) |
stp_parameter_verify_t | stp_verify_parameter (const stp_vars_t *v, const char *parameter, int quiet) |
int | stp_get_verified (const stp_vars_t *v) |
void | stp_set_verified (stp_vars_t *v, int value) |
void | stp_copy_options (stp_vars_t *vd, const stp_vars_t *vs) |
void | stp_fill_parameter_settings (stp_parameter_t *desc, const stp_parameter_t *param) |
Most of these job options are expressed as parameters which vary according to the model and other options selected.
The representation of printer settings has changed dramatically from 4.2. All (well most, anyway) settings outside of basics such as the printer model and sizing settings are now typed parameters.
|
|
|
The constant parameter_list opaque data type.
Definition at line 199 of file vars.h. Referenced by stp_parameter_find(), stp_parameter_list_append(), stp_parameter_list_copy(), stp_parameter_list_count(), and stp_parameter_list_param(). |
|
The contant string_list opaque data type.
Definition at line 135 of file vars.h. Referenced by stp_string_list_count(), stp_string_list_create_copy(), stp_string_list_is_present(), and stp_string_list_param(). |
|
Definition at line 1261 of file vars.h. Referenced by stp_allocate_component_data(). |
|
Definition at line 1262 of file vars.h. Referenced by stp_allocate_component_data(). |
|
Output function supplied by the calling application. There are two output functions supplied by the caller, one to send output data and one to report errors.
Definition at line 210 of file vars.h. Referenced by stp_verify_printer_params(). |
|
The parameter_list opaque data type.
Definition at line 197 of file vars.h. Referenced by canon_list_parameters(), escp2_list_parameters(), lexmark_list_parameters(), olympus_list_parameters(), pcl_list_parameters(), print_debug_params(), ps_list_parameters(), raw_list_parameters(), set_printer_defaults(), stp_dither_list_parameters(), stp_get_parameter_list(), stp_list_generic_parameters(), stp_merge_printvars(), stp_parameter_find_in_settings(), stp_parameter_list_add_param(), stp_parameter_list_append(), stp_parameter_list_destroy(), stp_prune_inactive_options(), and stp_verify_printer_params(). |
|
The string_list opaque data type.
Definition at line 133 of file vars.h. Referenced by stp_string_list_add_string(), stp_string_list_create_from_params(), stp_string_list_destroy(), and verify_string_param(). |
|
The vars opaque data type.
|
|
Parameter activity. Whether a parameter is currently active (i. e. whether its value should be used by the driver or not). All parameters default to being active unless explicitly "turned off".
Definition at line 112 of file vars.h. Referenced by check_parameter_generic(), and set_parameter_active_generic(). |
|
Parameter class. What kind of setting this is, for the purpose of user interface representation. |
|
|
Parameter types. The following types are permitted for a printer setting. Not all are currently implemented.
Definition at line 63 of file vars.h. Referenced by check_parameter_generic(), get_parameter_active_generic(), and set_parameter_active_generic(). |
|
Definition at line 1264 of file vars.h. Referenced by verify_curve_param(), and verify_string_param(). |
|
Definition at line 229 of file print-vars.c. References check_vars(), stp_compdata::copyfunc, stp_compdata::data, stp_compdata::freefunc, stp_vars::internal_data, stp_compdata::name, stp_copy_data_func_t, stp_free_data_func_t, stp_list_get_item_by_name(), stp_list_item_create(), stp_list_item_destroy(), stp_malloc(), and stp_strdup(). Referenced by canon_do_print(), escp2_do_print(), lexmark_do_print(), pcl_do_print(), stp_channel_add(), stp_channel_initialize(), stp_dither_init(), stp_initialize_weave(), and stpi_color_traditional_init(). |
|
Check if an array parameter is set.
Referenced by stp_dither_init(). |
|
Check if a boolean parameter is set.
Referenced by adjust_density_and_ink_type(), print_debug_params(), and stpi_compute_lut(). |
|
Check if a curve parameter is set.
Referenced by adjust_print_quality(), canon_do_print(), generic_rgb_to_kcmy(), initialize_color_curves(), initialize_gcr_curve(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), print_debug_params(), stpi_compute_lut(), and verify_curve_param(). |
|
Check if a file parameter is set.
|
|
Check if a float parameter is set.
Referenced by adjust_density_and_ink_type(), adjust_print_quality(), canon_do_print(), compute_gcr_curve(), escp2_base_res(), escp2_density(), get_double_param(), initialize_channels(), initialize_color_curves(), lexmark_do_print(), pcl_do_print(), print_debug_params(), setup_channel(), stp_merge_printvars(), stp_scale_float_parameter(), stpi_compute_lut(), and verify_double_param(). |
|
Check if an integer parameter is set.
Referenced by adjust_density_and_ink_type(), escp2_bits(), escp2_ink_type(), print_debug_params(), stp_dither_init(), and verify_int_param(). |
|
Check if a raw parameter is set.
|
|
Check if a string parameter is set.
Referenced by escp2_find_resolution(), escp2_inklist(), escp2_parameters(), escp2_print_page(), get_default_inktype(), pcl_parameters(), print_debug_params(), stp_dither_describe_parameter(), stpi_color_traditional_describe_parameter(), stpi_set_dither_function(), using_automatic_settings(), and verify_string_param(). |
|
Clear an array parameter. The parameter is set to NULL.
Definition at line 783 of file print-vars.c. References stp_set_array_parameter(). |
|
Clear (remove) a boolean parameter.
Definition at line 936 of file print-vars.c. References stp_vars::params, stp_list_get_item_by_name(), stp_list_item_destroy(), STP_PARAMETER_TYPE_BOOLEAN, and stp_set_verified(). |
|
Clear a curve parameter. The parameter is set to NULL.
Definition at line 709 of file print-vars.c. References stp_set_curve_parameter(). |
|
Clear a file parameter. The parameter is set to NULL.
Definition at line 634 of file print-vars.c. References stp_set_file_parameter(). |
|
Clear (remove) a float parameter.
Definition at line 1020 of file print-vars.c. References stp_vars::params, stp_list_get_item_by_name(), stp_list_item_destroy(), STP_PARAMETER_TYPE_DOUBLE, and stp_set_verified(). |
|
Clear (remove) an integer parameter.
Definition at line 846 of file print-vars.c. References stp_vars::params, stp_list_get_item_by_name(), stp_list_item_destroy(), STP_PARAMETER_TYPE_INT, and stp_set_verified(). |
|
Clear a raw parameter. The parameter is set to NULL.
Definition at line 567 of file print-vars.c. References stp_set_raw_parameter(). |
|
Clear a string parameter. The parameter is set to NULL.
Definition at line 527 of file print-vars.c. References stp_set_string_parameter(). |
|
|
|
Get default global settings. The main use of this is to provide a usable stp_vars_t for purposes of parameter inquiry in the absence of a specific printer. This is currently used in a variety of places to get information on the standard color parameters without querying a particular printer.
Definition at line 309 of file print-vars.c. References initialize_standard_vars(). |
|
Describe a parameter in detail. All of the parameter fields will be populated.
Definition at line 1282 of file print-vars.c. References stp_parameter_t::bounds, stp_parameter_t::deflt, stp_parameter_t::p_type, stp_color_describe_parameter(), stp_dither_describe_parameter(), STP_PARAMETER_TYPE_INVALID, stp_printer_describe_parameter(), and stpi_describe_generic_parameter(). Referenced by set_printer_defaults(), stp_get_boolean_parameter(), stp_get_float_parameter(), stp_get_int_parameter(), stp_merge_printvars(), stp_scale_float_parameter(), stp_verify_parameter(), and stpi_color_traditional_describe_parameter(). |
|
Retrieve the printing resolution of the selected resolution. If the resolution is invalid, -1 will be returned in both x and y.
Definition at line 365 of file printers.c. References stp_printfuncs_t::describe_resolution, stp_get_printer(), and stpi_get_printfuncs(). Referenced by lexmark_do_print(), and olympus_do_print(). |
|
Definition at line 250 of file print-vars.c. References check_vars(), stp_vars::internal_data, stp_list_get_item_by_name(), and stp_list_item_destroy(). |
|
Definition at line 1170 of file print-vars.c. References stp_parameter_t::category, stp_parameter_t::channel, stp_parameter_t::help, stp_parameter_t::is_active, stp_parameter_t::is_mandatory, stp_parameter_t::name, stp_parameter_t::p_class, stp_parameter_t::p_level, stp_parameter_t::p_type, stp_parameter_t::read_only, stp_parameter_t::text, and stp_parameter_t::verify_this_parameter. Referenced by canon_parameters(), escp2_parameters(), lexmark_parameters(), olympus_parameters(), pcl_parameters(), ps_parameters_internal(), raw_parameters(), stp_dither_describe_parameter(), stpi_color_traditional_describe_parameter(), and stpi_describe_generic_parameter(). |
|
Get an array parameter.
Definition at line 789 of file print-vars.c. References stp_vars::params, stp_list_get_item_by_name(), stp_list_item_get_data(), STP_PARAMETER_TYPE_ARRAY, and value_t::value. Referenced by stp_dither_init(). |
|
Get the activity status of an array parameter.
|
|
Get a boolean parameter.
Definition at line 946 of file print-vars.c. References stp_parameter_t::deflt, stp_parameter_t::p_type, stp_vars::params, stp_describe_parameter(), stp_list_get_item_by_name(), stp_list_item_get_data(), stp_parameter_description_destroy(), STP_PARAMETER_TYPE_BOOLEAN, and value_t::value. Referenced by adjust_density_and_ink_type(), escp2_set_form_factor(), escp2_set_remote_sequence(), internal_imageable_area(), olympus_imageable_area(), and stpi_compute_lut(). |
|
Get the activity status of a boolean parameter.
|
|
Get the name of the color conversion routine.
Referenced by stp_color_describe_parameter(), stp_color_get_row(), stp_color_init(), stp_color_list_parameters(), and stp_vars_copy(). |
|
Definition at line 260 of file print-vars.c. References check_vars(), stp_vars::internal_data, stp_list_get_item_by_name(), and stp_list_item_get_data(). Referenced by canon_printfunc(), canon_write_line(), compute_gcr_curve(), finalize_row(), flush_pass(), generic_cmy_to_kcmy(), generic_kcmy_to_cmykrb(), get_channel(), get_privdata(), initialize_channel(), initialize_channels(), initialize_gcr_curve(), input_needs_splitting(), limit_ink(), pcl_mode2(), pcl_printfunc(), postinit_matrix(), preinit_matrix(), raw_cmy_to_kcmy(), raw_kcmy_to_cmykrb(), setup_channel(), stp_channel_add(), stp_channel_convert(), stp_channel_get_input(), stp_channel_get_output(), stp_channel_initialize(), stp_channel_reset(), stp_channel_reset_channel(), stp_channel_set_black_channel(), stp_channel_set_ink_limit(), stp_dither_add_channel(), stp_dither_get_channel(), stp_dither_get_first_position(), stp_dither_get_last_position(), stp_dither_internal(), stp_dither_set_adaptive_limit(), stp_dither_set_ink_spread(), stp_dither_set_inks_full(), stp_dither_set_iterated_matrix(), stp_dither_set_matrix(), stp_dither_set_matrix_from_dither_array(), stp_dither_set_randomizer(), stp_dither_set_transition(), stp_fill_tiff(), stp_fill_uncompressed(), stp_get_lineactive_by_pass(), stp_get_linebases_by_pass(), stp_get_linecount_by_pass(), stp_get_lineoffsets_by_pass(), stp_get_pass_by_pass(), stp_weave_parameters_by_row(), stp_write_weave(), stpi_color_convert_raw(), stpi_color_convert_to_cmykrb(), stpi_color_convert_to_color(), stpi_color_convert_to_gray(), stpi_color_convert_to_kcmy(), stpi_color_traditional_get_row(), stpi_compute_lut(), stpi_dither_ed(), stpi_dither_et(), stpi_dither_finalize(), stpi_dither_finalize_ranges(), stpi_dither_ordered(), stpi_dither_set_ranges(), stpi_dither_translate_channel(), stpi_dither_ut(), stpi_dither_very_fast(), stpi_flush_passes(), and stpi_set_dither_function(). |
|
Get a curve parameter.
Definition at line 715 of file print-vars.c. References stp_vars::params, stp_list_get_item_by_name(), stp_list_item_get_data(), STP_PARAMETER_TYPE_CURVE, and value_t::value. Referenced by generic_rgb_to_kcmy(), initialize_color_curves(), initialize_composite_curve(), initialize_gcr_curve(), print_debug_params(), setup_channel(), stpi_compute_lut(), and verify_curve_param(). |
|
Get the activity status of a curve parameter.
Referenced by initialize_color_curves(), initialize_composite_curve(), setup_channel(), and stpi_compute_lut(). |
|
Get the name of the printer driver.
Referenced by print_debug_params(), stp_family_register(), stp_family_unregister(), stp_get_model_id(), stp_get_printer(), stp_printer_create_from_xmltree(), and stp_vars_copy(). |
|
Get the error data.
Referenced by stp_dprintf(), stp_eprintf(), stp_flush_debug_messages(), stp_init_debug_messages(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Get the function used to print output information.
Referenced by stp_dprintf(), stp_eprintf(), stp_init_debug_messages(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Get a file parameter.
Definition at line 640 of file print-vars.c. References stp_vars::params, stp_list_get_item_by_name(), stp_list_item_get_data(), STP_PARAMETER_TYPE_FILE, and value_t::value. Referenced by ps_imageable_area_internal(), ps_media_size_internal(), ps_parameters_internal(), and ps_print_internal(). |
|
Get the activity status of a file parameter.
|
|
Get a float parameter.
Definition at line 1030 of file print-vars.c. References stp_parameter_t::deflt, stp_parameter_t::p_type, stp_vars::params, stp_describe_parameter(), stp_list_get_item_by_name(), stp_list_item_get_data(), stp_parameter_description_destroy(), STP_PARAMETER_TYPE_DOUBLE, and value_t::value. Referenced by adjust_density_and_ink_type(), canon_do_print(), cmyk_8_to_gray(), cmyk_8_to_kcmy(), compute_gcr_curve(), escp2_base_res(), escp2_density(), fast_rgb_to_rgb(), get_double_param(), initialize_channels(), initialize_cmyk_lut(), initialize_color_curves(), lexmark_do_print(), pcl_do_print(), rgb_to_rgb(), setup_channel(), stp_merge_printvars(), stp_scale_float_parameter(), stpi_compute_lut(), and verify_double_param(). |
|
Get the activity status of a float parameter.
Referenced by initialize_color_curves(), initialize_composite_curve(), setup_channel(), and stpi_compute_lut(). |
|
Get the height of the image.
Referenced by canon_do_print(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), ps_print_internal(), setup_page(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Get the imagable area of the page. Retrieve the boundaries of the printable area of the page. In combination with the media size, this can be used to determine the actual printable region, which callers can use to place the image precisely. The dimensions are relative to the top left of the physical page. If a customizable page size is used (see stp_printer_get_media_size), the actual desired width and/or height must be filled in using stp_set_page_width and/or stp_set_page_height. If these are not filled in, the margins will be returned. Returned values may be negative if a printer is capable of full bleed by printing beyond the physical boundaries of the page. If the media size stored in V is invalid, the return values will be indeterminate. It is up to the user to specify legal values.
Definition at line 347 of file printers.c. References stp_printfuncs_t::imageable_area, stp_get_printer(), and stpi_get_printfuncs(). Referenced by stp_verify_printer_params(). |
|
Get an integer parameter.
Definition at line 856 of file print-vars.c. References stp_parameter_t::deflt, stp_parameter_t::p_type, stp_vars::params, stp_describe_parameter(), stp_list_get_item_by_name(), stp_list_item_get_data(), stp_parameter_description_destroy(), STP_PARAMETER_TYPE_INT, and value_t::value. Referenced by escp2_bits(), escp2_ink_type(), stp_dither_init(), stpi_color_traditional_init(), and verify_int_param(). |
|
Get the activity status of an integer parameter.
|
|
Get the left edge of the image.
Referenced by canon_do_print(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), print_debug_params(), ps_print_internal(), setup_page(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Get the media (paper) size. Retrieve the media size of the media type set in V, expressed in units of 1/72". If the media size is invalid, width and height will be set to -1. Values of 0 for width or height indicate that the dimension is variable, so that custom page sizes or roll paper can be used. In this case, the size limit should be used to determine maximum and minimum values permitted.
Definition at line 339 of file printers.c. References stp_printfuncs_t::media_size, stp_get_printer(), and stpi_get_printfuncs(). |
|
Get the output data.
Referenced by stp_putc(), stp_puts(), stp_vars_copy(), stp_zfwrite(), and stp_zprintf(). |
|
Get the function used to print output information.
Referenced by stp_putc(), stp_puts(), stp_vars_copy(), stp_zfwrite(), and stp_zprintf(). |
|
Get the page height.
Referenced by canon_size_type(), internal_imageable_area(), olympus_do_print(), pcl_do_print(), print_debug_params(), raw_imageable_area(), raw_print(), stp_default_media_size(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Get the page width.
Referenced by canon_size_type(), internal_imageable_area(), olympus_do_print(), pcl_do_print(), print_debug_params(), raw_imageable_area(), raw_print(), stp_default_media_size(), stp_vars_copy(), and stp_verify_printer_params(). |
|
List the available parameters for the currently chosen settings. This does not fill in the bounds and defaults; it merely provides a list of settings. To fill in detailed information for a setting, use stp_describe_parameter.
Definition at line 588 of file print-util.c. References stp_color_list_parameters(), stp_dither_list_parameters(), stp_list_generic_parameters(), stp_parameter_list_append(), stp_parameter_list_create(), stp_parameter_list_destroy(), stp_parameter_list_t, and stp_printer_list_parameters(). Referenced by print_debug_params(), set_printer_defaults(), stp_merge_printvars(), stp_parameter_find_in_settings(), stp_prune_inactive_options(), and stp_verify_printer_params(). |
|
Get a raw parameter.
Definition at line 573 of file print-vars.c. References stp_vars::params, stp_list_get_item_by_name(), stp_list_item_get_data(), STP_PARAMETER_TYPE_RAW, and value_t::value. |
|
Get the activity status of a raw parameter.
|
|
Get the media size limits. Retrieve the minimum and maximum size limits for custom media sizes with the current printer settings.
Definition at line 356 of file printers.c. References stp_printfuncs_t::limit, stp_get_printer(), and stpi_get_printfuncs(). Referenced by stp_verify_printer_params(). |
|
Get a string parameter.
Definition at line 533 of file print-vars.c. References stp_vars::params, stp_list_get_item_by_name(), stp_list_item_get_data(), STP_PARAMETER_TYPE_STRING_LIST, and value_t::value. Referenced by canon_describe_output(), canon_describe_resolution(), canon_do_print(), cx400_printer_init_func(), escp2_describe_output(), escp2_do_print(), escp2_find_resolution(), escp2_inklist(), escp2_print(), escp2_print_page(), escp2_set_printhead_speed(), get_inktype(), get_input_slot(), get_media_type(), get_printer_weave(), internal_imageable_area(), lexmark_describe_output(), lexmark_describe_resolution(), lexmark_do_print(), olympus_describe_resolution(), olympus_do_print(), olympus_imageable_area(), olympus_printsize(), p400_block_init_func(), p400_printer_init_func(), pcl_describe_output(), pcl_describe_resolution(), pcl_do_print(), pcl_parameters(), pcl_printfunc(), ps_describe_output(), ps_describe_resolution_internal(), ps_imageable_area_internal(), ps_media_size_internal(), ps_print_internal(), raw_describe_output(), raw_print(), rgb_to_rgb(), set_color_transition_parameter(), set_density_parameter(), set_raw_ink_type(), setup_head_parameters(), stp_channel_set_density_adjustment(), stp_default_media_size(), stp_dither_describe_parameter(), stp_end_job(), stp_start_job(), stp_verify_printer_params(), stpi_color_traditional_describe_parameter(), stpi_color_traditional_init(), stpi_set_dither_function(), updp10_printer_end_func(), using_automatic_settings(), and verify_string_param(). |
|
Get the activity status of a string parameter.
|
|
Get the top edge of the image.
Referenced by canon_do_print(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), print_debug_params(), ps_print_internal(), setup_page(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Definition at line 412 of file print-vars.c. References check_vars(), and stp_vars::verified. Referenced by stp_flush_debug_messages(), stp_init_debug_messages(), stp_vars_copy(), and stp_verify(). |
|
Get the width edge of the image.
Referenced by canon_do_print(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), ps_print_internal(), setup_page(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Merge defaults for a printer with user-chosen settings.
Definition at line 552 of file print-util.c. References stp_parameter_t::bounds, stp_parameter_t::deflt, stp_parameter_t::name, stp_parameter_t::p_class, stp_parameter_t::p_type, stp_check_float_parameter(), stp_describe_parameter(), stp_get_float_parameter(), stp_get_parameter_list(), STP_PARAMETER_ACTIVE, STP_PARAMETER_CLASS_OUTPUT, STP_PARAMETER_DEFAULTED, stp_parameter_description_destroy(), stp_parameter_list_count(), stp_parameter_list_destroy(), stp_parameter_list_param(), stp_parameter_list_t, STP_PARAMETER_TYPE_DOUBLE, and stp_set_float_parameter(). |
|
Destroy a parameter description. This must be called even if the stp_parameter_t was not allocated with malloc, since some members are dynamically allocated.
Definition at line 1302 of file print-vars.c. References stp_parameter_t::bounds, stp_parameter_t::p_type, stp_array_destroy(), stp_curve_destroy(), STP_PARAMETER_TYPE_ARRAY, STP_PARAMETER_TYPE_CURVE, STP_PARAMETER_TYPE_STRING_LIST, and stp_string_list_destroy(). Referenced by set_printer_defaults(), stp_get_boolean_parameter(), stp_get_float_parameter(), stp_get_int_parameter(), stp_merge_printvars(), stp_scale_float_parameter(), stp_verify_parameter(), stpi_color_traditional_describe_parameter(), verify_curve_param(), verify_int_param(), and verify_string_param(). |
|
Find a parameter by its name.
Definition at line 1343 of file print-vars.c. References stp_const_parameter_list_t, stp_list_get_item_by_name(), and stp_list_item_get_data(). Referenced by stp_parameter_find_in_settings(), and stp_prune_inactive_options(). |
|
Find a parameter by its name from a vars object.
Definition at line 1327 of file print-vars.c. References stp_get_parameter_list(), stp_parameter_find(), stp_parameter_list_destroy(), and stp_parameter_list_t. |
|
Add a parameter to a parameter_list.
Definition at line 1274 of file print-vars.c. References stp_list_item_create(), and stp_parameter_list_t. Referenced by canon_list_parameters(), escp2_list_parameters(), lexmark_list_parameters(), olympus_list_parameters(), pcl_list_parameters(), ps_list_parameters(), raw_list_parameters(), stp_dither_list_parameters(), stp_list_generic_parameters(), and stpi_color_traditional_list_parameters(). |
|
Append one parameter_list to another.
Definition at line 1382 of file print-vars.c. References stp_parameter_t::name, stp_const_parameter_list_t, stp_list_get_item_by_name(), stp_list_item_create(), stp_parameter_list_count(), stp_parameter_list_param(), and stp_parameter_list_t. Referenced by stp_get_parameter_list(). |
|
Copy and allocate a parameter_list. A new parameter_list will be created, and then the contents of source will be copied into it.
Definition at line 1371 of file print-vars.c. References stp_const_parameter_list_t, stp_list_item_create(), stp_parameter_list_count(), stp_parameter_list_create(), and stp_parameter_list_param(). |
|
List the number of available parameters for the currently chosen settings.
Definition at line 1336 of file print-vars.c. References stp_const_parameter_list_t, and stp_list_get_length(). Referenced by print_debug_params(), set_printer_defaults(), stp_merge_printvars(), stp_parameter_list_append(), stp_parameter_list_copy(), and stp_verify_printer_params(). |
|
Create a parameter_list.
Definition at line 1265 of file print-vars.c. References param_longnamefunc(), param_namefunc(), stp_list_create(), stp_list_set_long_namefunc(), and stp_list_set_namefunc(). Referenced by canon_list_parameters(), escp2_list_parameters(), lexmark_list_parameters(), olympus_list_parameters(), pcl_list_parameters(), ps_list_parameters(), raw_list_parameters(), stp_dither_list_parameters(), stp_get_parameter_list(), stp_list_generic_parameters(), stp_parameter_list_copy(), and stpi_color_traditional_list_parameters(). |
|
Destroy a parameter_list. It is an error to destroy the parameter_list more than once.
Definition at line 1365 of file print-vars.c. References stp_list_destroy(), and stp_parameter_list_t. Referenced by print_debug_params(), set_printer_defaults(), stp_get_parameter_list(), stp_merge_printvars(), stp_parameter_find_in_settings(), stp_prune_inactive_options(), and stp_verify_printer_params(). |
|
Find a parameter by its index number.
Definition at line 1354 of file print-vars.c. References stp_const_parameter_list_t, stp_list_get_item_by_index(), stp_list_get_length(), and stp_list_item_get_data(). Referenced by print_debug_params(), set_printer_defaults(), stp_merge_printvars(), stp_parameter_list_append(), stp_parameter_list_copy(), and stp_verify_printer_params(). |
|
Multiply the value of a float parameter by a scaling factor.
Definition at line 1061 of file print-vars.c. References stp_parameter_t::deflt, stp_parameter_t::p_type, stp_check_float_parameter(), stp_describe_parameter(), stp_get_float_parameter(), STP_PARAMETER_DEFAULTED, stp_parameter_description_destroy(), STP_PARAMETER_TYPE_DOUBLE, and stp_set_float_parameter(). Referenced by adjust_print_quality(), canon_do_print(), and lexmark_do_print(). |
|
Set an array parameter.
Definition at line 730 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_array_create_copy(), stp_array_destroy(), stp_list_get_item_by_name(), stp_list_item_create(), stp_list_item_destroy(), stp_list_item_get_data(), stp_malloc(), STP_PARAMETER_ACTIVE, STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_ARRAY, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. Referenced by set_printer_defaults(), and stp_clear_array_parameter(). |
|
Set the activity of an array parameter.
Referenced by set_printer_defaults(). |
|
Set a boolean parameter.
Definition at line 887 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_list_get_item_by_name(), stp_list_item_create(), stp_list_item_get_data(), stp_malloc(), STP_PARAMETER_ACTIVE, STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_BOOLEAN, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. Referenced by set_printer_defaults(). |
|
Set the activity of a boolean parameter.
Referenced by set_printer_defaults(). |
|
Set the name of the color conversion routine, if not the default.
Referenced by stp_vars_copy(). |
|
Set the name of the color conversion routine, if not the default.
|
|
Set a curve parameter.
Definition at line 655 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_curve_create_copy(), stp_curve_destroy(), stp_list_get_item_by_name(), stp_list_item_create(), stp_list_item_destroy(), stp_list_item_get_data(), stp_malloc(), STP_PARAMETER_ACTIVE, STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_CURVE, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. Referenced by adjust_print_quality(), canon_do_print(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), set_printer_defaults(), and stp_clear_curve_parameter(). |
|
Set the activity of a curveparameter.
Referenced by adjust_print_quality(), olympus_do_print(), and set_printer_defaults(). |
|
Set a default array parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 761 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_array_create_copy(), stp_list_get_item_by_name(), stp_list_item_create(), stp_malloc(), STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_ARRAY, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. |
|
Set a default boolean parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 914 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_list_get_item_by_name(), stp_list_item_create(), stp_malloc(), STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_BOOLEAN, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. |
|
Set a default curve parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 687 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_curve_create_copy(), stp_list_get_item_by_name(), stp_list_item_create(), stp_malloc(), STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_CURVE, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. |
|
Set a default file parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 611 of file print-vars.c. References stp_vars::params, set_default_raw_parameter(), STP_PARAMETER_TYPE_FILE, and stp_set_verified(). |
|
Set a default file parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 624 of file print-vars.c. References stp_vars::params, set_default_raw_parameter(), STP_PARAMETER_TYPE_FILE, and stp_set_verified(). |
|
Set a default float parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 1001 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_list_get_item_by_name(), stp_list_item_create(), stp_malloc(), STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_DOUBLE, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. Referenced by adjust_print_quality(), canon_do_print(), lexmark_do_print(), and pcl_do_print(). |
|
Set a default integer parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 828 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_list_get_item_by_name(), stp_list_item_create(), stp_malloc(), STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_INT, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. |
|
Set a default raw parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 557 of file print-vars.c. References stp_vars::params, set_default_raw_parameter(), STP_PARAMETER_TYPE_RAW, and stp_set_verified(). |
|
Set a default string parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 508 of file print-vars.c. References STP_DBG_VARS, stp_dprintf(), stp_set_default_string_parameter_n(), and stp_set_verified(). |
|
Set a default string parameter. The value is set if the parameter is not already set. This avoids having to check if the parameter is set prior to setting it, if you do not want to override the existing value.
Definition at line 498 of file print-vars.c. References stp_vars::params, set_default_raw_parameter(), STP_PARAMETER_TYPE_STRING_LIST, and stp_set_verified(). Referenced by stp_set_default_string_parameter(). |
|
Set the name of the printer driver.
Referenced by stp_printer_create_from_xmltree(), stp_set_printer_defaults(), and stp_vars_copy(). |
|
Set the name of the printer driver.
|
|
Set the error data.
Referenced by stp_flush_debug_messages(), stp_init_debug_messages(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Set the function used to print error and diagnostic information. These must be supplied by the caller. errdata is passed as an arguments to errfunc; typically it will be a file descriptor.
Referenced by stp_flush_debug_messages(), stp_init_debug_messages(), stp_vars_copy(), and stp_verify_printer_params(). |
|
Set a file parameter.
Definition at line 588 of file print-vars.c. References stp_vars::params, set_raw_parameter(), STP_PARAMETER_TYPE_FILE, and stp_set_verified(). Referenced by stp_clear_file_parameter(). |
|
Set the activity of a file parameter.
|
|
Set a file parameter.
Definition at line 601 of file print-vars.c. References stp_vars::params, set_raw_parameter(), STP_PARAMETER_TYPE_FILE, and stp_set_verified(). |
|
Set a float parameter.
Definition at line 977 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_list_get_item_by_name(), stp_list_item_create(), stp_list_item_get_data(), stp_malloc(), STP_PARAMETER_ACTIVE, STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_DOUBLE, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. Referenced by adjust_density_and_ink_type(), canon_do_print(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), raw_print(), set_printer_defaults(), stp_merge_printvars(), stp_printer_create_from_xmltree(), and stp_scale_float_parameter(). |
|
Set the activity of a float parameter.
Referenced by adjust_density_and_ink_type(), canon_do_print(), lexmark_do_print(), pcl_do_print(), and set_printer_defaults(). |
|
Set the height of the image.
Referenced by stp_vars_copy(). |
|
Set an integer parameter.
Definition at line 804 of file print-vars.c. References value_t::active, value_t::name, stp_vars::params, stp_list_get_item_by_name(), stp_list_item_create(), stp_list_item_get_data(), stp_malloc(), STP_PARAMETER_ACTIVE, STP_PARAMETER_DEFAULTED, STP_PARAMETER_TYPE_INT, stp_set_verified(), stp_strdup(), value_t::typ, and value_t::value. Referenced by set_printer_defaults(), and set_raw_ink_type(). |
|
Set the activity of an integer parameter.
Referenced by set_printer_defaults(). |
|
Set the left edge of the image.
Referenced by stp_vars_copy(). |
|
Set the output data.
Referenced by stp_vars_copy(). |
|
Set the function used to print output information. These must be supplied by the caller. outdata is passed as an arguments to outfunc; typically it will be a file descriptor.
Referenced by stp_vars_copy(). |
|
Set the page height.
Referenced by stp_vars_copy(). |
|
Set the page width.
Referenced by stp_vars_copy(). |
|
Set a raw parameter.
Definition at line 548 of file print-vars.c. References stp_vars::params, set_raw_parameter(), STP_PARAMETER_TYPE_RAW, and stp_set_verified(). Referenced by stp_clear_raw_parameter(). |
|
Set the activity of a raw parameter.
|
|
Set a string parameter.
Definition at line 480 of file print-vars.c. References STP_DBG_VARS, stp_dprintf(), stp_set_string_parameter_n(), and stp_set_verified(). Referenced by allocate_channels(), canon_do_print(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), ps_print_internal(), raw_print(), set_printer_defaults(), set_raw_ink_type(), and stp_clear_string_parameter(). |
|
Set the activity of a string parameter.
Referenced by set_printer_defaults(). |
|
Set a string parameter.
Definition at line 464 of file print-vars.c. References stp_vars::params, set_raw_parameter(), STP_DBG_VARS, stp_dprintf(), STP_PARAMETER_TYPE_STRING_LIST, and stp_set_verified(). Referenced by stp_set_string_parameter(). |
|
Set the top edge of the image.
Referenced by stp_vars_copy(). |
|
Definition at line 405 of file print-vars.c. References check_vars(), and stp_vars::verified. Referenced by stp_clear_boolean_parameter(), stp_clear_float_parameter(), stp_clear_int_parameter(), stp_flush_debug_messages(), stp_init_debug_messages(), stp_set_array_parameter(), stp_set_boolean_parameter(), stp_set_curve_parameter(), stp_set_default_array_parameter(), stp_set_default_boolean_parameter(), stp_set_default_curve_parameter(), stp_set_default_file_parameter(), stp_set_default_file_parameter_n(), stp_set_default_float_parameter(), stp_set_default_int_parameter(), stp_set_default_raw_parameter(), stp_set_default_string_parameter(), stp_set_default_string_parameter_n(), stp_set_file_parameter(), stp_set_file_parameter_n(), stp_set_float_parameter(), stp_set_int_parameter(), stp_set_raw_parameter(), stp_set_string_parameter(), stp_set_string_parameter_n(), stp_vars_copy(), stp_verify(), and stp_verify_printer_params(). |
|
Set the width of the image.
Referenced by stp_vars_copy(). |
|
Copy a vars object. Both dest and source must be valid vars objects previously created with stp_vars_create().
Definition at line 1192 of file print-vars.c. References copy_compdata_list(), copy_value_list(), stp_vars::internal_data, stp_vars::params, stp_get_color_conversion(), stp_get_driver(), stp_get_errdata(), stp_get_errfunc(), stp_get_height(), stp_get_left(), stp_get_outdata(), stp_get_outfunc(), stp_get_page_height(), stp_get_page_width(), stp_get_top(), stp_get_verified(), stp_get_width(), stp_list_destroy(), STP_PARAMETER_TYPE_INVALID, stp_set_color_conversion(), stp_set_driver(), stp_set_errdata(), stp_set_errfunc(), stp_set_height(), stp_set_left(), stp_set_outdata(), stp_set_outfunc(), stp_set_page_height(), stp_set_page_width(), stp_set_top(), stp_set_verified(), and stp_set_width(). Referenced by stp_vars_create(), and stp_vars_create_copy(). |
|
Create a new vars object.
Definition at line 316 of file print-vars.c. References create_compdata_list(), create_vars_list(), initialize_standard_vars(), stp_vars::internal_data, stp_vars::params, STP_PARAMETER_TYPE_INVALID, stp_vars_copy(), and stp_zalloc(). Referenced by stp_printer_create_from_xmltree(), and stp_vars_create_copy(). |
|
Copy and allocate a vars object. source must be a valid vars object previously created with stp_vars_create().
Definition at line 1243 of file print-vars.c. References stp_vars_copy(), and stp_vars_create(). Referenced by canon_print(), escp2_job_end(), escp2_job_start(), escp2_print(), lexmark_print(), olympus_print(), pcl_print(), ps_print_internal(), raw_print(), and stp_verify(). |
|
Destroy a vars object. It is an error to destroy the vars more than once.
Definition at line 329 of file print-vars.c. References check_vars(), stp_vars::color_conversion, stp_vars::driver, stp_vars::internal_data, stp_vars::params, stp_free(), stp_list_destroy(), STP_PARAMETER_TYPE_INVALID, and STP_SAFE_FREE. Referenced by canon_print(), escp2_job_end(), escp2_job_start(), escp2_print(), lexmark_print(), olympus_print(), pcl_print(), ps_print_internal(), raw_print(), and stp_verify(). |
|
Verify parameters. Verify that the parameters selected are consistent with those allowed by the driver. This must be called prior to printing; failure to do so will result in printing failing.
Definition at line 381 of file printers.c. References stp_get_printer(), stp_get_verified(), stp_prune_inactive_options(), stp_set_verified(), stp_vars_create_copy(), stp_vars_destroy(), stpi_get_printfuncs(), and stp_printfuncs_t::verify. Referenced by canon_do_print(), escp2_do_print(), lexmark_do_print(), olympus_do_print(), pcl_do_print(), ps_print_internal(), and raw_print(). |
|
Definition at line 567 of file printers.c. References _, stp_parameter_t::is_active, stp_parameter_t::p_type, PARAMETER_INACTIVE, PARAMETER_OK, stp_parameter_t::read_only, STP_DBG_VARS, stp_describe_parameter(), stp_dprintf(), stp_eprintf(), stp_parameter_description_destroy(), STP_PARAMETER_TYPE_BOOLEAN, STP_PARAMETER_TYPE_CURVE, STP_PARAMETER_TYPE_DOUBLE, STP_PARAMETER_TYPE_FILE, STP_PARAMETER_TYPE_INT, STP_PARAMETER_TYPE_RAW, STP_PARAMETER_TYPE_STRING_LIST, verify_curve_param(), verify_double_param(), verify_int_param(), and verify_string_param(). Referenced by stp_verify_printer_params(), and stpi_color_traditional_init(). |