Logo Search packages:      
Sourcecode: inkscape version File versions

bool sp_repr_is_meta_element ( const Inkscape::XML::Node node  ) 

Determine if the node is a 'title', 'desc' or 'metadata' element.

Definition at line 474 of file repr-util.cpp.

{
    if (node == NULL) return false;
    if (node->type() != Inkscape::XML::ELEMENT_NODE) return false;
    gchar const *name = node->name();
    if (name == NULL) return false;
    if (!std::strcmp(name, "svg:title")) return true;
    if (!std::strcmp(name, "svg:desc")) return true;
    if (!std::strcmp(name, "svg:metadata")) return true;
    return false;
}


Generated by  Doxygen 1.6.0   Back to index