Re: [api-dev] About LayoutManager

2006-03-21 Thread Tobias Krais
Hi Tuomas, 1. Where did you find that Persistent property? I didn't find any suitable XUIElement's properties from IDL Ref. Where should I look for properties of interfaces in general? It seems like IDL Reference hasn't got answers for every questions. Or I just don't know how to look for.

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.

Re: [api-dev] About LayoutManager

2006-03-20 Thread Carsten Driesner
Tuomas Räsänen wrote: Hi, I've been trying to find out how to hide UIElements in frames and come to a conclusion that the XLayoutManager interface is the key. Am I right? Alas, I haven't figured out how to do it properly. Following piece of code doesn't work. What should I do differently?

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