1 /***************************************************************************
2 * Copyright (C) 2007 by John Layt <john@layt.net> *
4 * FilePrinterPreview based on KPrintPreview (originally LGPL) *
5 * Copyright (c) 2007 Alex Merry <huntedhacker@tiscali.co.uk> *
7 * This program is free software; you can redistribute it and/or modify *
8 * it under the terms of the GNU General Public License as published by *
9 * the Free Software Foundation; either version 2 of the License, or *
10 * (at your option) any later version. *
11 ***************************************************************************/
13 #ifndef FILEPRINTERPREVIEW_H
14 #define FILEPRINTERPREVIEW_H
20 // This code copied from KPrintPreview by Alex Merry, adapted to do PS files instead of PDF
22 class FilePrinterPreviewPrivate
;
24 class FilePrinterPreview
: public KDialog
30 * Create a Print Preview dialog for a given file.
32 * @param printer file to print preview
33 * @param parent pointer to the parent widget for the dialog
35 explicit FilePrinterPreview( const QString
&filename
, QWidget
*parent
= 0 );
36 virtual ~FilePrinterPreview();
39 void showEvent( QShowEvent
*event
);
42 FilePrinterPreviewPrivate
* const d
;
47 #endif // FILEPRINTER_H