Hi caoloan
Thanks for this work
I've put together an experimental "blogger for word" style blogger
plugin for OpenOffice.org 2.0 at
http://people.redhat.com/caolanm/oooblogger/
i didn't have time to test it buit red you wanted to use doc Info
instead of subject
Please find here an example using pyUNO
please also note that the firelds can be renamed with the setUserFieldName
HTH
Laurent
'------------------
def enumerateInfoFields(xDoc):
theInfos = xDoc.getDocumentInfo()
numberOfInfos = theInfos.getUserFieldCount()
#printing Userfields
print "Before changes"
for i in range(numberOfInfos):
print "--> Field %s = %s" % (theInfos.getUserFieldName(i),
theInfos.getUserFieldValue(i))
#filling userfields - Note that both Name and value can be changed
for i in range(numberOfInfos):
theInfos.setUserFieldName(i,"Blog param #%s" % (str(i+1)))
theInfos.setUserFieldValue(i,"a value #%s" % str(i+1))
print "After changes"
for i in range(numberOfInfos):
print "--> Field %s = %s" % (theInfos.getUserFieldName(i),
theInfos.getUserFieldValue(i))
return
--
Laurent Godard <[EMAIL PROTECTED]> - Ingénierie OpenOffice.org
Indesko >> http://www.indesko.com
Nuxeo CPS >> http://www.nuxeo.com - http://www.cps-project.org
Livre "Programmation OpenOffice.org", Eyrolles 2004
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]