xref: /haiku/src/add-ons/print/drivers/pcl5/PCL5Entry.cpp (revision 6b176bef5bf73e6a3523972a7dd196273460fede)
1987f2a6dSMichael Pfeiffer /*
2987f2a6dSMichael Pfeiffer  * PCL5Entry.cpp
3987f2a6dSMichael Pfeiffer  * Copyright 1999-2000 Y.Takagi. All Rights Reserved.
4987f2a6dSMichael Pfeiffer  * Copyright 2003 Michael Pfeiffer.
5987f2a6dSMichael Pfeiffer  */
6987f2a6dSMichael Pfeiffer 
7*6b176befSWim van der Meer 
8987f2a6dSMichael Pfeiffer #include "PCL5.h"
9987f2a6dSMichael Pfeiffer #include "PCL5Cap.h"
1053045bc6SMichael Pfeiffer #include "PrinterDriver.h"
11987f2a6dSMichael Pfeiffer 
12*6b176befSWim van der Meer 
1353045bc6SMichael Pfeiffer class PCL5PrinterDriver : public PrinterDriver
14987f2a6dSMichael Pfeiffer {
1553045bc6SMichael Pfeiffer public:
PCL5PrinterDriver(BNode * printerFolder)1653045bc6SMichael Pfeiffer 	PCL5PrinterDriver(BNode* printerFolder) : PrinterDriver(printerFolder) {}
1753045bc6SMichael Pfeiffer 
GetSignature() const1853045bc6SMichael Pfeiffer 	const char* GetSignature() const
1953045bc6SMichael Pfeiffer 	{
2053045bc6SMichael Pfeiffer 		return "application/x-vnd.PCL5-compatible";
21987f2a6dSMichael Pfeiffer 	}
22987f2a6dSMichael Pfeiffer 
GetDriverName() const2353045bc6SMichael Pfeiffer 	const char* GetDriverName() const
24987f2a6dSMichael Pfeiffer 	{
2526556405SStephan Aßmus 		return "PCL5 compatible";
26987f2a6dSMichael Pfeiffer 	}
27987f2a6dSMichael Pfeiffer 
GetVersion() const2853045bc6SMichael Pfeiffer 	const char* GetVersion() const
29987f2a6dSMichael Pfeiffer 	{
3053045bc6SMichael Pfeiffer 		return "1.0";
31987f2a6dSMichael Pfeiffer 	}
32987f2a6dSMichael Pfeiffer 
GetCopyright() const3353045bc6SMichael Pfeiffer 	const char* GetCopyright() const
34987f2a6dSMichael Pfeiffer 	{
3553045bc6SMichael Pfeiffer 		return "PCL5 driver Copyright © 2003,04 Michael Pfeiffer.\n";
36987f2a6dSMichael Pfeiffer 	}
37987f2a6dSMichael Pfeiffer 
InstantiatePrinterCap(PrinterData * printerData)3853045bc6SMichael Pfeiffer 	PrinterCap* InstantiatePrinterCap(PrinterData* printerData)
39987f2a6dSMichael Pfeiffer 	{
4053045bc6SMichael Pfeiffer 		return new PCL5Cap(printerData);
4153045bc6SMichael Pfeiffer 	}
4253045bc6SMichael Pfeiffer 
InstantiateGraphicsDriver(BMessage * settings,PrinterData * printerData,PrinterCap * printerCap)43*6b176befSWim van der Meer 	GraphicsDriver* InstantiateGraphicsDriver(BMessage* settings,
44*6b176befSWim van der Meer 		PrinterData* printerData, PrinterCap* printerCap)
4553045bc6SMichael Pfeiffer 	{
4653045bc6SMichael Pfeiffer 		return new PCL5Driver(settings, printerData, printerCap);
4753045bc6SMichael Pfeiffer 	}
4853045bc6SMichael Pfeiffer };
4953045bc6SMichael Pfeiffer 
50*6b176befSWim van der Meer 
instantiate_printer_driver(BNode * printerFolder)5153045bc6SMichael Pfeiffer PrinterDriver* instantiate_printer_driver(BNode* printerFolder)
5253045bc6SMichael Pfeiffer {
5353045bc6SMichael Pfeiffer 	return new PCL5PrinterDriver(printerFolder);
54987f2a6dSMichael Pfeiffer }
55