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

Winfried Donkers W.Donkers at dci-electronics.nl
Wed Apr 4 06:47:35 PDT 2012

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 listed in
> > reportdesign/source/ui/misc/rptuiservices.cxx, probably.
> >
> > But haven't actually tried that - so please report back if this leads to a dead
> > end.
>I'd try to use static SfxModule* GetActiveModule( SfxViewFrame*
>pFrame=NULL );  (from #include <sfx2/module.hxx>) - but again, haven't
>tried that myself :-)

I got the build to succeed on that, but alas, no difference when running. I might try to put it somewhere else (like in reportdesign/source/ui/rptuiservices.cxx), but its am almost blind trial and error method :(


More information about the LibreOffice mailing list