14#ifndef INKSCAPE_EXTENSION_OUTPUT_H__
15#define INKSCAPE_EXTENSION_OUTPUT_H__
40 const gchar *
const id;
48 bool check()
override;
51 gchar
const *filename,
52 bool detachbase =
false);
54 std::string png_filename,
55 gchar
const *filename,
The object that is the basis for the Extension system.
export_id_not_found(const gchar *const id=nullptr)
const gchar *const id
< The object ID requested for export could not be found in the document
The existing file can not be opened for writing.
Failed because we couldn't find an extension to match the filename.
Generic failure for an undescribed reason.
void add_extension(std::string &filename)
Adds a valid extension to the filename if it's missing.
bool savecopy_only() const
gchar const * get_extension() const
Get the filename extension for this extension.
gchar const * get_mimetype() const
Get the mime-type that describes this extension.
gchar * filetypename
A userfriendly name for the file type.
bool savecopyonly
Limit output option to Save a Copy.
const char * get_filetypename(bool translated=false) const
Get the name of the filetype supported.
bool causes_dataloss() const
void export_raster(const SPDocument *doc, std::string png_filename, gchar const *filename, bool detachbase)
Save a rendered png as a raster output.
bool exported
Is the extension available in the export dialog.
gchar * filetypetooltip
A more detailed description of the filetype.
bool raster
Is the extension expecting a png file.
bool dataloss
The extension causes data loss on save.
gchar * mimetype
What is the mime type this inputs?
const char * get_filetypetooltip(bool translated=false) const
Get the tooltip for more information on the filetype.
~Output() override
Destroy an output extension.
gchar * extension
The extension of the input files.
void save(SPDocument *doc, gchar const *filename, bool detachbase=false)
Save a document as a file.
bool check() override
Validate this extension.
bool can_save_filename(gchar const *filename) const
Match filename to extension that can open it.
Interface for refcounted XML nodes.
Typed SVG document implementation.
Inkscape::Extension::Extension: Frontend to certain, possibly pluggable, actions.
Helper class to stream background task notifications as a series of messages.
Document was closed during execution of async extension.