diff options
Diffstat (limited to 'basctl/source/basicide/bastype2.cxx')
-rw-r--r-- | basctl/source/basicide/bastype2.cxx | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/basctl/source/basicide/bastype2.cxx b/basctl/source/basicide/bastype2.cxx index feac68eaaa6d..285aefccdbc1 100644 --- a/basctl/source/basicide/bastype2.cxx +++ b/basctl/source/basicide/bastype2.cxx @@ -20,7 +20,8 @@ #include <memory> -#include "vcl/bitmap.hxx" +#include <vcl/bitmap.hxx> +#include <vcl/builder.hxx> #include "basidesh.hxx" #include "iderdll.hxx" @@ -184,15 +185,32 @@ bool EntryDescriptor::operator == (EntryDescriptor const& rDesc) const // =========== // -TreeListBox::TreeListBox (Window* pParent, ResId const& rRes) : - SvTreeListBox( pParent, IDEResId( sal::static_int_cast<sal_uInt16>( rRes.GetId() ) ) ), - m_aNotifier( *this ) +TreeListBox::TreeListBox (Window* pParent, ResId const& rRes) + : SvTreeListBox( pParent, IDEResId( sal::static_int_cast<sal_uInt16>( rRes.GetId() ) ) ) + , m_aNotifier( *this ) +{ + Init(); +} + +TreeListBox::TreeListBox (Window* pParent) + : SvTreeListBox(pParent) + , m_aNotifier( *this ) +{ + Init(); +} + +void TreeListBox::Init() { SetNodeDefaultImages(); SetSelectionMode( SINGLE_SELECTION ); nMode = 0xFF; // everything } +extern "C" SAL_DLLPUBLIC_EXPORT Window* SAL_CALL makeTreeListBox(Window *pParent, VclBuilder::stringmap &) +{ + return new TreeListBox(pParent); +} + TreeListBox::~TreeListBox () { m_aNotifier.dispose(); |