Doxygen
|
Helper class to insert a set of map file into an output file. More...
#include <src/dotfilepatcher.h>
Classes | |
struct | Map |
Public Member Functions | |
DotFilePatcher (const QCString &patchFile) | |
int | addMap (const QCString &mapFile, const QCString &relPath, bool urlOnly, const QCString &context, const QCString &label) |
int | addFigure (const QCString &baseName, const QCString &figureName, bool heightCheck) |
int | addSVGConversion (const QCString &relPath, bool urlOnly, const QCString &context, bool zoomable, int graphId) |
int | addSVGObject (const QCString &baseName, const QCString &figureName, const QCString &relPath) |
bool | run () const |
bool | isSVGFile () const |
Static Public Member Functions | |
static bool | convertMapFile (TextStream &t, const QCString &mapName, const QCString &relPath, bool urlOnly=FALSE, const QCString &context=QCString()) |
static bool | writeSVGFigureLink (TextStream &out, const QCString &relPath, const QCString &baseName, const QCString &absImgName) |
Check if a reference to a SVG figure can be written and do so if possible. | |
static bool | writeVecGfxFigure (TextStream &out, const QCString &baseName, const QCString &figureName) |
Private Attributes | |
std::vector< Map > | m_maps |
QCString | m_patchFile |
Helper class to insert a set of map file into an output file.
Definition at line 26 of file dotfilepatcher.h.
DotFilePatcher::DotFilePatcher | ( | const QCString & | patchFile | ) |
Definition at line 261 of file dotfilepatcher.cpp.
References m_patchFile.
int DotFilePatcher::addFigure | ( | const QCString & | baseName, |
const QCString & | figureName, | ||
bool | heightCheck ) |
Definition at line 279 of file dotfilepatcher.cpp.
References m_maps.
int DotFilePatcher::addMap | ( | const QCString & | mapFile, |
const QCString & | relPath, | ||
bool | urlOnly, | ||
const QCString & | context, | ||
const QCString & | label ) |
Definition at line 271 of file dotfilepatcher.cpp.
References m_maps.
int DotFilePatcher::addSVGConversion | ( | const QCString & | relPath, |
bool | urlOnly, | ||
const QCString & | context, | ||
bool | zoomable, | ||
int | graphId ) |
Definition at line 287 of file dotfilepatcher.cpp.
References m_maps.
Referenced by writeDotImageMapFromFile().
int DotFilePatcher::addSVGObject | ( | const QCString & | baseName, |
const QCString & | figureName, | ||
const QCString & | relPath ) |
Definition at line 296 of file dotfilepatcher.cpp.
References m_maps.
|
static |
converts the rectangles in a client site image map into a stream
t | the stream to which the result is written. |
mapName | the name of the map file. |
relPath | the relative path to the root of the output directory (used in case CREATE_SUBDIRS is enabled). |
urlOnly | if FALSE the url field in the map contains an external references followed by a $ and then the URL. |
context | the context (file, class, or namespace) in which the map file was found |
Definition at line 219 of file dotfilepatcher.cpp.
References err, FALSE, QCString::find(), QCString::left(), QCString::length(), Portable::openInputStream(), qPrint(), replaceRef(), QCString::right(), QCString::startsWith(), and TRUE.
Referenced by insertMapFile(), run(), and writeDotImageMapFromFile().
bool DotFilePatcher::isSVGFile | ( | ) | const |
bool DotFilePatcher::run | ( | ) | const |
Definition at line 305 of file dotfilepatcher.cpp.
References Config_getBool, DotFilePatcher::Map::context, convertMapFile(), correctId(), QCString::data(), TextStream::empty(), err, FALSE, QCString::find(), findIndex(), TextStream::flush(), DotFilePatcher::Map::graphId, isSVGFile(), DotFilePatcher::Map::label, QCString::left(), m_maps, m_patchFile, DotFilePatcher::Map::mapFile, QCString::mid(), Portable::openInputStream(), Portable::openOutputStream(), qPrint(), DotFilePatcher::Map::relPath, Dir::remove(), Dir::rename(), replaceRef(), TextStream::setStream(), QCString::str(), TextStream::str(), stripPath(), substitute(), svgZoomFooter1, svgZoomFooter2, svgZoomHeader0, svgZoomHeader0_noinit, svgZoomHeader1, svgZoomHeader2, TRUE, DotFilePatcher::Map::urlOnly, writeSVGFigureLink(), writeVecGfxFigure(), and DotFilePatcher::Map::zoomable.
Referenced by writeDotImageMapFromFile().
|
static |
Check if a reference to a SVG figure can be written and do so if possible.
Returns FALSE if not possible (for instance because the SVG file is not yet generated).
Definition at line 576 of file dotfilepatcher.cpp.
References FALSE, readSVGSize(), TRUE, and writeSVGNotSupported().
Referenced by DotGraph::generateCode(), run(), and writeDotImageMapFromFile().
|
static |
Definition at line 615 of file dotfilepatcher.cpp.
References Config_getBool, FALSE, DotRunner::readBoundingBox(), and TRUE.
Referenced by DotGraph::generateCode(), and run().
|
private |
Definition at line 69 of file dotfilepatcher.h.
Referenced by addFigure(), addMap(), addSVGConversion(), addSVGObject(), and run().
|
private |
Definition at line 70 of file dotfilepatcher.h.
Referenced by DotFilePatcher(), isSVGFile(), and run().