diff options
author | Noel Grandin <noel@peralex.com> | 2016-05-10 10:52:48 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2016-05-10 11:35:14 +0200 |
commit | 385ce0323fd6b5c13ab26414d68c6ca2afcfc97d (patch) | |
tree | c169da9a80c16e85146c97abbe726aa3e96d0b74 /vcl/headless/svpframe.cxx | |
parent | 4cd0f67562770eb3e88efa9072add80ac2f80c06 (diff) |
Convert SAL_EVENT to scoped enum
Change-Id: I4e605e7acfe9d4fe409d32f20880b4c0e85a0ea7
Diffstat (limited to 'vcl/headless/svpframe.cxx')
-rw-r--r-- | vcl/headless/svpframe.cxx | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/vcl/headless/svpframe.cxx b/vcl/headless/svpframe.cxx index 0b971f4a2a31..f8b29f676592 100644 --- a/vcl/headless/svpframe.cxx +++ b/vcl/headless/svpframe.cxx @@ -89,7 +89,7 @@ SvpSalFrame::~SvpSalFrame() // SAL_DEBUG("SvpSalFrame::~SvpSalFrame: losing focus: " << this); s_pFocusFrame = nullptr; // call directly here, else an event for a destroyed frame would be dispatched - CallCallback( SALEVENT_LOSEFOCUS, nullptr ); + CallCallback( SalEvent::LoseFocus, nullptr ); // if the handler has not set a new focus frame // pass focus to another frame, preferably a document style window if( s_pFocusFrame == nullptr ) @@ -126,7 +126,7 @@ void SvpSalFrame::GetFocus() s_pFocusFrame->LoseFocus(); // SAL_DEBUG("SvpSalFrame::GetFocus(): " << this); s_pFocusFrame = this; - m_pInstance->PostEvent( this, nullptr, SALEVENT_GETFOCUS ); + m_pInstance->PostEvent( this, nullptr, SalEvent::GetFocus ); } } @@ -135,7 +135,7 @@ void SvpSalFrame::LoseFocus() if( s_pFocusFrame == this ) { // SAL_DEBUG("SvpSalFrame::LoseFocus: " << this); - m_pInstance->PostEvent( this, nullptr, SALEVENT_LOSEFOCUS ); + m_pInstance->PostEvent( this, nullptr, SalEvent::LoseFocus ); s_pFocusFrame = nullptr; } } @@ -159,7 +159,7 @@ void SvpSalFrame::ReleaseGraphics( SalGraphics* pGraphics ) bool SvpSalFrame::PostEvent(ImplSVEvent* pData) { - m_pInstance->PostEvent( this, pData, SALEVENT_USEREVENT ); + m_pInstance->PostEvent( this, pData, SalEvent::UserEvent ); return true; } @@ -169,7 +169,7 @@ void SvpSalFrame::PostPaint() const { SalPaintEvent aPEvt(0, 0, maGeometry.nWidth, maGeometry.nHeight); aPEvt.mbImmediateUpdate = false; - CallCallback( SALEVENT_PAINT, &aPEvt ); + CallCallback( SalEvent::Paint, &aPEvt ); } } @@ -199,7 +199,7 @@ void SvpSalFrame::Show( bool bVisible, bool bNoActivate ) { // SAL_DEBUG("SvpSalFrame::Show: showing: " << this); m_bVisible = true; - m_pInstance->PostEvent( this, nullptr, SALEVENT_RESIZE ); + m_pInstance->PostEvent( this, nullptr, SalEvent::Resize ); if( ! bNoActivate ) GetFocus(); } @@ -207,7 +207,7 @@ void SvpSalFrame::Show( bool bVisible, bool bNoActivate ) { // SAL_DEBUG("SvpSalFrame::Show: hiding: " << this); m_bVisible = false; - m_pInstance->PostEvent( this, nullptr, SALEVENT_RESIZE ); + m_pInstance->PostEvent( this, nullptr, SalEvent::Resize ); LoseFocus(); } else @@ -279,7 +279,7 @@ void SvpSalFrame::SetPosSize( long nX, long nY, long nWidth, long nHeight, sal_u } } if( m_bVisible ) - m_pInstance->PostEvent( this, nullptr, SALEVENT_RESIZE ); + m_pInstance->PostEvent( this, nullptr, SalEvent::Resize ); #endif } |