Anti-Plagiat Version 1.0

src/Headers/textPdf.h

Aller à la documentation de ce fichier.
00001 /***********************************************************************
00002  * Module:  TextPdf.h
00003  * Author:  RONGIARD Fabien
00004  *          DUREUIL Brice
00005  *          CRESSON Thomas
00006  *          NAJAR Soufiene
00007  *          FATNI Elkhader
00008  * Modified: vendredi 26 mars 2011 16:46:28
00009  * Purpose: Declaration of the class TextPdf
00010  ***********************************************************************/
00011 
00012 #ifndef TEXTPDF_H
00013 #define TEXTPDF_H
00014 
00027 #include <QString>
00028 #include <QStringList>
00029 #include <QFile>
00030 #include <QMessageBox>
00031 #include <QProcess>
00032 #include <QTextStream>
00033 #include "extension.h"
00034 
00035 #ifdef _WIN32
00036 #define EXE_TTOPDF ("pdftotext.exe")
00037 #else
00038 #define EXE_TTOPDF ("/usr/bin/pdftotext")
00039 #endif
00040 
00041 class Extension;
00042 
00049 class TextPdf : public Extension
00050 {
00051 
00052 public:
00059     TextPdf(QString file);
00065     ~TextPdf();
00071     bool fileIsValid();
00077     QString getText();
00086     QStringList getCible(int max_word, bool tri_police, bool tri_size);
00087 
00088 private:
00089     QString m_file; 
00090     QString m_text; 
00092 };
00093 
00094 #endif // TEXTPDF_H
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définition de type Macros