## Printer Device Driver

[prev][next][parent][TOC]

### Adding a Device

The plotter driver uses a combination of the device name and the device class to support printers. The device name is the name of the device that is used to look up the corresponding device class information in the plotter driver's plotter definition table, PlotterDef[].

The PlotterClass data structure contains all the information describing the characteristics of the of the device.

The plotter driver currently supports the following devices and corresponding device classes:

IBM6180 CLASS_HP7440A
IBM6182 CLASS_HP7550A
IBM6184 CLASS_HP7570A
IBM6186 CLASS_HP7595A
IBM6186 CLASS_HP7596A
IBM7371 CLASS_HP7470A
IBM7372 CLASS_HP7475A
IBM7374 CLASS_HP7580B
IBM7375-1 CLASS_HP7585B
IBM7375-2 CLASS_HP7586B
HP7440A CLASS_HP7440A
HP7470A CLASS_HP7470A
HP7475A CLASS_HP7475A
HP7550A CLASS_HP7550A
HP7570A CLASS_HP7570A
HP7580A CLASS_HP7580A
HP7580B CLASS_HP7580B
HP7585A CLASS_HP7585A
HP7585B CLASS_HP7585B
HP7586B CLASS_HP7586B
HP7595A CLASS_HP7595A
HP7596A CLASS_HP7596A
PaintJet XL HP-GL/2 CLASS_PAINTJET_XL
DesignJet 600 CLASS_DESIGNJET600
DesignJet 650C CLASS_DESIGNJET650
DraftMaster SX CLASS_DRAFTMASTER_SERIES
DraftMaster RX CLASS_DRAFTMASTER_SERIES
DraftMaster MX CLASS_DRAFTMASTER_SERIES

To add a new device that will be supported by an existing class, complete the following steps:

1.Add the device name to the PlotterDef[] table in PLOTTERS.C.
2.Add a define in DIALOG.H that defines a numeric constant for your device . The numeric constant will be used to load the device description string that you must add to the PLTUS.RC file.

To add a new device class to the plotter driver, complete the following steps:

1.Add a new PlotterClass structure to PLOTTERS.C defining your new class.
2.Add a define in PLOTTERS.H for the class.
3.Add an entry to the PlotterDef[] table along with a device name that uses the class.