I worked on a related question for exporting to odg. You may have a look at:
  src/extension/internal/odf.cpp

Look for the function OdfOutput::processStyle for sample code which could probably help you further. Item is a pointer to a normal SPItem structure (which you should be able to deduce from the selection).

(no further help possible, sorry)

Regards, K.



2013/6/30 Arshdeep Singh <moduli16@gmail.com>
I am currently working on retrieving the objects selected on the canvas.
Can someone help me with information on how to use 

getStyleProperty(gchar const *key, gchar const *def) {...} ?

I basically need to check if the style is solid fill and then retrieve the color.

I tried these variants: 1.) getStyleProperty("fill","1") = gibes me entire style field in XML editor except the 'fill' keyword written.

2) getStyleProperty("color",NULL) : (null) is returned.
Thanks.

--
Arshdeep Singh
Third Year, Computer Engineering
Delhi Technological University
Ph: +91-9654115614
https://sites.google.com/site/adsingh1729/home

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Inkscape-devel mailing list
Inkscape-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/inkscape-devel