xref: /haiku/src/add-ons/print/drivers/pcl5/PCL5Entry.cpp (revision 95c9effd68127df2dce202d5e254a7c86560010a)
1 /*
2  * PCL5Entry.cpp
3  * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
4  * Copyright 2003 Michael Pfeiffer.
5  */
6 
7 
8 #include "PCL5.h"
9 #include "PCL5Cap.h"
10 #include "PrinterDriver.h"
11 
12 
13 class PCL5PrinterDriver : public PrinterDriver
14 {
15 public:
16 	PCL5PrinterDriver(BNode* printerFolder) : PrinterDriver(printerFolder) {}
17 
18 	const char* GetSignature() const
19 	{
20 		return "application/x-vnd.PCL5-compatible";
21 	}
22 
23 	const char* GetDriverName() const
24 	{
25 		return "PCL5 compatible";
26 	}
27 
28 	const char* GetVersion() const
29 	{
30 		return "1.0";
31 	}
32 
33 	const char* GetCopyright() const
34 	{
35 		return "PCL5 driver Copyright © 2003,04 Michael Pfeiffer.\n";
36 	}
37 
38 	PrinterCap* InstantiatePrinterCap(PrinterData* printerData)
39 	{
40 		return new PCL5Cap(printerData);
41 	}
42 
43 	GraphicsDriver* InstantiateGraphicsDriver(BMessage* settings,
44 		PrinterData* printerData, PrinterCap* printerCap)
45 	{
46 		return new PCL5Driver(settings, printerData, printerCap);
47 	}
48 };
49 
50 
51 PrinterDriver* instantiate_printer_driver(BNode* printerFolder)
52 {
53 	return new PCL5PrinterDriver(printerFolder);
54 }
55