Re: [api-dev] How to force laying out of document

2006-10-10 Thread Mathias Bauer
Kent Gibson wrote: Is there anyway I can force the laying out of the document. I have tried using the XRefreshable interface and xTextDocument.reformat() and but that still does not seem to really do the trick. This should be enough IMHO. It is also debatable if retrieving the LayoutSize

Re: [api-dev] How to get current Windows UserName ?

2006-10-10 Thread Fernand Vanrie
Thanks Cor, work like a charm :-) Cor Nouws schreef: Hi Fernard, Fernand Vanrie wrote: How can I get the current Window UserName using a Basic Macro., I mean the user who uses the local machine where Openoffice is running. Environ( USERNAME ) This is Windows only. Regards,

Re: [api-dev] Copy/insert a DialogLibrary into a WriterDocument

2006-10-10 Thread Fernand Vanrie
Fernand Vanrie schreef: Hello all, I can copy/install a Basiclibrary from one Doc to a other Doc!!! But: i can not copy/install the BasicDialogs of the same library ??? I can get the Dialoglibrary of the current document (= DialogLibraries) I can get the Global DialogLibraries ( =

Re: [api-dev] Copy/insert a DialogLibrary into a WriterDocument

2006-10-10 Thread Fernand Vanrie
Fernand Vanrie schreef: Fernand Vanrie schreef: Hello all, I can copy/install a Basiclibrary from one Doc to a other Doc!!! But: i can not copy/install the BasicDialogs of the same library ??? I can get the Dialoglibrary of the current document (= DialogLibraries) I can get the Global

Re: [api-dev] [code snippet] Improve sorting capabilities

2006-10-10 Thread Tom Schindl
Hi, Thanks. The Snippet is integrated and can be found at http://codesnippets.services.openoffice.org/Calc/Calc.ImproveSortingCapabilities.snip Tom signature.asc Description: OpenPGP digital signature

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

2006-10-10 Thread Bart Aimar
Hi all, how to switch Design Mode on/off via macro in Calc? Thanks in advanced Bart - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

2006-10-10 Thread Laurent Godard
Hi how to switch Design Mode on/off via macro in Calc? did you try thisComponent.ApplyFormDesignMode = true|false Laurent -- Laurent Godard [EMAIL PROTECTED] - Ingénierie OpenOffice.org - http://www.indesko.com Nuxeo Enterprise Content Management http://www.nuxeo.com -

Re: [api-dev] Copy/insert a DialogLibrary into a WriterDocument

2006-10-10 Thread Cor Nouws
Fernand Vanrie wrote: Is there a workaround to get to DialogsContainer of a document ? '= DialogLibraries' takes always the document from where we runs the macro Does ThisComponent.getLibrarycontainer() provide any help? If I would know it by head, of course I would have given the answer.

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

2006-10-10 Thread Frank Schönheit - Sun Microsystems Germ any
Hi Laurent, how to switch Design Mode on/off via macro in Calc? did you try thisComponent.ApplyFormDesignMode = true|false This changes the initial form design mode, which is used when opening the document. For switching the current design mode, you need to dispatch the URL

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

2006-10-10 Thread Bart Aimar
Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Laurent, how to switch Design Mode on/off via macro in Calc? did you try thisComponent.ApplyFormDesignMode = true|false Seems not work... !? This changes the initial form design mode, which is used when opening the document.

Re: [api-dev] How does one sync within a template?

2006-10-10 Thread G. Roderick Singleton
On Fri, 2006-10-06 at 17:22 -0400, G. Roderick Singleton wrote: I have been combing through sources, api webpages trying to find the command or set of commands that will allow one to synchronize the contents (frames) of a page(s) with the contents of the first one. I have a special form that

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

2006-10-10 Thread Bart Aimar
Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Bart, Hi Frank ... zot... http://api.openoffice.org/servlets/SearchList?list=devsearchText=setDesignModedefaultField=subjectSearch=Search http://api.openoffice.org/servlets/ReadMsg?listName=devmsgNo=11668 good :-) Most of the

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

2006-10-10 Thread Frank Schönheit - Sun Microsystems Germ any
Hi Bart, Yes, but like user I espect a simple line command and a simple variable to set ON or OFF, 0 or 1, true or false... Feel free to submit an RFE (request for enhancement) in IssueZilla for this. Assign it to me, and I'll see what I can do :) Ciao Frank -- - Frank Schönheit,

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

2006-10-10 Thread Bart Aimar
Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Bart, Yes, but like user I espect a simple line command and a simple variable to set ON or OFF, 0 or 1, true or false... Feel free to submit an RFE (request for enhancement) in IssueZilla for this. Assign it to me, and I'll

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

2006-10-10 Thread Mathias Bauer
Frank Schönheit - Sun Microsystems Germany wrote: Hi Laurent, how to switch Design Mode on/off via macro in Calc? did you try thisComponent.ApplyFormDesignMode = true|false This changes the initial form design mode, which is used when opening the document. For switching the current

Re: [api-dev] How does one sync within a template?

2006-10-10 Thread Mathias Bauer
G. Roderick Singleton wrote: On Fri, 2006-10-06 at 17:22 -0400, G. Roderick Singleton wrote: I have been combing through sources, api webpages trying to find the command or set of commands that will allow one to synchronize the contents (frames) of a page(s) with the contents of the first

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

2006-10-10 Thread Bernard Marcelly
Hi Jürgen, Message du 2006-10-10 17:07: your problem is probably quite simple. you extracted the code from a Java example where you see the mapped types from IDL. In the IDL file you see the corresponding IDL types. An out parameter is mapped to an array of length 1, a sequence is mapped to an

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

2006-10-10 Thread Frank Schönheit - Sun Microsystems Germa ny
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 = createUnoService(com.sun.star.frame.DispatchHelper) dim args(0) as new

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

2006-10-10 Thread Frank Schönheit - Sun Microsystems Germ any
Hi Bart, Posting issue The name frank schönheit is not a valid username... can you help me? sorry: fs is my OOo login name. After Mathias pointed out an easy way to do this, do we still need the issue? ;) Ciao Frank -- - Frank Schönheit, Software Engineer [EMAIL PROTECTED] - -

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

2006-10-10 Thread Bernard Marcelly
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 not work with a called

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

2006-10-10 Thread Paolo Mantovani
Hi Frank, Alle 21:43, martedì 10 ottobre 2006, Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Bart, Posting issue The name frank schönheit is not a valid username... can you help me? sorry: fs is my OOo login name. After Mathias pointed out an easy way to do this, do we

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

2006-10-10 Thread Bart Aimar
Frank Schönheit - Sun Microsystems Germany ha scritto: sorry: fs is my OOo login name. After Mathias pointed out an easy way to do this, do we still need the issue? ;) Yes... maibe a stupid request about the subject of this thread... but in general I love the simple functions... :-) But

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

2006-10-10 Thread Bart Aimar
Paolo Mantovani ha scritto: Ciao Paolo, It would remain the problem of testing the condition Is it in FormDesignMode? The Pitonyak code have a specific function... (but it is based on listeners and dispatch :-(( ) http://api.openoffice.org/servlets/ReadMsg?listName=devmsgNo=11668

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

2006-10-10 Thread Jürgen Schmidt
Paolo Mantovani wrote: Hi Frank, Alle 21:43, martedì 10 ottobre 2006, Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Bart, Posting issue The name frank schönheit is not a valid username... can you help me? sorry: fs is my OOo login name. After Mathias pointed out an easy way