summaryrefslogtreecommitdiffstats
path: root/src/extension
diff options
context:
space:
mode:
authorRalf Stephan <ralf@ark.in-berlin.de>2006-02-13 19:14:47 +0000
committerrwst <rwst@users.sourceforge.net>2006-02-13 19:14:47 +0000
commitdce08c184686d4cef1f1961926cce339429f5aba (patch)
tree58a437a00423768c653d1a90ddb5cf65bfe71efd /src/extension
parentclosed up denial-of-service attack vector (ironically located in an (diff)
downloadinkscape-dce08c184686d4cef1f1961926cce339429f5aba.tar.gz
inkscape-dce08c184686d4cef1f1961926cce339429f5aba.zip
bulk whitespace removal patch #1198588 by gigaclon
(bzr r134)
Diffstat (limited to 'src/extension')
-rw-r--r--src/extension/extension.cpp12
-rw-r--r--src/extension/implementation/plugin.cpp2
-rw-r--r--src/extension/internal/gnome.cpp4
-rw-r--r--src/extension/parameter.cpp46
4 files changed, 32 insertions, 32 deletions
diff --git a/src/extension/extension.cpp b/src/extension/extension.cpp
index 4aac7780a..42b220576 100644
--- a/src/extension/extension.cpp
+++ b/src/extension/extension.cpp
@@ -313,7 +313,7 @@ Extension::get_name (void)
\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
@@ -377,7 +377,7 @@ Parameter *
param_shared (const gchar * name, GSList * list)
{
Parameter * output;
-
+
if (name == NULL) {
throw Extension::param_not_exist();
}
@@ -407,7 +407,7 @@ const gchar *
Extension::get_param_string (const gchar * name, const Inkscape::XML::Document * doc)
{
Parameter * param;
-
+
param = param_shared(name, parameters);
return param->get_string(doc);
}
@@ -426,7 +426,7 @@ bool
Extension::get_param_bool (const gchar * name, const Inkscape::XML::Document * doc)
{
Parameter * param;
-
+
param = param_shared(name, parameters);
return param->get_bool(doc);
}
@@ -445,7 +445,7 @@ int
Extension::get_param_int (const gchar * name, const Inkscape::XML::Document * doc)
{
Parameter * param;
-
+
param = param_shared(name, parameters);
return param->get_int(doc);
}
@@ -553,7 +553,7 @@ Extension::error_file_open (void)
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);
diff --git a/src/extension/implementation/plugin.cpp b/src/extension/implementation/plugin.cpp
index 0bc3267f4..aebc94b8d 100644
--- a/src/extension/implementation/plugin.cpp
+++ b/src/extension/implementation/plugin.cpp
@@ -34,7 +34,7 @@ Plugin::Plugin(void)
return;
}
-/**
+/**
\brief Oh, so someone actually wants to use this plugin! We better
go and grab it then!
\param module Unused except to pass to the plugin's load function.
diff --git a/src/extension/internal/gnome.cpp b/src/extension/internal/gnome.cpp
index adeb36ef6..6c6563e7e 100644
--- a/src/extension/internal/gnome.cpp
+++ b/src/extension/internal/gnome.cpp
@@ -239,7 +239,7 @@ PrintGNOME::fill(Inkscape::Extension::Print *mod,
dpbox.y0 = pbox->y0;
dpbox.x1 = pbox->x1;
dpbox.y1 = pbox->y1;
- painter = sp_paint_server_painter_new(SP_STYLE_FILL_SERVER(style),
+ painter = sp_paint_server_painter_new(SP_STYLE_FILL_SERVER(style),
// FIXME: the second matrix below must be the parent (context) transform.
// I don't know what it must be for gnome-print. --bb
ctm, NR::identity(),
@@ -394,7 +394,7 @@ void
PrintGNOME::init (void)
{
Inkscape::Extension::Extension * ext;
-
+
/* SVG in */
ext = Inkscape::Extension::build_from_mem(
"<inkscape-extension>\n"
diff --git a/src/extension/parameter.cpp b/src/extension/parameter.cpp
index 76163ac49..88da74a1d 100644
--- a/src/extension/parameter.cpp
+++ b/src/extension/parameter.cpp
@@ -236,13 +236,13 @@ Parameter::make (Inkscape::XML::Node * in_repr, Inkscape::Extension::Extension *
Parameter * param = NULL;
if (!strcmp(type, "boolean")) {
param = new ParamBool(name, guitext, in_ext, in_repr);
- } else if (!strcmp(type, "int")) {
+ } else if (!strcmp(type, "int")) {
param = new ParamInt(name, guitext, in_ext, in_repr);
- } else if (!strcmp(type, "float")) {
+ } else if (!strcmp(type, "float")) {
param = new ParamFloat(name, guitext, in_ext, in_repr);
- } else if (!strcmp(type, "string")) {
+ } else if (!strcmp(type, "string")) {
param = new ParamString(name, guitext, in_ext, in_repr);
- }
+ }
/* Note: param could equal NULL */
return param;
@@ -348,7 +348,7 @@ Parameter::get_bool (const Inkscape::XML::Document * doc)
boolpntr = dynamic_cast<ParamBool *>(this);
if (boolpntr == NULL)
throw Extension::param_wrong_type();
- return boolpntr->get(doc);
+ return boolpntr->get(doc);
}
/** \brief Wrapper to cast to the object and use it's function. */
@@ -359,7 +359,7 @@ Parameter::get_int (const Inkscape::XML::Document * doc)
intpntr = dynamic_cast<ParamInt *>(this);
if (intpntr == NULL)
throw Extension::param_wrong_type();
- return intpntr->get(doc);
+ return intpntr->get(doc);
}
/** \brief Wrapper to cast to the object and use it's function. */
@@ -370,7 +370,7 @@ Parameter::get_float (const Inkscape::XML::Document * doc)
floatpntr = dynamic_cast<ParamFloat *>(this);
if (floatpntr == NULL)
throw Extension::param_wrong_type();
- return floatpntr->get(doc);
+ return floatpntr->get(doc);
}
/** \brief Wrapper to cast to the object and use it's function. */
@@ -381,7 +381,7 @@ Parameter::get_string (const Inkscape::XML::Document * doc)
stringpntr = dynamic_cast<ParamString *>(this);
if (stringpntr == NULL)
throw Extension::param_wrong_type();
- return stringpntr->get(doc);
+ return stringpntr->get(doc);
}
/** \brief Wrapper to cast to the object and use it's function. */
@@ -392,7 +392,7 @@ Parameter::set_bool (bool in, Inkscape::XML::Document * doc)
boolpntr = dynamic_cast<ParamBool *>(this);
if (boolpntr == NULL)
throw Extension::param_wrong_type();
- return boolpntr->set(in, doc);
+ return boolpntr->set(in, doc);
}
/** \brief Wrapper to cast to the object and use it's function. */
@@ -403,7 +403,7 @@ Parameter::set_int (int in, Inkscape::XML::Document * doc)
intpntr = dynamic_cast<ParamInt *>(this);
if (intpntr == NULL)
throw Extension::param_wrong_type();
- return intpntr->set(in, doc);
+ return intpntr->set(in, doc);
}
/** \brief Wrapper to cast to the object and use it's function. */
@@ -414,7 +414,7 @@ Parameter::set_float (float in, Inkscape::XML::Document * doc)
floatpntr = dynamic_cast<ParamFloat *>(this);
if (floatpntr == NULL)
throw Extension::param_wrong_type();
- return floatpntr->set(in, doc);
+ return floatpntr->set(in, doc);
}
/** \brief Wrapper to cast to the object and use it's function. */
@@ -425,7 +425,7 @@ Parameter::set_string (const gchar * in, Inkscape::XML::Document * doc)
stringpntr = dynamic_cast<ParamString *>(this);
if (stringpntr == NULL)
throw Extension::param_wrong_type();
- return stringpntr->set(in, doc);
+ return stringpntr->set(in, doc);
}
/** \brief Initialize the object, to do that, copy the data. */
@@ -504,7 +504,7 @@ public:
describing the parameter. */
ParamFloatAdjustment (ParamFloat * param) :
Gtk::Adjustment(0.0, param->min(), param->max(), 0.1), _pref(param) {
- this->set_value(_pref->get(NULL) /* \todo fix */);
+ this->set_value(_pref->get(NULL) /* \todo fix */);
this->signal_value_changed().connect(sigc::mem_fun(this, &ParamFloatAdjustment::val_changed));
return;
};
@@ -535,7 +535,7 @@ public:
describing the parameter. */
ParamIntAdjustment (ParamInt * param) :
Gtk::Adjustment(0.0, param->min(), param->max(), 1.0), _pref(param) {
- this->set_value(_pref->get(NULL) /* \todo fix */);
+ this->set_value(_pref->get(NULL) /* \todo fix */);
this->signal_value_changed().connect(sigc::mem_fun(this, &ParamIntAdjustment::val_changed));
return;
};
@@ -559,7 +559,7 @@ ParamIntAdjustment::val_changed (void)
/**
\brief Creates a Float Adjustment for a float parameter
-
+
Builds a hbox with a label and a float adjustment in it.
*/
Gtk::Widget *
@@ -583,7 +583,7 @@ ParamFloat::get_widget (void)
/**
\brief Creates a Int Adjustment for a int parameter
-
+
Builds a hbox with a label and a int adjustment in it.
*/
Gtk::Widget *
@@ -615,7 +615,7 @@ private:
public:
/** \brief Initialize the check button
\param param Which parameter to adjust on changing the check button
-
+
This function sets the value of the checkbox to be that of the
parameter, and then sets up a callback to \c on_toggle.
*/
@@ -642,7 +642,7 @@ ParamBoolCheckButton::on_toggle (void)
/**
\brief Creates a bool check button for a bool parameter
-
+
Builds a hbox with a label and a check button in it.
*/
Gtk::Widget *
@@ -696,7 +696,7 @@ ParamStringEntry::changed_text (void)
/**
\brief Creates a text box for the string parameter
-
+
Builds a hbox with a label and a text box in it.
*/
Gtk::Widget *
@@ -722,12 +722,12 @@ Glib::ustring *
ParamBool::string (void)
{
Glib::ustring * mystring;
-
- if (_value)
+
+ if (_value)
mystring = new Glib::ustring("true");
else
mystring = new Glib::ustring("false");
-
+
return mystring;
}
@@ -757,7 +757,7 @@ ParamString::string (void)
{
Glib::ustring * mystring = new Glib::ustring("");
*mystring += "\"";
- *mystring += _value;
+ *mystring += _value;
*mystring += "\"";
return mystring;
}