Lines Matching refs:symbol

57 #include "sp-symbol.h"
211 sp_icon_new (Inkscape::ICON_SIZE_SMALL_TOOLBAR, INKSCAPE_ICON("symbol-add")))) );
220 sp_icon_new (Inkscape::ICON_SIZE_SMALL_TOOLBAR, INKSCAPE_ICON("symbol-remove")))) );
253 sp_icon_new (Inkscape::ICON_SIZE_SMALL_TOOLBAR, INKSCAPE_ICON("symbol-fit")))) );
265 sp_icon_new (Inkscape::ICON_SIZE_SMALL_TOOLBAR, INKSCAPE_ICON("symbol-smaller")))) );
275 sp_icon_new (Inkscape::ICON_SIZE_SMALL_TOOLBAR, INKSCAPE_ICON("symbol-bigger")))) );
430 SPObject* symbol = symbolDocument->getObjectById(symbol_id);
432 if(symbol && !selection->includes(symbol)) {
445 /* OK, we know symbol name... now we need to copy it to clipboard, bon chance! */
476 SPObject* symbol = symbolDocument->getObjectById(symbol_id);
478 if( symbol ) {
480 // Select the symbol on the canvas so it can be manipulated
481 currentDesktop->selection->set( symbol, false );
485 // First look for default style stored in <symbol>
486 gchar const* style = symbol->getAttribute("inkscape:symbol-style");
488 // If no default style in <symbol>, look in documents.
497 cm->copySymbol(symbol->getRepr(), style, symbolDocument == currentDocument);
539 // Create a string we can use for the symbol id (libvisio doesn't give us a name)
546 // Each "symbol" is in it's own SVG file, we wrap with <symbol> and merge into one file.
552 tmpSVGOutput += " <symbol id=\"";
568 tmpSVGOutput += " </symbol>\n";
579 /* Hunts preference directories for symbol files */
657 // Stop multiple counting of same symbol
732 SPSymbol *symbol = dynamic_cast<SPSymbol *>(obj);
733 if (symbol) {
734 add_symbol( symbol );
739 void SymbolsDialog::add_symbol( SPObject* symbol ) {
743 gchar const *id = symbol->getRepr()->attribute("id");
744 gchar const *title = symbol->title(); // From title element
749 Glib::RefPtr<Gdk::Pixbuf> pixbuf = draw_symbol( symbol );
762 * Returns image of symbol.
766 * <symbol> element and a <use> element that references the symbol
767 * element. Each real symbol is swapped in for the dummy symbol and
771 SymbolsDialog::draw_symbol(SPObject *symbol)
773 // Create a copy repr of the symbol with id="the_symbol"
775 Inkscape::XML::Node *repr = symbol->getRepr()->duplicate(xml_doc);
785 // First look for default style stored in <symbol>
786 gchar const* style = repr->attribute("inkscape:symbol-style");
788 // If no default style in <symbol>, look in documents.
789 if( symbol->document == currentDocument ) {
790 gchar const *id = symbol->getRepr()->attribute("id");
791 style = style_from_use( id, symbol->document );
793 style = symbol->document->getReprRoot()->attribute("style");
817 // Make sure we have symbol in previewDocument
862 // BUG: <symbol> must be inside <defs>
869 " <symbol id=\"the_symbol\"/>"