|
|
@ -11,7 +11,7 @@
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <kdebug.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tdelocale.h>
|
|
|
|
#include <tdemessagebox.h>
|
|
|
|
#include <tdemessagebox.h>
|
|
|
|
#include <kprocio.h>
|
|
|
|
#include <tdeprocio.h>
|
|
|
|
#include <tdetempfile.h>
|
|
|
|
#include <tdetempfile.h>
|
|
|
|
#include <kurl.h>
|
|
|
|
#include <kurl.h>
|
|
|
|
#include <tqdir.h>
|
|
|
|
#include <tqdir.h>
|
|
|
@ -207,7 +207,7 @@ void ghostscript_interface::gs_generate_graphics_file(const PageNumber& page, co
|
|
|
|
|
|
|
|
|
|
|
|
// Step 2: Call GS with the File
|
|
|
|
// Step 2: Call GS with the File
|
|
|
|
TQFile::remove(filename.ascii());
|
|
|
|
TQFile::remove(filename.ascii());
|
|
|
|
KProcIO proc;
|
|
|
|
TDEProcIO proc;
|
|
|
|
TQStringList argus;
|
|
|
|
TQStringList argus;
|
|
|
|
argus << "gs";
|
|
|
|
argus << "gs";
|
|
|
|
argus << "-dSAFER" << "-dPARANOIDSAFER" << "-dDELAYSAFER" << "-dNOPAUSE" << "-dBATCH";
|
|
|
|
argus << "-dSAFER" << "-dPARANOIDSAFER" << "-dDELAYSAFER" << "-dNOPAUSE" << "-dBATCH";
|
|
|
@ -329,7 +329,7 @@ TQString ghostscript_interface::locateEPSfile(const TQString &filename, const KU
|
|
|
|
|
|
|
|
|
|
|
|
// Otherwise, use kpsewhich to find the eps file.
|
|
|
|
// Otherwise, use kpsewhich to find the eps file.
|
|
|
|
TQString EPSfilename;
|
|
|
|
TQString EPSfilename;
|
|
|
|
KProcIO proc;
|
|
|
|
TDEProcIO proc;
|
|
|
|
proc << "kpsewhich" << filename;
|
|
|
|
proc << "kpsewhich" << filename;
|
|
|
|
proc.start(TDEProcess::Block);
|
|
|
|
proc.start(TDEProcess::Block);
|
|
|
|
proc.readln(EPSfilename);
|
|
|
|
proc.readln(EPSfilename);
|
|
|
|