diff options
author | Caolán McNamara <caolanm@redhat.com> | 2021-08-04 13:48:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2021-08-04 15:48:59 +0200 |
commit | f5ed9f47b6443dbf365a07b9c2adc4caadb80e26 (patch) | |
tree | 03b552521f83c9f9e59ad3961b2aa59310d3330c /svx/source/fmcomp | |
parent | f4da631ce0d27fdff0b034a79ee2fd35c9d6a18c (diff) |
EventWindow is always a svt::ControlBase
Change-Id: I85220b91f23154c6480e7007eb24986c972ad8cb
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/120001
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/fmcomp')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 9b28ac4043a7..1a2b06311e32 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -3082,7 +3082,6 @@ IMPL_LINK_NOARG(DbFilterField, OnToggle, weld::CheckButton&, void) } } - FmXGridCell::FmXGridCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> _pControl ) :OComponentHelper(m_aMutex) ,m_pColumn(pColumn) @@ -3095,23 +3094,20 @@ FmXGridCell::FmXGridCell( DbGridColumn* pColumn, std::unique_ptr<DbCellControl> { } - void FmXGridCell::init() { - vcl::Window* pEventWindow( getEventWindow() ); + svt::ControlBase* pEventWindow( getEventWindow() ); if ( pEventWindow ) pEventWindow->AddEventListener( LINK( this, FmXGridCell, OnWindowEvent ) ); } - -vcl::Window* FmXGridCell::getEventWindow() const +svt::ControlBase* FmXGridCell::getEventWindow() const { if ( m_pCellControl ) return &m_pCellControl->GetWindow(); return nullptr; } - FmXGridCell::~FmXGridCell() { if (!OComponentHelper::rBHelper.bDisposed) @@ -3122,14 +3118,12 @@ FmXGridCell::~FmXGridCell() } - void FmXGridCell::SetTextLineColor() { if (m_pCellControl) m_pCellControl->SetTextLineColor(); } - void FmXGridCell::SetTextLineColor(const Color& _rColor) { if (m_pCellControl) |