summaryrefslogtreecommitdiffstats
path: root/src/extension/param/string.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/extension/param/string.h')
-rw-r--r--src/extension/param/string.h18
1 files changed, 14 insertions, 4 deletions
diff --git a/src/extension/param/string.h b/src/extension/param/string.h
index 10f45e5ac..8e7f093f7 100644
--- a/src/extension/param/string.h
+++ b/src/extension/param/string.h
@@ -5,6 +5,7 @@
* Copyright (C) 2005-2007 Authors:
* Ted Gould <ted@gould.cx>
* Johan Engelen <johan@shouraizou.nl> *
+ * Jon A. Cruz <jon@joncruz.org>
* Released under GNU GPL, read the file 'COPYING' for more information
*/
@@ -23,22 +24,31 @@ private:
gchar * _value;
/** \brief Internal value. This indicates the maximum leght of the string. Zero meaning unlimited.
*/
+ int _indent;
gint _max_length;
public:
ParamString(const gchar * name, const gchar * guitext, const gchar * desc, const Parameter::_scope_t scope, bool gui_hidden, const gchar * gui_tip, Inkscape::Extension::Extension * ext, Inkscape::XML::Node * xml);
virtual ~ParamString(void);
+
/** \brief Returns \c _value, with a \i const to protect it. */
- const gchar * get (const SPDocument * /*doc*/, const Inkscape::XML::Node * /*node*/) { return _value; }
+ const gchar *get(SPDocument const * /*doc*/, Inkscape::XML::Node const * /*node*/) const { return _value; }
+
const gchar * set (const gchar * in, SPDocument * doc, Inkscape::XML::Node * node);
+
Gtk::Widget * get_widget(SPDocument * doc, Inkscape::XML::Node * node, sigc::signal<void> * changeSignal);
- void string (std::string &string);
+
+ // Explicitly call superclass version to avoid method being hidden.
+ virtual void string(std::list <std::string> &list) const { return Parameter::string(list); }
+
+ virtual void string(std::string &string) const;
+
void setMaxLength(int maxLenght) { _max_length = maxLenght; }
int getMaxLength(void) { return _max_length; }
};
-} /* namespace Extension */
-} /* namespace Inkscape */
+} // namespace Extension
+} // namespace Inkscape
#endif /* INK_EXTENSION_PARAMSTRING_H_SEEN */