3517 err(
"Output dir %s does not exist!\n",path); exit(1);
3531 QCString absDotName = absBaseName+
".dot";
3532 QCString absMapName = absBaseName+
".map";
3533 QCString absPdfName = absBaseName+
".pdf";
3534 QCString absEpsName = absBaseName+
".eps";
3535 QCString absImgName = absBaseName+
"."+imgExt;
3537 bool regenerate =
FALSE;
3548 usePDFLatex ? absPdfName : absEpsName,
3557 dotRun->
addJob(imgFmt,absImgName);
3561 else if (graphFormat==
GOF_EPS)
3566 dotRun->
addJob(
"pdf",absPdfName);
3570 dotRun->
addJob(
"ps",absEpsName);
3579 out <<
"<para>" <<
endl;
3580 out <<
" <figure>" <<
endl;
3581 out <<
" <title>Dependency diagram";
3582 out <<
"</title>" <<
endl;
3583 out <<
" <mediaobject>" <<
endl;
3584 out <<
" <imageobject>" <<
endl;
3585 out <<
" <imagedata";
3586 out <<
" width=\"50%\" align=\"center\" valign=\"middle\" scalefit=\"1\" fileref=\"" << relPath << baseName <<
"." << imgExt <<
"\">";
3587 out <<
"</imagedata>" <<
endl;
3588 out <<
" </imageobject>" <<
endl;
3589 out <<
" </mediaobject>" <<
endl;
3590 out <<
" </figure>" <<
endl;
3591 out <<
"</para>" <<
endl;
3593 else if (graphFormat==
GOF_BITMAP && generateImageMap)
3597 out <<
"<div class=\"center\">";
3605 out <<
"<!-- SVG " << mapId <<
" -->" <<
endl;
3607 out <<
"</div>" <<
endl;
3611 out <<
"<div class=\"center\"><img src=\"" << relPath << baseName <<
"." << imgExt <<
"\" border=\"0\" usemap=\"#" << mapName <<
"\" alt=\"\"/>";
3612 out <<
"</div>" <<
endl;
3614 QCString absMapName = absBaseName+
".map";
3615 if (regenerate || !
insertMapFile(out,absMapName,relPath,mapName))
3619 out <<
"<!-- MAP " << mapId <<
" -->" <<
endl;
3623 else if (graphFormat==
GOF_EPS)
3628 out << endl <<
"% FIG " << figId <<
endl;
Traverses directory structures and contents in a platform-independent way.
int addSVGConversion(const QCString &file, const QCString &relPath, bool urlOnly, const QCString &context, bool zoomable, int graphId)
QCString escapeCharsInString(const char *name, bool allowDots, bool allowUnderscore)
static bool insertMapFile(FTextStream &out, const QCString &mapFile, const QCString &relPath, const QCString &mapLabel)
static bool checkDeliverables(const QCString &file1, const QCString &file2=QCString())
static DotManager * instance()
int addMap(const QCString &file, const QCString &mapFile, const QCString &relPath, bool urlOnly, const QCString &context, const QCString &label)
#define Config_getEnum(val)
static void removeDotGraph(const QCString &dotName)
static bool updateDotGraph(DotNode *root, DotNode::GraphType gt, const QCString &baseName, GraphOutputFormat format, bool lrRank, bool renderParents, bool backArrows, const QCString &title=QCString())
static bool writeVecGfxFigure(FTextStream &out, const QCString &baseName, const QCString &figureName)
int addFigure(const QCString &file, const QCString &baseName, const QCString &figureName, bool heightCheck)
void addImageFile(const char *name)
#define Config_getBool(val)
QCString getDotImageExtension(void)
void err(const char *fmt,...)
int addSVGObject(const QCString &file, const QCString &baseName, const QCString &figureNAme, const QCString &relPath)
void addJob(const char *format, const char *output)
static bool writeSVGFigureLink(FTextStream &out, const QCString &relPath, const QCString &baseName, const QCString &absImgName)
QCString convertNameToFile(const char *name, bool allowDots, bool allowUnderscore)
QCString m_label
label text
void addRun(DotRunner *run)
static IndexList * indexList
QTextStream & endl(QTextStream &s)