Re: [api-dev] Calling a script (XScript invoke)

2006-10-11 Thread Jürgen Schmidt
Bernard Marcelly wrote: Hi again, Some additional info. Message du 2006-10-10 21:18: Hi Jürgen, Message du 2006-10-10 17:07: out parameters working fine, you simply have to initialize the array and an array with the length of 0 is fine. Yes, this is what I did in Javascript. And it does

Re: [api-dev] Calc: Switch DesignMode On/Off

2006-10-11 Thread Frank Schönheit - Sun Microsystems Ger many
Hi Paolo, After Mathias pointed out an easy way to do this, do we still need the issue? ;) It would remain the problem of testing the condition Is it in FormDesignMode? Okay, that might deserve a dedicated API. Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED]

Re: [api-dev] Calc: Switch DesignMode On/Off

2006-10-11 Thread Frank Schönheit - Sun Microsystems Germ any
Hi Bart, thisComponent.ApplyFormDesignMode = true|false This changes the initial form design mode, which is used when opening the document. What you say exactly? Setting this function does not have any immediate effect. Instead, it is evaluated when the document is loaded next

[api-dev] UNSANSWERED: a non-modal dialog

2006-10-11 Thread Nicolai Stange
Hi, in reply to Jurgen and Andreas ([EMAIL PROTECTED] REQUEST: unanswered questions). This hasn't been answered yet. Nicolai -- Weitergeleitete Nachricht -- Subject: [api-dev] Making of a non-modal dialog Date: Samstag 07 Oktober 2006 17:23 From: Nicolai Stange [EMAIL

[api-dev] inserting ole object into writer

2006-10-11 Thread Christian Andersson
this is a small question. Is it possible from within the api to insert an ole object from file, just like it can be done using the insert-object-insert object ? I've been looking around, and as far as I can see this is not easy to do. I've seen a workaround that uses the accessibility system

Re: [api-dev] Calling a script (XScript invoke)

2006-10-11 Thread Bernard Marcelly
Bonjour Jürgen Schmidt Message du 2006-10-11 08:05: Bernard Marcelly wrote: Hi again, Some additional info. Message du 2006-10-10 21:18: Hi Jürgen, Message du 2006-10-10 17:07: out parameters working fine, you simply have to initialize the array and an array with the length of 0 is fine.

Re: [api-dev] Calling a script (XScript invoke)

2006-10-11 Thread Jürgen Schmidt
Bernard Marcelly wrote: Bonjour Jürgen Schmidt Message du 2006-10-11 08:05: Bernard Marcelly wrote: Hi again, Some additional info. Message du 2006-10-10 21:18: Hi Jürgen, Message du 2006-10-10 17:07: out parameters working fine, you simply have to initialize the array and an array with

Re: [api-dev] UNSANSWERED: a non-modal dialog

2006-10-11 Thread Berend Cornelius
Hi Nocolai, you may also just set the window of your dialog visible. xDialog = xMultiServiceFactory.createInstance(com.sun.star.awt.UnoControlDialog); xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xDialog); xWindow.setVisible(true); After that you have to capture your programm

Re: [api-dev] Calling a script (XScript invoke)

2006-10-11 Thread Bernard Marcelly
Bonjour Jürgen Schmidt Message du 2006-10-11 16:06: Bernard Marcelly wrote: Run on Windows XP, I get after first invoke: a[0][0] = 0 b[0][0] = Hello That's better but not yet the expected result. It should display Finished because macro show2 has assigned Finished to the argument... yes,

[api-dev] Re: UNSANSWERED: a non-modal dialog

2006-10-11 Thread Andreas Saeger
I believe you should use modal dialog with an implementation of com.sun.star.sheet.XRangeSelectionListener Private sRangeSelection$,bRangeSelecting As Boolean Sub test_RangeSelection() oController = thisComponent.getCurrentController() if

Re: [api-dev] Calc: Switch DesignMode On/Off

2006-10-11 Thread Mathias Bauer
Frank Schönheit - Sun Microsystems Germany wrote: Hi Mathias, Switching off the design mode with the dispatch API is done in the following way: (quote signs to avoid line breaks) sub designmodeoff document = ThisComponent.CurrentController.Frame dispatcher =

Re: [api-dev] UNSANSWERED: a non-modal dialog

2006-10-11 Thread Mathias Bauer
Berend Cornelius wrote: Hi Nocolai, you may also just set the window of your dialog visible. xDialog = xMultiServiceFactory.createInstance(com.sun.star.awt.UnoControlDialog); xWindow = (XWindow) UnoRuntime.queryInterface(XWindow.class, xDialog); xWindow.setVisible(true); After that you

Re: [api-dev] Calc: Switch DesignMode On/Off

2006-10-11 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Mathias, I'm a little bit unclear about an API for the design mode. First IMHO this isn't an API that you would expect to have at the model. It looks like something UI related. Maybe we can see this as a view setting? Where is it stored in the file format? It's definitely a view setting,