3834 err(
"Output dir %s does not exist!\n",path); exit(1);
3844 QCString absDotName = absBaseName+
".dot";
3845 QCString absMapName = absBaseName+
".map";
3846 QCString absPdfName = absBaseName+
".pdf";
3847 QCString absEpsName = absBaseName+
".eps";
3848 QCString absImgName = absBaseName+
"."+imgExt;
3850 bool regenerate =
FALSE;
3861 usePDFLatex ? absPdfName : absEpsName,
3870 dotRun->
addJob(imgFmt,absImgName);
3875 else if (graphFormat==
GOF_EPS)
3881 dotRun->
addJob(
"pdf",absPdfName);
3885 dotRun->
addJob(
"ps",absEpsName);
3895 out <<
"<para>" <<
endl;
3896 out <<
" <figure>" <<
endl;
3897 out <<
" <title>Call diagram";
3898 out <<
"</title>" <<
endl;
3899 out <<
" <mediaobject>" <<
endl;
3900 out <<
" <imageobject>" <<
endl;
3901 out <<
" <imagedata";
3902 out <<
" width=\"50%\" align=\"center\" valign=\"middle\" scalefit=\"1\" fileref=\"" << relPath << baseName <<
"." << imgExt <<
"\">";
3903 out <<
"</imagedata>" <<
endl;
3904 out <<
" </imageobject>" <<
endl;
3905 out <<
" </mediaobject>" <<
endl;
3906 out <<
" </figure>" <<
endl;
3907 out <<
"</para>" <<
endl;
3909 else if (graphFormat==
GOF_BITMAP && generateImageMap)
3913 out <<
"<div class=\"center\">";
3921 out <<
"<!-- SVG " << mapId <<
" -->" <<
endl;
3923 out <<
"</div>" <<
endl;
3927 out <<
"<div class=\"center\"><img src=\"" << relPath << baseName <<
"." 3928 << imgExt <<
"\" border=\"0\" usemap=\"#" 3929 << mapName <<
"\" alt=\"";
3931 out <<
"</div>" <<
endl;
3933 if (regenerate || !
insertMapFile(out,absMapName,relPath,mapName))
3937 out <<
"<!-- MAP " << mapId <<
" -->" <<
endl;
3941 else if (graphFormat==
GOF_EPS)
3946 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)
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)
void addRun(DotRunner *run)
static IndexList * indexList
QTextStream & endl(QTextStream &s)