Logo Search packages:      
Sourcecode: inkscape version File versions  Download package

static void sp_style_merge_from_object_stylesheet ( SPStyle style,
SPObject const *  object 
) [static]

Todo:
Check what errors can occur, and handle them properly.

Definition at line 1232 of file style.cpp.

References SPObject::document, SPObject::repr, sp_repr_sel_eng(), and SPDocument::style_cascade.

Referenced by sp_style_read().

{
    static CRSelEng *sel_eng = NULL;
    if (!sel_eng) {
        sel_eng = sp_repr_sel_eng();
    }

    CRPropList *props = NULL;
    CRStatus status = cr_sel_eng_get_matched_properties_from_cascade(sel_eng,
                                                                     object->document->style_cascade,
                                                                     object->repr,
                                                                     &props);
    g_return_if_fail(status == CR_OK);
    /// \todo Check what errors can occur, and handle them properly.
    if (props) {
        sp_style_merge_from_props(style, props);
        cr_prop_list_destroy(props);
    }
}


Generated by  Doxygen 1.6.0   Back to index