Inkscape
Vector Graphics Editor
|
Go to the source code of this file.
Functions | |
SPAttr | sp_attribute_lookup (gchar const *key) |
Get attribute id by name. | |
gchar const * | sp_attribute_name (SPAttr id) |
Get attribute name by id. | |
std::vector< Glib::ustring > | sp_attribute_name_list (bool css_only) |
Get sorted attribute name list. | |
bool | SP_ATTRIBUTE_IS_CSS (SPAttr k) |
True iff k is a property in SVG, i.e. | |
Variables | |
static SPStyleProp const | props [] |
Lookup dictionary for attributes/properties. | |
bool SP_ATTRIBUTE_IS_CSS | ( | SPAttr | k | ) |
True iff k is a property in SVG, i.e.
something that can be written either in a style attribute or as its own XML attribute. This must be kept in sync with SPAttr.
Definition at line 665 of file attributes.cpp.
References D, and SYSTEM_LANGUAGE.
Referenced by SPClipPath::set(), SPHatch::set(), SPItem::set(), SPSolidColor::set(), SPStop::set(), SPHatchPath::set(), and sp_attribute_name_list().
SPAttr sp_attribute_lookup | ( | gchar const * | key | ) |
Get attribute id by name.
Return INVALID for invalid names.
Definition at line 634 of file attributes.cpp.
References _instance, INVALID, key, and sp_attribute_lookup().
Referenced by SPStyle::_mergeDecl(), SPPath::build(), cmp(), and sp_attribute_lookup().
gchar const * sp_attribute_name | ( | SPAttr | id | ) |
Get attribute name by id.
Return NULL for invalid ids.
Definition at line 647 of file attributes.cpp.
Referenced by SPGrid::_checkOldGrid(), Inkscape::UI::Widget::AttrWidget::attribute_value(), SPNamedView::change_bool_setting(), SPNamedView::change_color(), SPIBase::name(), Inkscape::UI::Dialog::SvgFontsDialog::AttrEntry::on_attr_changed(), Inkscape::UI::Dialog::SvgFontsDialog::AttrSpin::on_attr_changed(), SPObject::readAttr(), SPGradient::set(), SPItem::set(), SPRect::set(), SPTRef::set(), SPObject::set(), SPMetadata::set(), Inkscape::UI::Dialog::FilterEffectsDialog::set_attr(), and Inkscape::UI::Dialog::FilterEffectsDialog::set_filternode_attr().
std::vector< Glib::ustring > sp_attribute_name_list | ( | bool | css_only = false | ) |
Get sorted attribute name list.
css_only | If true, only return CSS properties |
Definition at line 653 of file attributes.cpp.
References props, result, and SP_ATTRIBUTE_IS_CSS().
Referenced by Inkscape::UI::Dialog::StyleDialog::_startNameEdit().
|
static |
Lookup dictionary for attributes/properties.
Definition at line 29 of file attributes.cpp.
Referenced by SPStyle::_mergeObjectStylesheet(), SPStyle::_mergeProps(), PdfParser::doShowText(), Avoid::ConnRef::generateStandardPath(), Inkscape::Extension::Internal::PdfBuilder::GroupContext::GroupContext(), Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_item_to_raster(), Inkscape::Extension::Internal::PdfBuilder::DrawContext::paint_raster(), Inkscape::UI::Dialog::StyleDialog::parseStyle(), sp_attribute_name(), and sp_attribute_name_list().