00001
00002
00003
00004
00005
00006
00007 #ifndef NON_PDF_H
00008 #define NON_PDF_H
00009
00010 #include "ImportCropping.h"
00011
00012 namespace Poppler {
00013 class Document;
00014 }
00015 class QImage;
00016 class QString;
00017
00019 enum NonPdfReturn {
00020 NON_PDF_RETURN_CANCELED,
00021 NON_PDF_RETURN_FAILED,
00022 NON_PDF_RETURN_SUCCESS
00023 };
00024
00026 class NonPdf
00027 {
00028 public:
00030 NonPdf();
00031
00033 NonPdfReturn load (const QString &fileName,
00034 QImage &image,
00035 ImportCropping importCropping,
00036 bool isErrorReportRegressionTest) const;
00037
00038 private:
00039
00040 NonPdfReturn loadWithCropping (const QString &fileName,
00041 QImage &image) const;
00042 NonPdfReturn loadWithoutCropping (const QString &fileName,
00043 QImage &image) const;
00044
00045 };
00046
00047 #endif // NON_PDF_H