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

2006-10-16 Thread Frank Schönheit - Sun Microsystems Germa ny
Hi Mathias, Why is this strange? It's more on the level of, say, the background color, than, say, the zoom level: It's an aspect of the document which its designer describes how to look like. I consider it to be strange as it isn't relevant if you access the document by its API, it is

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

2006-10-14 Thread Mathias Bauer
Frank Schönheit wrote: Hi Mathias, Besides that it looks strange that ApplyFormDesignMode is a model property. Is it stored in the content.xml or in the settings.xml? content.xml. Why is this strange? It's more on the level of, say, the background color, than, say, the zoom level:

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

2006-10-13 Thread Frank Schönheit
Hi Mathias, Besides that it looks strange that ApplyFormDesignMode is a model property. Is it stored in the content.xml or in the settings.xml? content.xml. Why is this strange? It's more on the level of, say, the background color, than, say, the zoom level: It's an aspect of the document

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

2006-10-12 Thread Mathias Bauer
Frank Schönheit - Sun Microsystems Germany wrote: 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

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

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] 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,

[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] 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] 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] 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] 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