pcb 4.1.1
An interactive printed circuit board layout editor.
|
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include "global.h"
#include "data.h"
#include "misc.h"
#include "hid.h"
#include "../hidint.h"
#include "../ps/ps.h"
#include "hid/common/hidnogui.h"
#include "hid/common/hidinit.h"
Go to the source code of this file.
Defines | |
#define | CRASH |
Functions | |
static HID_Attribute * | lpr_get_export_options (int *n) |
static void | lpr_do_export (HID_Attr_Val *options) |
static void | lpr_parse_arguments (int *argc, char ***argv) |
static void | lpr_calibrate (double xval, double yval) |
void | hid_lpr_init () |
Variables | |
static HID_Attribute | base_lpr_options [] |
static HID_Attribute * | lpr_options = 0 |
static int | num_lpr_options = 0 |
static HID_Attr_Val * | lpr_values |
static HID | lpr_hid |
#define CRASH |
fprintf(stderr, \ _("HID error: pcb called unimplemented PS function %s.\n"), \ __FUNCTION__); abort()
void hid_lpr_init | ( | ) |
Definition at line 127 of file lpr.c.
References hid_st::calibrate, common_nogui_init(), hid_st::description, hid_st::do_export, hid_st::get_export_options, hid_register_hid(), lpr_calibrate(), lpr_do_export(), lpr_get_export_options(), lpr_parse_arguments(), N_, hid_st::name, hid_st::parse_arguments, hid_st::poly_before, hid_st::printer, ps_ps_init(), and hid_st::struct_size.
static void lpr_calibrate | ( | double | xval, |
double | yval | ||
) | [static] |
Definition at line 119 of file lpr.c.
References ps_calibrate_1().
Referenced by hid_lpr_init().
static void lpr_do_export | ( | HID_Attr_Val * | options | ) | [static] |
Definition at line 81 of file lpr.c.
References _, f, filename, lpr_get_export_options(), lpr_values, num_lpr_options, ps_hid_export_to_file(), and HID_Attr_Val::str_value.
Referenced by hid_lpr_init().
static HID_Attribute* lpr_get_export_options | ( | int * | n | ) | [static] |
Definition at line 53 of file lpr.c.
References HID_Attribute::default_val, hid_st::get_export_options, lpr_options, num_lpr_options, ps_hid, and HID_Attr_Val::str_value.
Referenced by hid_lpr_init(), lpr_do_export(), and lpr_parse_arguments().
static void lpr_parse_arguments | ( | int * | argc, |
char *** | argv | ||
) | [static] |
Definition at line 111 of file lpr.c.
References hid_parse_command_line(), hid_register_attributes(), lpr_get_export_options(), and num_lpr_options.
Referenced by hid_lpr_init().
HID_Attribute base_lpr_options[] [static] |
{ {N_("lprcommand"), N_("Command to use for printing"), HID_String, 0, 0, {0, 0, 0}, 0, 0}, #define HA_lprcommand 0 }
HID_Attribute* lpr_options = 0 [static] |
Definition at line 48 of file lpr.c.
Referenced by lpr_get_export_options().
HID_Attr_Val* lpr_values [static] |
Definition at line 50 of file lpr.c.
Referenced by lpr_do_export().
int num_lpr_options = 0 [static] |
Definition at line 49 of file lpr.c.
Referenced by lpr_do_export(), lpr_get_export_options(), and lpr_parse_arguments().