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

2006-10-15 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 zoo

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 i

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 settin

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

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

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 = creat

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

2006-10-11 Thread Bart Aimar
Frank Schönheit - Sun Microsystems Germany ha scritto: Hi Bart, Hi Frank, Setting this function does not have any immediate effect. Instead, it is evaluated when the document is loaded next time: If it's TRUE, then the form layer will be in design mode after the document has been loaded. If

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

2006-10-10 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

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

2006-10-10 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 PRO

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

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=dev&msgNo=11668

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... :-) Bu

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

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 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(

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 switchi

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

2006-10-10 Thread Bart Aimar
Bart Aimar ha scritto: Frank Schönheit - Sun Microsystems Germany ha scritto: Feel free to submit an RFE (request for enhancement) in IssueZilla for this. Assign it to me, Sorry Frank... Posting issue The name frank schönheit is not a valid username... can you help me? Bart -

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 see

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

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=dev&searchText=setDesignMode&defaultField=subject&Search=Search http://api.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=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, > I found the thread on my HD, but no trace on the web... (?) > > Subject: [api-dev] setDesignMode on/off > 10/11/2004 03:39 > > Can anyone found it? http://api.openoffice.org/servlets/SearchList?list=dev&searchText=setDesignMode&defaultField=subject&Search=Search http://api.openoffice

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 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 .uno:SwitchC

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 - http://www.nux

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