/********************************* CDevilFormPDF **************************************
                                                                                
    Project: MedinTux                                                            
    Copyright (C) 2005 by Roland Sevin  and Data Medical Design            
    E-Mail: data.medical.design@club-internet.fr                                 
                                                                                 
    This program is free software; you can redistribute it and/or modify         
    it under the terms of the CeCILL Version 1 du 21/06/2004                     
    License (GPL compatible)                                                     
                               http://www.cecill.info/                           
    as published by :                                                            
                                                                                 
    Commissariat � l'Energie Atomique                                            
    - CEA,                                                                       
                             31-33 rue de la F�d�ration, 75752 PARIS cedex 15.   
                             FRANCE                                              
    Centre National de la Recherche Scientifique                                 
    - CNRS,                                                                      
                             3 rue Michel-Ange, 75794 Paris cedex 16.            
                             FRANCE                                              
    Institut National de Recherche en Informatique et en Automatique             
    - INRIA,                                                                     
                             Domaine de Voluceau, Rocquencourt, BP 105, 78153    
                             FRANCE                                              
                                                                                 
          This program is distributed in the hope that it will be useful,        
          but WITHOUT ANY WARRANTY; without even the implied warranty of         
          MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                   
          CeCILL  License (GPL compatible) for more details.                     
                                                                                 
 **********************************************************************************/
 
#ifndef  CDEVILFORMPDF_H
#define  CDEVILFORMPDF_H

#include "CDevilCrucible.h"
#include "CApp.h"
#include "CMoteur_Base.h"
#include <qmessagebox.h> 
#include <qprocess.h>
#include "FormConfig.h"


class CDevilCrucible;

class CDevilFormPDF
{

public:

/*! \brief Constructeur de la classe.

 * Exemple pour le code (dans CDevilCrucible.cpp):
 *\code CDevilFormPDF *pPDF = new CDevilFormPDF (this);
 * QString resultat_du_calcul = pPDF->Form_PDF (arg1);
  \endcode
 * \param *pCDevil : pointer vers la classe CDevilCrucible appelante.
*/
     CDevilFormPDF 	(CDevilCrucible *pCDevil);

/*! \brief Destructeur de la classe.
*/
    ~CDevilFormPDF	(){};

// ****************************************************************************************************** //
// *					FONCTION PRINCIPALE						* //
// ****************************************************************************************************** //
    QString 		Form_PDF		(QString &arg1);

// ****************************************************************************************************** //
// *					FONCTIONS SECONDAIRES						* //
// ****************************************************************************************************** //
    QString 		Entete_FDF		();
    QString 		Pied_FDF		();
    QString 		File_PDF_FDF		(QString file);
    QString 		Add_Field_FDF		(QString field, QString value);
    bool    		Form_PDF_GetIni		(QString &pdfPath, QString &pdftkPath, QString &visualPDF, QString &tmpPath);
    QString 		Form_Dec_MT		(const QString pdfFile);
    QString 		Form_ALD		(const QString pdfFile);


// ****************************************************************************************************** //
// *					DONNÉES								* //
// ****************************************************************************************************** //
private:
     CDevilCrucible	*m_pCDevil;		// pointer vers CDevilCrucible pour accéder aux fonctions et variables de CDevilCrucible
     CMoteurBase	*m_pMB;			// Récupère le Moteur de le Base de données
     QString		m_IdentPrimKey;		// patient identity primary key on m_DOSS_IDENT_TBL_NAME 
     QString		m_UserDocPk;		// current  user primary key on m_USER_IDENT_TBL_NAME from document user 

     QString		stringToReturn;		// QString contenant le retour de la fontion CDevilFormPDF

};


#endif
