diff options
| author | Ted Gould <ted@gould.cx> | 2007-08-10 17:38:51 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2007-08-10 17:38:51 +0000 |
| commit | b29eafffd0b92cc7b67e5cd877aad5e98b0f0231 (patch) | |
| tree | 167c348e5e11ebf3d8afec37593f023180675039 /src/extension/extension.cpp | |
| parent | fix 1767940 (diff) | |
| download | inkscape-b29eafffd0b92cc7b67e5cd877aad5e98b0f0231.tar.gz inkscape-b29eafffd0b92cc7b67e5cd877aad5e98b0f0231.zip | |
r16217@tres: ted | 2007-08-10 10:36:27 -0700
ImageMagick effects patch from Chris Brown. Google Summer of Code
project.
(bzr r3450)
Diffstat (limited to 'src/extension/extension.cpp')
| -rw-r--r-- | src/extension/extension.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp index 5082ba08e..b56a1d6f2 100644 --- a/src/extension/extension.cpp +++ b/src/extension/extension.cpp @@ -428,6 +428,13 @@ Extension::get_param_string (const gchar * name, const SPDocument * doc, const I return param->get_string(doc, node); } +const gchar * +Extension::get_param_enum (const gchar * name, const SPDocument * doc, const Inkscape::XML::Node * node) +{ + Parameter* param = param_shared(name, parameters); + return param->get_enum(doc, node); +} + /** \return The value of the parameter identified by the name \brief Gets a parameter identified by name with the bool placed @@ -488,6 +495,24 @@ Extension::get_param_float (const gchar * name, const SPDocument * doc, const In } /** + \return The string value for the parameter specified + \brief Gets a parameter identified by name with the float placed + in value. + \param name The name of the parameter to get + \param doc The document to look in for document specific parameters + \param node The node to look in for a specific parameter + + Look up in the parameters list, then execute the function on that + found parameter. +*/ +SPColor* +Extension::get_param_color (const gchar * name, const SPDocument * doc, const Inkscape::XML::Node * node) +{ + Parameter* param = param_shared(name, parameters); + return param->get_color(doc, node); +} + +/** \return The passed in value \brief Sets a parameter identified by name with the boolean in the parameter value. @@ -567,6 +592,25 @@ Extension::set_param_string (const gchar * name, const gchar * value, SPDocument return param->set_string(value, doc, node); } +/** + \return The passed in value + \brief Sets a parameter identified by name with the string + in the parameter value. + \param name The name of the parameter to set + \param value The value to set the parameter to + \param doc The document to look in for document specific parameters + \param node The node to look in for a specific parameter + + Look up in the parameters list, then execute the function on that + found parameter. +*/ +SPColor* +Extension::set_param_color (const gchar * name, SPColor* color, SPDocument * doc, Inkscape::XML::Node * node) +{ + Parameter* param = param_shared(name, parameters); + return param->set_color(color, doc, node); +} + /** \brief A function to open the error log file. */ void Extension::error_file_open (void) |
