Kaydet (Commit) 3fbc3ade authored tarafından Noel Grandin's avatar Noel Grandin

loplugin:mergeclasses

Change-Id: I1347e51ef727da81be0c7937cad6e3f5edbf15a8
üst 6fbbb850
......@@ -163,7 +163,6 @@ merge dbp::OModuleResourceClient with dbp::OUnoAutoPilot
merge dbtools::ISQLStatementHelper with connectivity::mysql::OTables
merge formula::ExternalReferenceHelper with ScExternalRefManager
merge formula::IStructHelper with formula::StructPage
merge framework::IListBoxListener with framework::DropdownToolbarController
merge framework::ISpinfieldListener with framework::SpinfieldToolbarController
merge framework::IStorageListener with framework::XMLBasedAcceleratorConfiguration
merge frm::IAttributeHandler with frm::AttributeHandler
......
......@@ -35,20 +35,7 @@ namespace framework
class ListBoxControl;
class IListBoxListener
{
public:
virtual void Select() = 0;
virtual void DoubleClick() = 0;
virtual void GetFocus() = 0;
virtual void LoseFocus() = 0;
virtual bool PreNotify( NotifyEvent& rNEvt ) = 0;
protected:
~IListBoxListener() {}
};
class DropdownToolbarController : public IListBoxListener,
public ComplexToolbarController
class DropdownToolbarController : public ComplexToolbarController
{
public:
......@@ -63,12 +50,12 @@ class DropdownToolbarController : public IListBoxListener,
// XComponent
virtual void SAL_CALL dispose() throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
// IListBoxListener
virtual void Select() SAL_OVERRIDE;
virtual void DoubleClick() SAL_OVERRIDE;
virtual void GetFocus() SAL_OVERRIDE;
virtual void LoseFocus() SAL_OVERRIDE;
virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
// called from ListBoxControl
void Select();
void DoubleClick();
void GetFocus();
void LoseFocus();
bool PreNotify( NotifyEvent& rNEvt );
protected:
virtual void executeControlCommand( const ::com::sun::star::frame::ControlCommand& rControlCommand ) SAL_OVERRIDE;
......
......@@ -52,7 +52,7 @@ namespace framework
class ListBoxControl : public ListBox
{
public:
ListBoxControl( vcl::Window* pParent, WinBits nStyle, IListBoxListener* pListBoxListener );
ListBoxControl( vcl::Window* pParent, WinBits nStyle, DropdownToolbarController* pListBoxListener );
virtual ~ListBoxControl();
virtual void dispose() SAL_OVERRIDE;
......@@ -63,10 +63,10 @@ class ListBoxControl : public ListBox
virtual bool PreNotify( NotifyEvent& rNEvt ) SAL_OVERRIDE;
private:
IListBoxListener* m_pListBoxListener;
DropdownToolbarController* m_pListBoxListener;
};
ListBoxControl::ListBoxControl( vcl::Window* pParent, WinBits nStyle, IListBoxListener* pListBoxListener ) :
ListBoxControl::ListBoxControl( vcl::Window* pParent, WinBits nStyle, DropdownToolbarController* pListBoxListener ) :
ListBox( pParent, nStyle )
, m_pListBoxListener( pListBoxListener )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment