12#ifndef INKSCAPE_EXTENSION_EFFECT_H__
13#define INKSCAPE_EXTENSION_EFFECT_H__
15#include <glibmm/ustring.h>
18#include <glibmm/i18n.h>
Effects are extensions that take a document and do something to it in place.
bool ignore_stderr
If stderr log should be shown, when process return code is 0.
void set_pref_dialog(PrefDialog *prefdialog)
static void place_menus()
PrefDialog * _prefDialog
The preference dialog if it is shown.
static gchar * remove_(gchar *instr)
static void set_last_effect(Effect *in_effect)
Sets which effect was called last.
void get_menu(Inkscape::XML::Node *pattern, std::list< Glib::ustring > &sub_menu_list) const
bool hidden_from_menu() const
void deactivate() override
This function diactivates the extension (which makes it unusable, but not deleted)
Inkscape::XML::Node * _menu_node
Menu node created for this effect.
Inkscape::XML::Node * find_menu(Inkscape::XML::Node *menustruct, const gchar *name)
Inkscape::XML::Node * _local_effects_menu
PrefDialog * get_pref_dialog()
std::string find_icon_file(const std::string &default_dir) const
const Glib::ustring & get_menu_tip() const
bool pipe_diffs
If changesets should be piped in via stdin.
void place_menu(Inkscape::XML::Node *menus)
static Effect * get_last_effect()
Static function to get the last effect used.
bool apply_filter(SPItem *item)
bool is_filter_effect() const
static Effect * _last_effect
This is the last effect that was used.
std::string get_sanitized_id() const
Sanitizes the id and returns.
std::list< Glib::ustring > get_menu_list() const
void effect(SPDesktop *desktop, SPDocument *document=nullptr)
The function that 'does' the effect itself.
Gtk::Box * get_info_widget()
bool _workingDialog
Whether a working dialog should be shown.
static void _sanitizeId(std::string &id)
The object that is the basis for the Extension system.
virtual bool prefs()
Create a dialog for preference for this extension.
A class to represent the preferences for an extension.
Interface for refcounted XML nodes.
To do: update description of desktop.
Typed SVG document implementation.
Base class for visual SVG elements.
Inkscape::Extension::Extension: Frontend to certain, possibly pluggable, actions.
Helper class to stream background task notifications as a series of messages.