From: Fridrich S. <str...@us...> - 2010-06-17 10:51:08
|
Update of /cvsroot/libwpg/perfectspot/src In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv13947 Modified Files: canvas.cpp renderer.cpp renderer.h Log Message: Rename the renderSVG and renderODG functions, so that their name does not mislead Index: renderer.cpp =================================================================== RCS file: /cvsroot/libwpg/perfectspot/src/renderer.cpp,v retrieving revision 1.21 retrieving revision 1.22 diff -u -d -r1.21 -r1.22 --- renderer.cpp 17 Jun 2010 10:47:10 -0000 1.21 +++ renderer.cpp 17 Jun 2010 10:51:00 -0000 1.22 @@ -98,7 +98,7 @@ } } -bool Renderer::renderSVG(const QString& outputFile) +bool Renderer::writeSVG(const QString& outputFile) { QFile file(outputFile); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) @@ -111,7 +111,7 @@ return true; } -bool Renderer::renderODG(const QString& outputFile) +bool Renderer::writeODG(const QString& outputFile) { const char* mimetype = "application/vnd.oasis.opendocument.graphics"; const char* manifest = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>" Index: renderer.h =================================================================== RCS file: /cvsroot/libwpg/perfectspot/src/renderer.h,v retrieving revision 1.3 retrieving revision 1.4 diff -u -d -r1.3 -r1.4 --- renderer.h 17 May 2007 14:56:35 -0000 1.3 +++ renderer.h 17 Jun 2010 10:51:00 -0000 1.4 @@ -43,9 +43,9 @@ void render(QPainter* target); - bool renderSVG(const QString& outputFile); + bool writeSVG(const QString& outputFile); - bool renderODG(const QString& outputFile); + bool writeODG(const QString& outputFile); QSize defaultSize() const; Index: canvas.cpp =================================================================== RCS file: /cvsroot/libwpg/perfectspot/src/canvas.cpp,v retrieving revision 1.25 retrieving revision 1.26 diff -u -d -r1.25 -r1.26 --- canvas.cpp 17 Jun 2010 10:33:55 -0000 1.25 +++ canvas.cpp 17 Jun 2010 10:51:00 -0000 1.26 @@ -313,10 +313,10 @@ return false; else if(file.toLower().endsWith(".svg")) - return renderer->renderSVG(file); + return renderer->writeSVG(file); else if(file.toLower().endsWith(".odg")) - return renderer->renderODG(file); + return renderer->writeODG(file); else if(file.toLower().endsWith(".pdf")) { |