pdf-out.cpp revision b91d3d6c8f909bda909028eada6bf410d60c95a0
/*
* A quick hack to use the print output to write out a file. This
* then makes 'save as...' PDF.
*
* Authors:
* Ted Gould <ted@gould.cx>
* Ulf Erikson <ulferikson@users.sf.net>
*
* Copyright (C) 2004-2006 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include "pdf-out.h"
#include <print.h>
#include "display/nr-arena.h"
#include "display/nr-arena-item.h"
#include "sp-path.h"
namespace Inkscape {
namespace Extension {
namespace Internal {
bool
{
return FALSE;
return TRUE;
}
static void
{
unsigned int ret;
/* Start */
/* fixme: This has to go into module constructor somehow */
/* Create new arena */
/* Print document */
/* Release arena */
/* end */
return;
}
/**
\brief This function calls the print system with the filename
\param mod unused
\param doc Document to be saved
\param uri Filename to save to (probably will end in .pdf)
The most interesting thing that this function does is just attach
an '>' on the front of the filename. This is the syntax used to
tell the printing system to save to file.
*/
void
{
return;
gchar * final_name;
return;
}
/**
\brief A function allocate a copy of this function.
This is the definition of PDF out. This function just
calls the extension system with the memory allocated XML that
describes the data.
*/
void
{
"<inkscape-extension>\n"
"<name>PDF Output</name>\n"
"<id>org.inkscape.output.pdf</id>\n"
"<param name=\"textToPath\" gui-text=\"Text to Path\" type=\"boolean\">true</param>\n"
"<output>\n"
"<extension>.pdf</extension>\n"
"<mimetype>application/pdf</mimetype>\n"
"<filetypename>PDF (*.pdf)</filetypename>\n"
"<filetypetooltip>PDF File</filetypetooltip>\n"
"</output>\n"
"</inkscape-extension>", new PdfOutput());
return;
}
} } } /* namespace Inkscape, Extension, Implementation */