Kaydet (Commit) 1bb79815 authored tarafından Minh Ngo's avatar Minh Ngo

Media zoom for Avmedia/vlc

Change-Id: I2870b3fbeaa6fbb623f21dfde9a33a6048c60b85
üst 6fe1efc0
......@@ -17,14 +17,27 @@ void SAL_CALL VLCWindow::update() throw (css::uno::RuntimeException)
{
}
::sal_Bool SAL_CALL VLCWindow::setZoomLevel( css::media::ZoomLevel ) throw (css::uno::RuntimeException)
::sal_Bool SAL_CALL VLCWindow::setZoomLevel( css::media::ZoomLevel eZoomLevel ) throw (css::uno::RuntimeException)
{
return false;
sal_Bool bRet = false;
if( media::ZoomLevel_NOT_AVAILABLE != meZoomLevel &&
media::ZoomLevel_NOT_AVAILABLE != eZoomLevel )
{
if( eZoomLevel != meZoomLevel )
{
meZoomLevel = eZoomLevel;
}
bRet = true;
}
return bRet;
}
css::media::ZoomLevel SAL_CALL VLCWindow::getZoomLevel() throw (css::uno::RuntimeException)
{
return css::media::ZoomLevel_NOT_AVAILABLE;
return meZoomLevel;
}
void SAL_CALL VLCWindow::setPointerType( ::sal_Int32 ) throw (css::uno::RuntimeException)
......@@ -70,7 +83,13 @@ void SAL_CALL VLCWindow::setPosSize( sal_Int32, sal_Int32, sal_Int32, sal_Int32,
awt::Rectangle SAL_CALL VLCWindow::getPosSize()
throw (uno::RuntimeException)
{
return awt::Rectangle();
awt::Rectangle aRet;
aRet.X = aRet.Y = 0;
aRet.Width = 320;
aRet.Height = 240;
return aRet;
}
void SAL_CALL VLCWindow::setVisible( sal_Bool )
......
......@@ -27,6 +27,7 @@ namespace vlc {
class VLCWindow : public ::cppu::WeakImplHelper2 < ::com::sun::star::media::XPlayerWindow,
::com::sun::star::lang::XServiceInfo >
{
::com::sun::star::media::ZoomLevel meZoomLevel;
public:
VLCWindow();
......
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