
12 Sep
2012
12 Sep
'12
6:34 p.m.
On 12-Sep-2012 10:45, mathog wrote:
How to go about this?
Found an example that worked in clipboard.cpp. In ::Print, which has SPDocument *doc, use:
Inkscape::XML::Node *nv = sp_repr_lookup_name (doc->rroot, "sodipodi:namedview"); if(nv){ std::cout << "attr pagecolor " << nv->attribute("pagecolor") << std::endl; std::cout << "attr inkscape:pageopacity " << nv->attribute("inkscape:pageopacity") << std::endl; }
which emits:
attr pagecolor #c68b41 attr inkscape:pageopacity 0.62745098
I still don't see how to get there from SPStyle, but the method above is sufficient.
Regards,
David Mathog mathog@...1176... Manager, Sequence Analysis Facility, Biology Division, Caltech