Kaydet (Commit) aadc603a authored tarafından Chris Sherlock's avatar Chris Sherlock

vcl: actually remove ImplTranslateCommandEvent!

Change-Id: Ic120f83c5809074d082a86f677790ce9df35abcb
üst 603ea975
...@@ -350,16 +350,6 @@ static MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, vcl::Window* pS ...@@ -350,16 +350,6 @@ static MouseEvent ImplTranslateMouseEvent( const MouseEvent& rE, vcl::Window* pS
return MouseEvent( pDest->ScreenToOutputPixel( aPos ), rE.GetClicks(), rE.GetMode(), rE.GetButtons(), rE.GetModifier() ); return MouseEvent( pDest->ScreenToOutputPixel( aPos ), rE.GetClicks(), rE.GetMode(), rE.GetButtons(), rE.GetModifier() );
} }
CommandEvent ImplTranslateCommandEvent( const CommandEvent& rCEvt, vcl::Window* pSource, vcl::Window* pDest )
{
if ( !rCEvt.IsMouseEvent() )
return rCEvt;
Point aPos = pSource->OutputToScreenPixel( rCEvt.GetMousePosPixel() );
aPos = pDest->ScreenToOutputPixel( aPos );
return CommandEvent( aPos, rCEvt.GetCommand(), rCEvt.IsMouseEvent(), rCEvt.GetEventData() );
}
void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt ) void Window::ImplNotifyKeyMouseCommandEventListeners( NotifyEvent& rNEvt )
{ {
if( rNEvt.GetType() == MouseNotifyEvent::COMMAND ) if( rNEvt.GetType() == MouseNotifyEvent::COMMAND )
......
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