RE: Who can tell me more about SfxToolBoxControls and registerControl()?

2012-04-04 Thread Winfried Donkers
Jan Holesovsky wrote (4 april 2012) > > git grep advises that they are in the factory functions like > > SwDLL::RegisterControls() in sw/source/ui/app/swmodule.cxx; so in the case > > of the report designer, I'd call it somewhere where it is instantiated - > > one of > > the create() methods liste

RE: Who can tell me more about SfxToolBoxControls and registerControl()?

2012-04-04 Thread Winfried Donkers
> Michael Stahl wrote (4 april 2012 11:11) > > Thank you for your help. I am trying that, but haven't found the > > module pointer yet (in swmodule SwModule*) that needs to passed to > > RegisterControl(). Any ideas where to look for that? > > hi Winfried, > > try this: SW_MOD() > Hi Michael,

Re: Who can tell me more about SfxToolBoxControls and registerControl()?

2012-04-04 Thread Michael Stahl
On 04/04/12 09:08, Winfried Donkers wrote: > Thank you for your help. I am trying that, but haven't found the > module pointer yet (in swmodule SwModule*) that needs to passed to > RegisterControl(). Any ideas where to look for that? hi Winfried, try this: SW_MOD() _

RE: Who can tell me more about SfxToolBoxControls and registerControl()?

2012-04-04 Thread Jan Holesovsky
Hi Winfried, On 2012-04-04 at 09:08 +0200, Winfried Donkers wrote: > > git grep advises that they are in the factory functions like > > SwDLL::RegisterControls() in sw/source/ui/app/swmodule.cxx; so in the case > > of the report designer, I'd call it somewhere where it is instantiated - > > one

RE: Who can tell me more about SfxToolBoxControls and registerControl()?

2012-04-04 Thread Winfried Donkers
> Jan Holesovsky wrote (3 april 2012 14:45) > > > The 'split button' is a derived SfxToolBoxControl which triggers an > > Execute function when the colour is chosen from the colour palette and > > triggers a virtual Select function when the left half of the button > > (last used colour) is clicked

Re: Who can tell me more about SfxToolBoxControls and registerControl()?

2012-04-03 Thread Jan Holesovsky
Hi Winfried, On 2012-04-03 at 10:08 +0200, Winfried Donkers wrote: > The 'split button' is a derived SfxToolBoxControl which triggers an > Execute function when the colour is chosen from the colour palette and > triggers a virtual Select function when the left half of the button > (last used colo

Who can tell me more about SfxToolBoxControls and registerControl()?

2012-04-03 Thread Winfried Donkers
Hello all, I am struggling a bit to get various colour buttons (e.g. font/background/border colour) working as split buttons, so that the last used colour can be applied again right away. See fdo45671 for more details on the specific buttons/wishes. For a lot of buttons I have succeeded to con