index 7dd9dcf5e8f0cff19362e7cb3dd7a5d78e120b2d..f30cbc317a4413cd6b07270bd2542a15c3bfc86e 100644 (file)
/**
* Saves the Shapes of an Inkscape SVG file as PovRay spline definitions
*/
-void PovOutput::saveDocument(SPDocument *doc, gchar const *uri)
+void PovOutput::saveDocument(SPDocument *doc, gchar const *filename_utf8)
{
reset();
//# Lets do the curves first, to get the stats
if (!doTree(doc))
{
- err("Could not output curves for %s", uri);
+ err("Could not output curves for %s", filename_utf8);
return;
}
if (!doHeader())
{
- err("Could not write header for %s", uri);
+ err("Could not write header for %s", filename_utf8);
return;
}
if (!doTail())
{
- err("Could not write footer for %s", uri);
+ err("Could not write footer for %s", filename_utf8);
return;
}
//###### WRITE TO FILE
- Inkscape::IO::dump_fopen_call(uri, "L");
- FILE *f = Inkscape::IO::fopen_utf8name(uri, "w");
+ Inkscape::IO::dump_fopen_call(filename_utf8, "L");
+ FILE *f = Inkscape::IO::fopen_utf8name(filename_utf8, "w");
if (!f)
return;
*/
void
PovOutput::save(Inkscape::Extension::Output */*mod*/,
- SPDocument *doc, gchar const *uri)
+ SPDocument *doc, gchar const *filename_utf8)
{
- saveDocument(doc, uri);
+ /* See comments in JavaFSOutput::save re the name `filename_utf8'. */
+ saveDocument(doc, filename_utf8);
}
"<output>\n"
"<extension>.pov</extension>\n"
"<mimetype>text/x-povray-script</mimetype>\n"
- "<filetypename>" N_("PovRay (*.pov) (export splines)") "</filetypename>\n"
+ "<filetypename>" N_("PovRay (*.pov) (paths and shapes only)") "</filetypename>\n"
"<filetypetooltip>" N_("PovRay Raytracer File") "</filetypetooltip>\n"
"</output>\n"
"</inkscape-extension>",