index 4aac7780af88a955335a163c6a1e35d0dad6d921..62f590be327d6119379ec3936002e9d763c21397 100644 (file)
not related to the module directly. If the Repr does not include
a name and an ID the module will be left in an errored state.
*/
-Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp)
+Extension::Extension (Inkscape::XML::Node * in_repr, Implementation::Implementation * in_imp) : _help(NULL)
{
repr = in_repr;
Inkscape::GC::anchor(in_repr);
if (!strcmp(chname, "name")) {
name = g_strdup (sp_repr_children(child_repr)->content());
} /* name */
+ if (!strcmp(chname, "help")) {
+ _help = g_strdup (sp_repr_children(child_repr)->content());
+ } /* name */
if (!strcmp(chname, "param")) {
Parameter * param;
param = Parameter::make(child_repr, this);
\return None
\brief This function diactivates the extension (which makes it
unusable, but not deleted)
-
+
This function is used to removed an extension from functioning, but
not delete it completely. It sets the state to \c STATE_DEACTIVATED to
mark to the world that it has been deactivated. It also removes
param_shared (const gchar * name, GSList * list)
{
Parameter * output;
-
+
if (name == NULL) {
throw Extension::param_not_exist();
}
Extension::get_param_string (const gchar * name, const Inkscape::XML::Document * doc)
{
Parameter * param;
-
+
param = param_shared(name, parameters);
return param->get_string(doc);
}
Extension::get_param_bool (const gchar * name, const Inkscape::XML::Document * doc)
{
Parameter * param;
-
+
param = param_shared(name, parameters);
return param->get_bool(doc);
}
Extension::get_param_int (const gchar * name, const Inkscape::XML::Document * doc)
{
Parameter * param;
-
+
param = param_shared(name, parameters);
return param->get_int(doc);
}
error_file.open(filename);
if (!error_file.is_open()) {
g_warning(_("Could not create extension error log file '%s'"),
- filename);
+ filename);
}
g_free(filename);
g_free(ext_error_file);