Ask Your Question
0

Extract styles info from styles.xml ?

asked 2016-10-06 11:44:37 +0200

Pierre_A gravatar image

Hello, I am a French teacher (sorry for my english skills) and I teach Libreoffice (writer, calc, impress) to my students. The number of students recently has doubled so it takes really long time to evaluate their work. I am not able anymore to manually go into each file to check that all styles have been set up as required.

It would be very convenient to be able to extract from styles.xml (included in the odt file) all the styles that have been modified from the default file. I could then import all these information into calc and compute a mark for each student.

I have looked at styles.xml but i don't really know how the format works and if there is a simple way to do what I need.

Any hints ?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
0

answered 2016-10-06 21:06:30 +0200

floris v gravatar image

You may have more luck at http://forum.openoffice.org/en/forum/ - but keep in mind that even if you extract the styles.xml files, you still need a way to view the content and not just the tags.

edit flag offensive delete link more
0

answered 2016-10-10 21:53:10 +0200

mark_t gravatar image

I was wondering if this might be possible using Basic Macro so tried to create a macro based on info from Andrew Pitonyak's Open Office Macros Explained.

It's possible to list all the style properties and values, but for those properties that are Objects I was not able to list the property values of those objects.

Attached Calc file with macro if you'd like to see what was possible.

ListDocStyles.ods

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

2 followers

Stats

Asked: 2016-10-06 11:44:37 +0200

Seen: 215 times

Last updated: Oct 10 '16