diff options
| author | Ted Gould <ted@gould.cx> | 2006-05-02 05:22:24 +0000 |
|---|---|---|
| committer | gouldtj <gouldtj@users.sourceforge.net> | 2006-05-02 05:22:24 +0000 |
| commit | 2dd01f52ac47d75586160942f89c34fa6c095955 (patch) | |
| tree | 44ba500f486c3c0ee92d97dc90ca308745f53b11 /src/extension/extension.cpp | |
| parent | r11139@tres: ted | 2006-03-27 21:23:44 -0800 (diff) | |
| download | inkscape-2dd01f52ac47d75586160942f89c34fa6c095955.tar.gz inkscape-2dd01f52ac47d75586160942f89c34fa6c095955.zip | |
r11140@tres: ted | 2006-03-27 21:37:00 -0800
Adding nodes as parameters all the way through the parameter chain. Now
all we need is to start using them!
(bzr r658)
Diffstat (limited to 'src/extension/extension.cpp')
| -rw-r--r-- | src/extension/extension.cpp | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp index 6eb3a1728..7004e848f 100644 --- a/src/extension/extension.cpp +++ b/src/extension/extension.cpp @@ -405,17 +405,18 @@ param_shared (const gchar * name, GSList * list) in value. It isn't duplicated into the value string. \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. */ const gchar * -Extension::get_param_string (const gchar * name, const Inkscape::XML::Document * doc) +Extension::get_param_string (const gchar * name, const Inkscape::XML::Document * doc, const Inkscape::XML::Node * node) { Parameter * param; param = param_shared(name, parameters); - return param->get_string(doc); + return param->get_string(doc, node); } /** @@ -424,17 +425,18 @@ Extension::get_param_string (const gchar * name, const Inkscape::XML::Document * 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. */ bool -Extension::get_param_bool (const gchar * name, const Inkscape::XML::Document * doc) +Extension::get_param_bool (const gchar * name, const Inkscape::XML::Document * doc, const Inkscape::XML::Node * node) { Parameter * param; param = param_shared(name, parameters); - return param->get_bool(doc); + return param->get_bool(doc, node); } /** @@ -443,17 +445,18 @@ Extension::get_param_bool (const gchar * name, const Inkscape::XML::Document * d 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. */ int -Extension::get_param_int (const gchar * name, const Inkscape::XML::Document * doc) +Extension::get_param_int (const gchar * name, const Inkscape::XML::Document * doc, const Inkscape::XML::Node * node) { Parameter * param; param = param_shared(name, parameters); - return param->get_int(doc); + return param->get_int(doc, node); } /** @@ -462,16 +465,17 @@ Extension::get_param_int (const gchar * name, const Inkscape::XML::Document * do 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. */ float -Extension::get_param_float (const gchar * name, const Inkscape::XML::Document * doc) +Extension::get_param_float (const gchar * name, const Inkscape::XML::Document * doc, const Inkscape::XML::Node * node) { Parameter * param; param = param_shared(name, parameters); - return param->get_float(doc); + return param->get_float(doc, node); } /** @@ -481,16 +485,17 @@ Extension::get_param_float (const gchar * name, const Inkscape::XML::Document * \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. */ bool -Extension::set_param_bool (const gchar * name, bool value, Inkscape::XML::Document * doc) +Extension::set_param_bool (const gchar * name, bool value, Inkscape::XML::Document * doc, Inkscape::XML::Node * node) { Parameter * param; param = param_shared(name, parameters); - return param->set_bool(value, doc); + return param->set_bool(value, doc, node); } /** @@ -500,16 +505,17 @@ Extension::set_param_bool (const gchar * name, bool value, Inkscape::XML::Docume \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. */ int -Extension::set_param_int (const gchar * name, int value, Inkscape::XML::Document * doc) +Extension::set_param_int (const gchar * name, int value, Inkscape::XML::Document * doc, Inkscape::XML::Node * node) { Parameter * param; param = param_shared(name, parameters); - return param->set_int(value, doc); + return param->set_int(value, doc, node); } /** @@ -519,16 +525,17 @@ Extension::set_param_int (const gchar * name, int value, Inkscape::XML::Document \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. */ float -Extension::set_param_float (const gchar * name, float value, Inkscape::XML::Document * doc) +Extension::set_param_float (const gchar * name, float value, Inkscape::XML::Document * doc, Inkscape::XML::Node * node) { Parameter * param; param = param_shared(name, parameters); - return param->set_float(value, doc); + return param->set_float(value, doc, node); } /** @@ -538,16 +545,17 @@ Extension::set_param_float (const gchar * name, float value, Inkscape::XML::Docu \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. */ const gchar * -Extension::set_param_string (const gchar * name, const gchar * value, Inkscape::XML::Document * doc) +Extension::set_param_string (const gchar * name, const gchar * value, Inkscape::XML::Document * doc, Inkscape::XML::Node * node) { Parameter * param; param = param_shared(name, parameters); - return param->set_string(value, doc); + return param->set_string(value, doc, node); } /** \brief A function to open the error log file. */ |
