Re: [api-dev] About user defined properties...

2009-04-01 Thread Vil
Hi Michael, Thank you very much, that explains much ;) I already figured out that I am doing something wrong, thats why i didn't raise a bug yet. getDocumentProperties works fine, thanks again. cu Phil Michael Stahl-3 wrote: > > On 30/03/2009 11:44, Vil wrote: >> Hi, >> >> I got a little pro

Re: [api-dev] About user defined properties...

2009-03-30 Thread Juergen Schmidt
Hi, Vil wrote: Hi, I got a little problem. I got an open Writer document and by clicking on a menu-item (my add-on) I am adding some userDefinedProperties and storing them to the current file by calling "storeToMedium". After that I am now able to retrieve them again by calling "loadFromMedium

Re: [api-dev] About user defined properties...

2009-03-30 Thread Vil
Hi, I got a little problem. I got an open Writer document and by clicking on a menu-item (my add-on) I am adding some userDefinedProperties and storing them to the current file by calling "storeToMedium". After that I am now able to retrieve them again by calling "loadFromMedium" (and passing th

Re: [api-dev] About user defined properties...

2009-03-10 Thread Mathias Bauer
Hi, the XDocumentInfo(Supplier) API has a design flaw and so we have deprecated it in 3.0. For new code it is recommended to use XDocumentProperties(Supplier) instead. Regards, Mathias Fernand Vanrie wrote: > giancarlo > > yep somethin like: >oDocinfo = thiscomponent.documentinfo >

Re: [api-dev] About user defined properties...

2009-03-03 Thread Fernand Vanrie
giancarlo yep somethin like: oDocinfo = thiscomponent.documentinfo if not oDocInfo.PropertySetInfo.HasPropertyByName("My property"") then oDocInfo.AddProperty("My property"",0,Myvalue else oDocInfo.setPropertyValue("My property"" , Myvalue

Re: [api-dev] About user defined properties...

2009-03-02 Thread giancarlo
ye! solved with this: XMultiComponentFactory xmcf = m_xContext.getServiceManager(); Object desktop = xmcf.createInstanceWithContext("com.sun.star.frame.Desktop", m_xContext); XDesktop xDesktop = (XDesktop) UnoRuntime.queryInterface(XDesktop.class, desktop);

Re: [api-dev] About user defined properties...

2009-03-02 Thread Fernand Vanrie
giancarlo do not match in Java but in basic: thiscomponent.documentinfo.propertyvalues(0).name or thiscomponent.documentinfo.getpropertyvalue(" the name") a user defined property is a property of the documentinfo and can been accesed by index or by name hop it helps Fernand gives yo wro

[api-dev] About user defined properties...

2009-03-02 Thread giancarlo
How can I get the user defined properties from an ooo file using the java ooo sdk?? I've been trying and trying with no success :( - To unsubscribe, e-mail: dev-unsubscr...@api.openoffice.org For additional commands, e-ma