xref: /haiku/src/add-ons/print/drivers/preview/PreviewDriver.cpp (revision ed6250c95736c0b55da79d6e9dd01369532260c0)
1 /*
2  * Copyright 2003-2007, Haiku. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  *
5  * Authors:
6  *		Michael Pfeiffer
7  */
8 
9 #include "PreviewDriver.h"
10 
11 status_t PreviewDriver::PrintJob(BFile *jobFile, BMessage *jobMsg) {
12 	PreviewWindow* w;
13 	w = new PreviewWindow(jobFile);
14 	return w->Go();
15 }
16 
17 PrinterDriver* instanciate_driver(BNode *spoolDir)
18 {
19 	return new PreviewDriver(spoolDir);
20 }
21 
22 // About dialog text:
23 const char*
24 kAbout =
25 "Preview for Haiku\n"
26 "© 2003-2007 Haiku\n"
27 "by Michael Pfeiffer\n"
28 "\n"
29 "Based on PDF Writer by\nPhilippe Houdoin, Simon Gauvin, Michael Pfeiffer\n"
30 ;
31 
32 
33