Lines Matching defs:attribute

2  * attribute-rel-util.h
19 #include "xml/attribute-record.h"
21 #include "attribute-rel-css.h"
22 #include "attribute-rel-svg.h"
24 #include "attribute-rel-util.h"
99 Glib::ustring id = (repr->attribute( "id" )==NULL ? "" : repr->attribute( "id" ));
101 // Clean style: this attribute is unique in that normally we want to change it and not simply
111 Glib::ustring attribute = g_quark_to_string(iter->key);
114 bool is_useful = sp_attribute_check_attribute( element, id, attribute, flags & SP_ATTR_CLEAN_ATTR_WARN );
116 attributesToDelete.insert( attribute );
140 // Convert css node's properties data to string and set repr node's attribute "style" to that string.
189 Glib::ustring id = (repr->attribute( "id" )==NULL ? "" : repr->attribute( "id" ));
267 * Check one attribute on an element
269 bool sp_attribute_check_attribute(Glib::ustring element, Glib::ustring id, Glib::ustring attribute, bool warn) {
273 if( SPAttributeRelCSS::findIfProperty( attribute ) ) {
275 // First check if it is a presentation attribute. Presentation attributes can be applied to
277 // attribute. Note, we don't explicitely check against the list of elements where presentation
279 if( !SPAttributeRelCSS::findIfValid( attribute, element ) ) {
281 // Non-useful presentation attribute on SVG <element>
283 g_warning( "<%s id=\"%s\">: Non-useful presentation attribute: \"%s\" found.",
286 attribute.c_str() );
293 // Second check if it is a valid attribute
294 if ( !SPAttributeRelSVG::findIfValid( attribute, element ) ) {
296 // Invalid attribute on SVG <element>
298 g_warning( "<%s id=\"%s\">: Invalid attribute: \"%s\" found.",
301 attribute.c_str() );