/*
* Authors:
* Ted Gould <ted@gould.cx>
*
* Copyright (C) 2006 Johan Engelen <johan@shouraizou.nl>
* Copyright (C) 2002-2004 Authors
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "prefdialog.h"
#include "document.h"
#include "implementation/implementation.h"
#include "output.h"
/* Inkscape::Extension::Output */
namespace Inkscape {
namespace Extension {
/**
\return None
\brief Builds a SPModuleOutput object from a XML description
\param module The module to be initialized
\param repr The XML description in a Inkscape::XML::Node tree
Okay, so you want to build a SPModuleOutput object.
This function first takes and does the build of the parent class,
which is SPModule. Then, it looks for the <output> section of the
XML description. Under there should be several fields which
describe the output module to excruciating detail. Those are parsed,
copied, and put into the structure that is passed in as module.
Overall, there are many levels of indentation, just to handle the
levels of indentation in the XML file.
*/
Output::Output (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp) : Extension(in_repr, in_imp)
{
filetypename = NULL;
while (child_repr != NULL) {
while (child_repr != NULL) {
}
chname++;
}
}
}
}
}
}
}
break;
}
}
}
}
/**
\brief Destroy an output extension
*/
{
return;
}
/**
\return Whether this extension checks out
\brief Validate this extension
This function checks to make sure that the output extension has
a filename extension and a MIME type. Then it calls the parent
class' check function which also checks out the implmentation.
*/
bool
{
return FALSE;
return FALSE;
}
/**
\return IETF mime-type for the extension
\brief Get the mime-type that describes this extension
*/
gchar *
{
return mimetype;
}
/**
\return Filename extension for the extension
\brief Get the filename extension for this extension
*/
gchar *
{
return extension;
}
/**
\return The name of the filetype supported
\brief Get the name of the filetype supported
*/
gchar *
{
if (filetypename != NULL)
return filetypename;
else
return get_name();
}
/**
\return Tooltip giving more information on the filetype
\brief Get the tooltip for more information on the filetype
*/
gchar *
{
return filetypetooltip;
}
/**
\return A dialog to get settings for this extension
\brief Create a dialog for preference for this extension
Calls the implementation to get the preferences.
*/
bool
{
if (!loaded())
if (!loaded()) return false;
// std::cout << "No preferences for Output" << std::endl;
return true;
}
delete dialog;
}
/**
\return None
\brief Save a document as a file
\param doc Document to save
\param filename File to save the document as
This function does a little of the dirty work involved in saving
a document so that the implementation only has to worry about geting
bits on the disk.
The big thing that it does is remove and read the fields that are
only used at runtime and shouldn't be saved. One that may surprise
people is the output extension. This is not saved so that the IDs
could be changed, and old files will still work properly.
*/
void
{
try {
}
catch (...) {
}
return;
}
} } /* namespace Inkscape, Extension */
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4 :