diff options
Diffstat (limited to 'avmedia/source/xine/window.cxx')
-rw-r--r-- | avmedia/source/xine/window.cxx | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/avmedia/source/xine/window.cxx b/avmedia/source/xine/window.cxx index f78198583266..4634233769b0 100644 --- a/avmedia/source/xine/window.cxx +++ b/avmedia/source/xine/window.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -74,11 +74,11 @@ LRESULT CALLBACK MediaPlayerWndProc( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM n case( WM_SETCURSOR ): pWindow->updatePointer(); break; - + case( WM_GRAPHNOTIFY ): pWindow->processGraphEvent(); break; - + case( WM_MOUSEMOVE ): case( WM_LBUTTONDOWN ): case( WM_MBUTTONDOWN ): @@ -89,11 +89,11 @@ LRESULT CALLBACK MediaPlayerWndProc( HWND hWnd,UINT nMsg, WPARAM nPar1, LPARAM n { awt::MouseEvent aUNOEvt; POINT aWinPoint; - + if( !::GetCursorPos( &aWinPoint ) || !::ScreenToClient( hWnd, &aWinPoint ) ) { - aWinPoint.x = GET_X_LPARAM( nPar2 ); - aWinPoint.y = GET_Y_LPARAM( nPar2 ); + aWinPoint.x = GET_X_LPARAM( nPar2 ); + aWinPoint.y = GET_Y_LPARAM( nPar2 ); } aUNOEvt.Modifiers = 0; aUNOEvt.Buttons = 0; @@ -274,7 +274,7 @@ void Window::implLayoutVideoWindow() bool Window::create( const uno::Sequence< uno::Any >& /*rArguments*/ ) { bool bRet = false; - + return bRet; } @@ -317,7 +317,7 @@ media::ZoomLevel SAL_CALL Window::getZoomLevel( ) // ------------------------------------------------------------------------------ -void SAL_CALL Window::setPointerType( sal_Int32 nPointerType ) +void SAL_CALL Window::setPointerType( sal_Int32 nPointerType ) throw (uno::RuntimeException) { mnPointerType = nPointerType; @@ -486,11 +486,11 @@ void SAL_CALL Window::removeEventListener( const uno::Reference< lang::XEventLis void Window::fireMousePressedEvent( const ::com::sun::star::awt::MouseEvent& rEvt ) { ::cppu::OInterfaceContainerHelper* pContainer = maListeners.getContainer( getCppuType( (uno::Reference< awt::XMouseListener >*) 0 ) ); - + if( pContainer ) { ::cppu::OInterfaceIteratorHelper aIter( *pContainer ); - + while( aIter.hasMoreElements() ) uno::Reference< awt::XMouseListener >( aIter.next(), uno::UNO_QUERY )->mousePressed( rEvt ); } @@ -501,11 +501,11 @@ void Window::fireMousePressedEvent( const ::com::sun::star::awt::MouseEvent& rEv void Window::fireMouseReleasedEvent( const ::com::sun::star::awt::MouseEvent& rEvt ) { ::cppu::OInterfaceContainerHelper* pContainer = maListeners.getContainer( getCppuType( (uno::Reference< awt::XMouseListener >*) 0 ) ); - + if( pContainer ) { ::cppu::OInterfaceIteratorHelper aIter( *pContainer ); - + while( aIter.hasMoreElements() ) uno::Reference< awt::XMouseListener >( aIter.next(), uno::UNO_QUERY )->mouseReleased( rEvt ); } @@ -516,11 +516,11 @@ void Window::fireMouseReleasedEvent( const ::com::sun::star::awt::MouseEvent& rE void Window::fireMouseMovedEvent( const ::com::sun::star::awt::MouseEvent& rEvt ) { ::cppu::OInterfaceContainerHelper* pContainer = maListeners.getContainer( getCppuType( (uno::Reference< awt::XMouseMotionListener >*) 0 ) ); - + if( pContainer ) { ::cppu::OInterfaceIteratorHelper aIter( *pContainer ); - + while( aIter.hasMoreElements() ) uno::Reference< awt::XMouseMotionListener >( aIter.next(), uno::UNO_QUERY )->mouseMoved( rEvt ); } @@ -531,11 +531,11 @@ void Window::fireMouseMovedEvent( const ::com::sun::star::awt::MouseEvent& rEvt void Window::fireSetFocusEvent( const ::com::sun::star::awt::FocusEvent& rEvt ) { ::cppu::OInterfaceContainerHelper* pContainer = maListeners.getContainer( getCppuType( (uno::Reference< awt::XFocusListener >*) 0 ) ); - + if( pContainer ) { ::cppu::OInterfaceIteratorHelper aIter( *pContainer ); - + while( aIter.hasMoreElements() ) uno::Reference< awt::XFocusListener >( aIter.next(), uno::UNO_QUERY )->focusGained( rEvt ); } |