diff options
| author | Tavmjong Bah <tavmjong@free.fr> | 2019-09-06 09:10:24 +0000 |
|---|---|---|
| committer | Tavmjong Bah <tavmjong@free.fr> | 2019-09-06 09:10:24 +0000 |
| commit | 8a2c433d2042c1389dbc235278d20e70e3b92c0d (patch) | |
| tree | 0acf40642441c89d2ea77bdc947a5a44cebf5c57 /src/style-internal.h | |
| parent | Fix error in GTK launch script (diff) | |
| download | inkscape-8a2c433d2042c1389dbc235278d20e70e3b92c0d.tar.gz inkscape-8a2c433d2042c1389dbc235278d20e70e3b92c0d.zip | |
Add listeners for when shapes used by text are changed.
Diffstat (limited to '')
| -rw-r--r-- | src/style-internal.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/style-internal.h b/src/style-internal.h index a28474870..8cdf29144 100644 --- a/src/style-internal.h +++ b/src/style-internal.h @@ -716,6 +716,28 @@ public: gchar *value_default; }; +/// Shapes type internal to SPStyle. +// Used for 'shape-inside', shape-subtract' +// Differs from SPIString by creating/deleting listeners on referenced shapes. +class SPIShapes : public SPIString +{ + +public: + SPIShapes() + : SPIString() + {} + + // TODO probably want to avoid gchar* and c-style strings. + SPIShapes( Glib::ustring const &name, gchar const* value_default_in = nullptr ) + : SPIString( name, value_default_in ) + {} + + void read( gchar const *str ) override; + +public: + std::vector<Glib::ustring> shape_ids; +}; + /// Color type internal to SPStyle, FIXME Add string value to store SVG named color. class SPIColor : public SPIBase { |
