Re: [EXT] disable/enable toolbar functions

2012-01-31 Thread fabian
Gruß Fabian Hoffmann Software-Entwickler . Netempire AG | Lüghauser Straße 16 | D - 51503 Rösrath . Fon: 0221 99 11 12 - 19 | Fax: 0221 99 11 12 - 99 . mailto:f...@netempire.de | http://www.netempire.de __ . Vorstandsvorsitzender: Andreas N

Re: [EXT] disable/enable toolbar functions

2012-01-31 Thread Ariel Constenla-Haile
On Sun, Jan 29, 2012 at 06:04:44PM +0100, fabian wrote: > Right now I am trying to also disable the controls in the menubar but > I think there is a good example for that in the SDK > (DisableCommandsTest.java). yes, this is disabling commands by configuration: http://wiki.services.openoffice.org/

Re: [EXT] disable/enable toolbar functions

2012-01-29 Thread fabian
Hi Ariel, thx again for the example, it gave me a way better understanding for the concept of listeners and dispatch objects. In my case I used only a base dispatch class (as created by netbeans) and an instance of it, for each control command. All I actually needed yet was a listener helper w

Re: [EXT] disable/enable toolbar functions

2012-01-26 Thread fabian
Hi Ariel, wow thx for the java example, I appreciate it very much! I will go through it and figure out what I am doing wrong. best, Fabian On Jan 26, 2012, at 2:56 PM, Ariel Constenla-Haile wrote: > Hi Fabian, > > On Tue, Jan 24, 2012 at 10:04:35PM -0300, Ariel Constenla-Haile wrote: >> It

Re: [EXT] disable/enable toolbar functions

2012-01-26 Thread Ariel Constenla-Haile
Hi Fabian, On Tue, Jan 24, 2012 at 10:04:35PM -0300, Ariel Constenla-Haile wrote: > It looks as if you had some issues translating the code from C++ to > Java, on the other hand the C++ has some issues if you want to implement > it in a real-world use case (where you send status updates according

Re: [EXT] disable/enable toolbar functions

2012-01-24 Thread Ariel Constenla-Haile
Hi Fabian, On Wed, Jan 25, 2012 at 12:51:39AM +0100, fabian wrote: > Hi Ariel, > > thanks again for helping me out! > > I did what you described and tried to adapt the cpp example. my > extended toolbar has 3 controls (ImageButtons): control1, control2, > control3 Each registers at startup by

Re: [EXT] disable/enable toolbar functions

2012-01-24 Thread fabian
Hi Ariel, thanks again for helping me out! I did what you described and tried to adapt the cpp example. my extended toolbar has 3 controls (ImageButtons): control1, control2, control3 Each registers at startup by calling addStatusListener( aURL, aListener). Don't I need to put each of these l

Re: [EXT] disable/enable toolbar functions

2012-01-23 Thread Ariel Constenla-Haile
Hi Fabian, On Mon, Jan 23, 2012 at 09:51:27AM +0100, fabian wrote: > Hi, > > I am trying to disable/enable toolbar buttons in my java oo-extension. I guess you're using the so called "Complex Toolbar Controls" feature, aren't you? > I managed to use the addStatusListener method to use an addit

[EXT] disable/enable toolbar functions

2012-01-23 Thread fabian
Hi, I am trying to disable/enable toolbar buttons in my java oo-extension. I managed to use the addStatusListener method to use an additional dropdownbutton and know how to enable/disable buttons at startup. My problem is that I can't safe a reference to com.sun.star.frame.XStatusListener xCo