Hi, i couldn't answer your question, but currently there is a bug ( http://qa.openoffice.org/issues/show_bug.cgi?id=58667) which make the TextUserDefinedAttributes unusable, cause the reference to the attributes get lost after closing the document.
This bug was fixed in a 2.3 dev-build I tested a few weeks ago. Regards Jan
