Inkscape
Vector Graphics Editor
|
String type internal to SPStyle. More...
#include <style-internal.h>
Public Member Functions | |
SPIString (bool inherits=true) | |
SPIString (const SPIString &rhs) | |
~SPIString () override | |
void | read (gchar const *str) override |
const Glib::ustring | get_value () const override |
Value as it should be written to CSS representation, including quotes if needed. | |
void | clear () override |
void | cascade (const SPIBase *const parent) override |
void | merge (const SPIBase *const parent) override |
SPIString & | operator= (const SPIString &rhs) |
bool | equals (const SPIBase &rhs) const override |
char const * | value () const |
Get value if set, or inherited value, or default value (may be NULL) | |
![]() | |
SPIBase (bool inherits_=true) | |
virtual | ~SPIBase ()=default |
void | readIfUnset (gchar const *str, SPStyleSrc source=SPStyleSrc::STYLE_PROP) |
void | readAttribute (Inkscape::XML::Node *repr) |
bool | shall_write (guint const flags=SP_STYLE_FLAG_IFSET, SPStyleSrc const &style_src_req=SPStyleSrc::STYLE_PROP, SPIBase const *const base=nullptr) const |
Check if this property should be written. | |
virtual const Glib::ustring | write (guint const flags=SP_STYLE_FLAG_IFSET, SPStyleSrc const &style_src_req=SPStyleSrc::STYLE_PROP, SPIBase const *const base=nullptr) const |
Compile this style conditionally into a 'name: value' string suitable for css attrs. | |
void | overwrite (const SPIBase *const other) |
void | setStylePointer (SPStyle *style_in) |
SPIBase & | operator= (const SPIBase &rhs)=default |
bool | operator== (const SPIBase &rhs) const |
virtual SPAttr | id () const |
Glib::ustring const & | name () const |
Private Member Functions | |
char const * | get_default_value () const |
Private Attributes | |
gchar * | _value = nullptr |
Additional Inherited Members | |
![]() | |
bool | inherits: 1 |
bool | set: 1 |
bool | inherit: 1 |
bool | important: 1 |
SPStyleSrc | style_src |
![]() | |
char const * | important_str () const |
![]() | |
SPStyle * | style |
String type internal to SPStyle.
Definition at line 614 of file style-internal.h.
|
inline |
Definition at line 618 of file style-internal.h.
|
inline |
Definition at line 622 of file style-internal.h.
|
inlineoverride |
Definition at line 624 of file style-internal.h.
References _value.
|
overridevirtual |
Implements SPIBase.
Definition at line 1324 of file style-internal.cpp.
References _value, SPIBase::inherit, SPIBase::inherits, parent, and SPIBase::set.
|
overridevirtual |
Reimplemented from SPIBase.
Definition at line 1317 of file style-internal.cpp.
References _value, and SPIBase::clear().
Referenced by read().
|
overridevirtual |
Reimplemented from SPIBase.
Definition at line 1350 of file style-internal.cpp.
References _value, and SPIBase::equals().
|
private |
Definition at line 1303 of file style-internal.cpp.
References FONT_FAMILY, and FONT_FEATURE_SETTINGS.
|
overridevirtual |
Value as it should be written to CSS representation, including quotes if needed.
Implements SPIBase.
Definition at line 1279 of file style-internal.cpp.
References css_font_family_quote(), css_quote(), FONT_FAMILY, SPIBase::inherit, INKSCAPE_FONT_SPEC, SPIBase::set, and value().
|
overridevirtual |
Implements SPIBase.
Definition at line 1336 of file style-internal.cpp.
References _value, SPIBase::inherit, SPIBase::inherits, parent, and SPIBase::set.
Definition at line 634 of file style-internal.h.
References _value, and SPIBase::operator=().
|
overridevirtual |
Implements SPIBase.
Definition at line 1244 of file style-internal.cpp.
References _value, clear(), css_font_family_unquote(), css_unquote(), FONT_FAMILY, get_default_value(), SPIBase::inherit, INKSCAPE_FONT_SPEC, and SPIBase::set.
Referenced by SPIShapes::read().
char const * SPIString::value | ( | ) | const |
Get value if set, or inherited value, or default value (may be NULL)
Definition at line 1298 of file style-internal.cpp.
References _value, and get_default_value().
Referenced by SPShape::build(), find_references(), get_value(), SPShape::show(), sp_get_same_style(), SPShape::update(), and Inkscape::UI::Widget::StrokeStyle::updateAllMarkers().
|
private |
Definition at line 652 of file style-internal.h.
Referenced by cascade(), clear(), equals(), merge(), operator=(), read(), value(), and ~SPIString().