compile
[kdegraphics.git] / okular / ui / fileprinterpreview.h
blob27fdbe80e4f3a2168e94a7ce8a7b774a23cdcd3d
1 /***************************************************************************
2 * Copyright (C) 2007 by John Layt <john@layt.net> *
3 * *
4 * FilePrinterPreview based on KPrintPreview (originally LGPL) *
5 * Copyright (c) 2007 Alex Merry <huntedhacker@tiscali.co.uk> *
6 * *
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
16 #include <kdialog.h>
18 namespace Okular {
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
26 Q_OBJECT
28 public:
29 /**
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();
38 protected:
39 void showEvent( QShowEvent *event );
41 private:
42 FilePrinterPreviewPrivate * const d;
47 #endif // FILEPRINTER_H