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