Who can tell me more about SfxToolBoxControls and registerControl()?
kendy at suse.cz
Wed Apr 4 02:07:14 PDT 2012
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 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.
> 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?
I'd try to use static SfxModule* GetActiveModule( SfxViewFrame*
pFrame=NULL ); (from #include <sfx2/module.hxx>) - but again, haven't
tried that myself :-)
More information about the LibreOffice