Logo Search packages:      
Sourcecode: inkscape version File versions

void ColorProfile::build ( SPObject object,
SPDocument document,
Inkscape::XML::Node repr 
) [static, private]

Callback: set attributes from associated repr.

Definition at line 202 of file color-profile.cpp.

References SPObjectClass::build, href, intentStr, local, name, and sp_object_read_attr().

Referenced by classInit().

{
    ColorProfile *cprof = COLORPROFILE(object);
    g_assert(cprof->href == 0);
    g_assert(cprof->local == 0);
    g_assert(cprof->name == 0);
    g_assert(cprof->intentStr == 0);

    if (cprof_parent_class->build) {
        (* cprof_parent_class->build)(object, document, repr);
    }
    sp_object_read_attr( object, "xlink:href" );
    sp_object_read_attr( object, "local" );
    sp_object_read_attr( object, "name" );
    sp_object_read_attr( object, "rendering-intent" );

    // Register
    if ( document ) {
        sp_document_add_resource( document, "iccprofile", object );
    }
}


Generated by  Doxygen 1.6.0   Back to index