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
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
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
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
>
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
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);
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
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