29static SPStyleProp
const props[] = {
603#define n_attrs (sizeof(props) / sizeof(props[0]))
610class AttributeLookupImpl {
614 bool operator()(
char const *lhs,
char const *rhs)
const {
return std::strcmp(lhs, rhs) < 0; }
617 std::map<char const *, SPAttr, cstrless> m_map;
619 AttributeLookupImpl()
621 for (
unsigned int i = 1; i < n_attrs; i++) {
623 g_assert( (
int)(
props[i].code) == i);
636 static AttributeLookupImpl
const _instance;
649 g_assert((
int)
id < n_attrs);
655 std::vector<Glib::ustring>
result;
656 for (
auto prop :
props) {
658 result.emplace_back(prop.name);
gchar const * sp_attribute_name(SPAttr id)
Get attribute name by id.
SPAttr sp_attribute_lookup(gchar const *key)
Get attribute id by name.
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.
static SPStyleProp const props[]
Lookup dictionary for attributes/properties.
Lookup dictionary for attributes/properties.
@ INKSCAPE_DOCUMENT_UNITS
@ INKSCAPE_PERSP3D_ORIGIN
@ INKSCAPE_CONNECTOR_SPACING
@ INKSCAPE_ANTIALIAS_RENDERING
@ INKSCAPE_BOX3D_PERSPECTIVE_ID
@ INKSCAPE_HIGHLIGHT_COLOR
@ INKSCAPE_DESK_CHECKERBOARD
@ FONT_VARIANT_EAST_ASIAN
@ STRIKETHROUGH_THICKNESS
@ GLYPH_ORIENTATION_VERTICAL
@ INKSCAPE_BOX3D_SIDE_TYPE
@ FONT_VARIANT_ALTERNATES
@ INKSCAPE_CLIP_TO_PAGE_RENDERING
@ GLYPH_ORIENTATION_HORIZONTAL
@ INVALID
Must have value 0.
@ COLOR_INTERPOLATION_FILTERS
@ INKSCAPE_WINDOW_MAXIMIZED
@ FONT_VARIATION_SETTINGS
@ INKSCAPE_ORIGIN_CORRECTION
static InkscapeApplication * _instance
static cairo_user_data_key_t key