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/
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
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
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
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
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
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( \
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
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?
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
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.
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
12 matches
Mail list logo