Definition at line 26 of file dia.cpp.
29{
32 absOutFile+=outFile;
33
34
36
38
42 diaArgs+="-n ";
44 {
45 diaArgs+="-t png-libart";
46 extension=".png";
47 }
49 {
50 diaArgs+="-t eps";
51 extension=".eps";
52 }
53
54 diaArgs+=" -e \"";
55 diaArgs+=outFile;
56 diaArgs+=extension+"\"";
57
58 diaArgs+=" \"";
59 diaArgs+=inFile;
60 diaArgs+="\"";
61
62
64 {
65 err_full(srcFile,srcLine,
"Problems running %s. Check your installation or look typos in you dia file %s",
67 goto error;
68 }
70 {
72 epstopdfArgs.sprintf("\"%s.eps\" --outfile=\"%s.pdf\"",
75 {
76 err(
"Problems running epstopdf. Check your TeX installation!\n");
77 }
78 else
79 {
81 }
82 }
83
84error:
86}
Class representing a directory in the file system.
static std::string currentDirPath()
bool remove(const std::string &path, bool acceptsAbsPath=true) const
static bool setCurrent(const std::string &path)
This is an alternative implementation of QCString.
const std::string & str() const
#define Config_getBool(name)
#define Config_getString(name)
static const int maxCmdLine
#define err_full(file, line, fmt,...)
int system(const QCString &command, const QCString &args, bool commandHasConsole=true)
const char * commandExtension()
const char * qPrint(const char *s)
References BITMAP, Portable::commandExtension(), Config_getBool, Config_getString, Dir::currentDirPath(), EPS, err, err_full, QCString::ExplicitSize, FALSE, maxCmdLine, Portable::pathSeparator(), qPrint(), Dir::remove(), Dir::setCurrent(), QCString::sprintf(), QCString::str(), and Portable::system().
Referenced by DocbookDocVisitor::startDiaFile(), LatexDocVisitor::startDiaFile(), DocbookDocVisitor::writeDiaFile(), HtmlDocVisitor::writeDiaFile(), LatexDocVisitor::writeDiaFile(), and RTFDocVisitor::writeDiaFile().