[api-dev] error with pkgchk and windows

2005-03-17 Thread Ines Pfauch
Today I tried to use my java-addon (developed under linux) with OOo 1.1.2 at windows. After deploying the functions in the addon submenu were greyed out. In the log file from pkgchk I've found following error: warning: registering vnd.sun.star.expand:$UNO_USER_PACKAGES_CACHE/uno_packages/

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 10.03.2005, at 14:09, Christoph Lutz wrote: XDesktop desktop = (XDesktop)xmulticomponentfactory.createInstanceWithContext (com.sun.star.frame.Desktop, ctx); Unfortunately I get a ClassCastException at the line above. To get the URL is the only thing I need. I dont program more in java

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 11.03.2005, at 09:50, Jürgen Schmidt wrote: Object oDesktop = xmulticomponentfactory.createInstanceWithContext (com.sun.star.frame.Desktop, ctx); XDEsktop xDesktop = (XDesktop)UnoRuntime.queryInterface(XDesktop.class, oDesktop); I did. At the moment I use the following code, but it still

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 11.03.2005, at 10:15, Tom Schindl wrote: But as already suggested by Christian ((XModel)UnoRuntime.queryInterface (com.sun.star.XModel,xDesktop.getCurrentComponent())).getURL(); Should work. Tom No: I get the following error. cannot resolve symbol symbol : method queryInterface

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 11.03.2005, at 10:34, Tom Schindl wrote: Sorry should have been ((XModel)UnoRuntime.queryInterface (XModel.class,xDesktop.getCurrentComponent())).getURL(); Great. Thank you! It works. - To unsubscribe, e-mail: [EMAIL

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-11 Thread Ines Pfauch
On 11.03.2005, at 11:10, Tom Schindl wrote: It would be great if you would summerize this small thread which showed us not to use the MediaDescriptor.html#URL to retrieve the URL form a document but instead the XModel in a small and tiny codesnippet. It's worth the time you saved by people

Re: [api-dev] How can I get the url of the currently opened document?

2005-03-10 Thread Ines Pfauch
On 09.03.2005, at 13:20, Aidan Butler wrote: Hello, The URL of the document is stored as a property of the document component. The following python code will print the URL #ctx is the current context desktop = ctx.ServiceManager.createInstanceWithContext( \

[api-dev] How can I get the url of the currently opened document?

2005-03-09 Thread Ines Pfauch
My java addon now has some functions which are only visible if a document is opened. Before I can do anything with this document I need the url of it (path and name on the filesystem), how can I retrieve this? Thanks in advance, Ines

[api-dev] problem with external jar and java add-on - PS

2005-02-28 Thread Ines Pfauch
PS. When executing the program extern from OOo this error does not occur. Today I changed something in the addons.xcu file, but this should not be the problem, because older versions of my addon still make this strange error when executing within OOo. Does someone have an idea?

[api-dev] problem with jar file

2005-02-23 Thread Ines Pfauch
Hi, At first I am sorry, because I think my problem does not belong very good to this mailing list. For the last 20 weeks I was creating an java add-on for OOo. Now three days are left and my installer does not what it should. Therefore I hope, someone can help me: I have created a

Re: [api-dev] problem with jar file

2005-02-23 Thread Ines Pfauch
On 23.02.2005, at 13:24, Simon Mieth wrote: Hi Ines, Hi Simon, if I understand you correct and you want to copy the embeded zip-file. Yes, thats exactly what I want. (code) Thank your for your fast answer. And: THANK YOU so much for the code. With some simple changes it did exactly what I want.

[api-dev] pkgchk

2005-02-22 Thread Ines Pfauch
I have some questions about the OOo's commandline tool for deploying an addon to OOo: Is there somewhere a manual where I can find the possible parameters which I can use with pkgchk? In the forum and the Developers Guide I only have found informations like copy zip file to