summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f1244c7)
raw | patch | inline | side by side (parent: f1244c7)
author | acspike <acspike@users.sourceforge.net> | |
Mon, 22 Jan 2007 15:27:37 +0000 (15:27 +0000) | ||
committer | acspike <acspike@users.sourceforge.net> | |
Mon, 22 Jan 2007 15:27:37 +0000 (15:27 +0000) |
src/sp-style-elem.cpp | patch | blob | history | |
src/splivarot.cpp | patch | blob | history |
diff --git a/src/sp-style-elem.cpp b/src/sp-style-elem.cpp
index 4408f7ce86f200b0bec6decb435c609c21095ab4..d713a518b2f996740017c08d6ab08633d67d7539 100644 (file)
--- a/src/sp-style-elem.cpp
+++ b/src/sp-style-elem.cpp
@@ -131,7 +131,7 @@ sp_style_elem_write(SPObject *const object, Inkscape::XML::Node *repr, guint con
if (flags & SP_OBJECT_WRITE_BUILD) {
g_warning("nyi: Forming <style> content for SP_OBJECT_WRITE_BUILD.");
/* fixme: Consider having the CRStyleSheet be a member of SPStyleElem, and then
- pretty-print to a string s, then repr->addChild(sp_repr_new_text(s), NULL). */
+ pretty-print to a string s, then repr->addChild(xml_doc->createTextNode(s), NULL). */
}
if (style_elem.is_css) {
repr->setAttribute("type", "text/css");
diff --git a/src/splivarot.cpp b/src/splivarot.cpp
index f4f43fd490067fd071a32f5cf5f269804431d768..58adee3a26be9be0f213b1d78065a9c292504c0e 100644 (file)
--- a/src/splivarot.cpp
+++ b/src/splivarot.cpp
@@ -506,7 +506,8 @@ sp_selected_path_boolop(bool_op bop, const unsigned int verb, const Glib::ustrin
for (int i=0;i<nbRP;i++) {
gchar *d = resPath[i]->svg_dump_path();
- Inkscape::XML::Node *repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");
repr->setAttribute("style", style);
if (mask)
repr->setAttribute("mask", mask);
@@ -551,7 +552,8 @@ sp_selected_path_boolop(bool_op bop, const unsigned int verb, const Glib::ustrin
} else {
gchar *d = res->svg_dump_path();
- Inkscape::XML::Node *repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");
repr->setAttribute("style", style);
if ( mask )
if (res->descr_cmd.size() > 1) { // if there's 0 or 1 node left, drop this path altogether
- Inkscape::XML::Node *repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");
// restore old style
repr->setAttribute("style", style);
if (SP_IS_SHAPE(item) && sp_shape_has_markers (SP_SHAPE(item))) {
- Inkscape::XML::Node *g_repr = sp_repr_new("svg:g");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ Inkscape::XML::Node *g_repr = xml_doc->createElement("svg:g");
// add the group to the parent
parent->appendChild(g_repr);
tstr[79] = '\0';
- repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ repr = xml_doc->createElement("svg:path");
repr->setAttribute("sodipodi:type", "inkscape:offset");
sp_repr_set_svg_double(repr, "inkscape:radius", ( expand > 0
? o_width
tstr[79] = '\0';
- Inkscape::XML::Node *repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");
repr->setAttribute("style", style);
orig->Simplify(threshold * size);
}
- Inkscape::XML::Node *repr = sp_repr_new("svg:path");
+ Inkscape::XML::Document *xml_doc = sp_document_repr_doc(desktop->doc());
+ Inkscape::XML::Node *repr = xml_doc->createElement("svg:path");
// restore style, mask and clip-path
repr->setAttribute("style", style);