Deletion of vcl::Window's inside ToolBar
Maxim Monastirsky
momonasmon at gmail.com
Tue Aug 25 08:36:19 PDT 2015
Hi,
On Tue, Aug 25, 2015 at 5:08 PM, Caolán McNamara <caolanm at redhat.com>
wrote:
> i.e. what entity put the item into the toolbar is the same entity that
> has to remove it and dispose it.
Just to add some specific code pointers:
The window items are added to the toolbar in
ToolBarManager::CreateControllers, and removed in
ToolBarManager::RemoveControllers. It also calls the dispose method of
the (XToolbarController based) controller, which in turn calls
disposeAndClear of that window. In case of the font name box, it's in
SfxToolBoxControl::dispose.
Maxim
More information about the LibreOffice
mailing list