~ubuntu-branches/ubuntu/quantal/vice/quantal

« back to all changes in this revision

Viewing changes to src/printerdrv/output-text.c

  • Committer: Bazaar Package Importer
  • Author(s): Zed Pobre
  • Date: 2006-07-30 19:15:59 UTC
  • mto: (9.1.1 lenny) (1.1.6 upstream)
  • mto: This revision was merged to the branch mainline in revision 9.
  • Revision ID: james.westby@ubuntu.com-20060730191559-g31ymd2mk102kzff
Tags: upstream-1.19
ImportĀ upstreamĀ versionĀ 1.19

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
#include "output-text.h"
38
38
#include "output.h"
39
39
#include "resources.h"
 
40
#ifdef HAS_TRANSLATION
 
41
#include "translate.h"
 
42
#endif
 
43
#include "types.h"
40
44
#include "util.h"
41
 
#include "types.h"
42
45
 
43
46
 
44
47
static char *PrinterDev[3] = { NULL, NULL, NULL };
83
86
    { NULL }
84
87
};
85
88
 
86
 
static const cmdline_option_t cmdline_options[] =
87
 
{
88
 
    { "-prtxtdev1", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice1", NULL,
89
 
     "<name>", N_("Specify name of printer text device or dump file") },
90
 
    { "-prtxtdev2", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice2", NULL,
91
 
     "<name>", N_("Specify name of printer text device or dump file") },
92
 
    { "-prtxtdev3", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice3", NULL,
93
 
     "<name>", N_("Specify name of printer text device or dump file") },
94
 
    { "-pr4txtdev", SET_RESOURCE, 1, NULL, NULL, "Printer4TextDevice",
95
 
      (resource_value_t)0,
96
 
      "<0-2>", "Specify printer text output device for IEC printer #4" },
97
 
    { "-pr5txtdev", SET_RESOURCE, 1, NULL, NULL, "Printer5TextDevice",
98
 
      (resource_value_t)0,
99
 
      "<0-2>", "Specify printer text output device for IEC printer #5" },
100
 
    { "-prusertxtdev", SET_RESOURCE, 1, NULL, NULL, "PrinterUserportTextDevice",
101
 
      (resource_value_t)0,
102
 
      "<0-2>", "Specify printer text output device for userport printer" },
103
 
    { NULL }
104
 
};
 
89
#ifdef HAS_TRANSLATION
 
90
static const cmdline_option_t cmdline_options[] =
 
91
{
 
92
    { "-prtxtdev1", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice1", NULL,
 
93
     IDCLS_P_NAME, IDCLS_SPECIFY_TEXT_DEVICE_DUMP_NAME },
 
94
    { "-prtxtdev2", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice2", NULL,
 
95
     IDCLS_P_NAME, IDCLS_SPECIFY_TEXT_DEVICE_DUMP_NAME },
 
96
    { "-prtxtdev3", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice3", NULL,
 
97
     IDCLS_P_NAME, IDCLS_SPECIFY_TEXT_DEVICE_DUMP_NAME },
 
98
    { "-pr4txtdev", SET_RESOURCE, 1, NULL, NULL, "Printer4TextDevice",
 
99
      (resource_value_t)0,
 
100
      IDCLS_P_0_2, IDCLS_SPECIFY_TEXT_DEVICE_4 },
 
101
    { "-pr5txtdev", SET_RESOURCE, 1, NULL, NULL, "Printer5TextDevice",
 
102
      (resource_value_t)0,
 
103
      IDCLS_P_0_2, IDCLS_SPECIFY_TEXT_DEVICE_5 },
 
104
    { "-prusertxtdev", SET_RESOURCE, 1, NULL, NULL, "PrinterUserportTextDevice",
 
105
      (resource_value_t)0,
 
106
      IDCLS_P_0_2, IDCLS_SPECIFY_TEXT_USERPORT },
 
107
    { NULL }
 
108
};
 
109
#else
 
110
static const cmdline_option_t cmdline_options[] =
 
111
{
 
112
    { "-prtxtdev1", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice1", NULL,
 
113
     N_("<name>"), N_("Specify name of printer text device or dump file") },
 
114
    { "-prtxtdev2", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice2", NULL,
 
115
     N_("<name>"), N_("Specify name of printer text device or dump file") },
 
116
    { "-prtxtdev3", SET_RESOURCE, 1, NULL, NULL, "PrinterTextDevice3", NULL,
 
117
     N_("<name>"), N_("Specify name of printer text device or dump file") },
 
118
    { "-pr4txtdev", SET_RESOURCE, 1, NULL, NULL, "Printer4TextDevice",
 
119
      (resource_value_t)0,
 
120
      "<0-2>", N_("Specify printer text output device for IEC printer #4") },
 
121
    { "-pr5txtdev", SET_RESOURCE, 1, NULL, NULL, "Printer5TextDevice",
 
122
      (resource_value_t)0,
 
123
      "<0-2>", N_("Specify printer text output device for IEC printer #5") },
 
124
    { "-prusertxtdev", SET_RESOURCE, 1, NULL, NULL, "PrinterUserportTextDevice",
 
125
      (resource_value_t)0,
 
126
      "<0-2>", N_("Specify printer text output device for userport printer") },
 
127
    { NULL }
 
128
};
 
129
#endif
105
130
 
106
131
int output_text_init_cmdline_options(void)
107
132
{