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

GSList const * Inkscape::Selection::reprList (  ) 

Returns a list of the xml nodes of all selected objects.

Todo:
only returns reprs of SPItems currently; need a separate method for that

Definition at line 292 of file selection.cpp.

References itemList().

Referenced by sp_export_area_toggled(), and sp_export_export_clicked().

                                  {
    if (_reprs) { return _reprs; }

    for ( GSList const *iter=itemList() ; iter != NULL ; iter = iter->next ) {
        SPObject *obj=reinterpret_cast<SPObject *>(iter->data);
        _reprs = g_slist_prepend(_reprs, SP_OBJECT_REPR(obj));
    }
    _reprs = g_slist_reverse(_reprs);

    return _reprs;
}


Generated by  Doxygen 1.6.0   Back to index