Re: [api-dev] DIsableCommandTest.java

2006-03-20 Thread Tuomas Räsänen
Tobias Krais wrote: Hi Tuomas, I'm totally newbie here, but really motivated one. ;) I would appreciate a bit help here. Same to me three weeks ago. According to http://www.openoffice.org/files/documents/25/2570/commandsReference.html there should be a command named FormatMenu.

Re: [api-dev] About LayoutManager

2006-03-20 Thread Tuomas Räsänen
How about hiding a whole menu (e.g. Edit) instead of a menuitem. Is it possible? I haven't figured it out how, maybe something like: xLayoutManager.hideElement(private:resource/menubar/menubar/EditMenu); ? Tuomas - To

Re: [api-dev] About LayoutManager

2006-03-21 Thread Tuomas Räsänen
Thanks again. I guess I have to thank you many times in near future. ;) But, new questions rises all the time: Tobias Krais wrote: If you want to remove a whole menu, use this: -%- /** * This method removes the first menu from OpenOffice menubar. * Changes are transient.

[api-dev] DocumentConfiguration

2006-03-27 Thread Tuomas Räsänen
/default.xml and e.g. $OFFICE_DIR/share/config/soffice.cfg/modules/swriter/accelerator/en-US/default.xml) for the whole OpenOffice but in template files there is only /configuration2/menubar/menubar.xml) Curious regards, Tuomas Räsänen

[api-dev] creating non-modal dialog

2006-04-20 Thread Tuomas Räsänen
Hi, My goal is to create a non-modal dialog to replace default Styles and Formatting - dialog. MyDialog contains a listbox for styles just like the Style and Formatting - dialog. I would appreciate your opinion about the way I have done this dialog. There is also a problem: this dialog