diff options
author | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-03-15 19:18:42 (GMT) |
---|---|---|
committer | dimitri <dimitri@afe2bf4a-e733-0410-8a33-86f594647bc7> | 2005-03-15 19:18:42 (GMT) |
commit | 2fcc16df64d2af93fc0bb01617f8531116118e8d (patch) | |
tree | 504aa22719248b74962bee0517b645cfabab52d2 /src/xmldocvisitor.cpp | |
parent | 5a6400835bc92fb56ef65126785cbe75f092f2d1 (diff) | |
download | Doxygen-2fcc16df64d2af93fc0bb01617f8531116118e8d.zip Doxygen-2fcc16df64d2af93fc0bb01617f8531116118e8d.tar.gz Doxygen-2fcc16df64d2af93fc0bb01617f8531116118e8d.tar.bz2 |
Release-1.4.1-20050315
Diffstat (limited to 'src/xmldocvisitor.cpp')
-rw-r--r-- | src/xmldocvisitor.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/xmldocvisitor.cpp b/src/xmldocvisitor.cpp index 7eb6b65..178a0aa 100644 --- a/src/xmldocvisitor.cpp +++ b/src/xmldocvisitor.cpp @@ -641,6 +641,21 @@ void XmlDocVisitor::visitPre(DocImage *img) m_t << "\""; } m_t << ">"; + + // copy the image to the output dir + QFile inImage(img->name()); + QFile outImage(Config_getString("XML_OUTPUT")+"/"+baseName.ascii()); + if (inImage.open(IO_ReadOnly)) + { + if (outImage.open(IO_WriteOnly)) + { + char *buffer = new char[inImage.size()]; + inImage.readBlock(buffer,inImage.size()); + outImage.writeBlock(buffer,inImage.size()); + outImage.flush(); + delete buffer; + } + } } void XmlDocVisitor::visitPost(DocImage *) |