Searched defs:rtext (Results 1 - 3 of 3) sorted by relevance

/inkscape/src/
H A Dtext-chemistry.cpp416 Inkscape::XML::Node *rtext = xml_doc->createElement("svg:text"); local
417 rtext->setAttribute("xml:space", "preserve"); // we preserve spaces in the text objects we create
420 rtext->setAttribute("style", flowtext->getRepr()->attribute("style")); // fixme: transfer style attrs too; and from descendants
425 sp_repr_set_svg_double(rtext, "x", xy[Geom::X]);
426 sp_repr_set_svg_double(rtext, "y", xy[Geom::Y]);
432 rtext->addChild(rtspan, NULL);
439 flowtext->parent->getRepr()->appendChild(rtext);
440 SPObject *text_object = doc->getObjectByRepr(rtext);
449 Inkscape::GC::release(rtext);
/inkscape/src/ui/tools/
H A Dtext-tool.cpp397 Inkscape::XML::Node *rtext = xml_doc->createElement("svg:text"); local
398 rtext->setAttribute("xml:space", "preserve"); // we preserve spaces in the text objects we create
401 sp_desktop_apply_style_tool(ec->desktop, rtext, "/tools/text", true);
403 sp_repr_set_svg_double(rtext, "x", tc->pdoc[Geom::X]);
404 sp_repr_set_svg_double(rtext, "y", tc->pdoc[Geom::Y]);
409 rtext->addChild(rtspan, NULL);
416 SPItem *text_item = SP_ITEM(ec->desktop->currentLayer()->appendChildRepr(rtext));
420 Inkscape::GC::release(rtext);
H A Dmeasure-tool.cpp919 Inkscape::XML::Node *rtext = xml_doc->createElement("svg:text"); local
920 rtext->setAttribute("xml:space", "preserve");
924 sp_desktop_apply_style_tool(desktop, rtext, "/tools/text", true);
926 sp_repr_set_svg_double(rtext, "x", 2);
927 sp_repr_set_svg_double(rtext, "y", 2);
929 sp_repr_set_svg_double(rtext, "x", 0);
930 sp_repr_set_svg_double(rtext, "y", 0);
963 rtext->addChild(rtspan, NULL);
969 SPItem *text_item = SP_ITEM(desktop->currentLayer()->appendChildRepr(rtext));
970 Inkscape::GC::release(rtext);
[all...]

Completed in 96 milliseconds