1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef INCLUDED_AVMEDIA_SOURCE_VLC_VLCWINDOW_HXX
20 #define INCLUDED_AVMEDIA_SOURCE_VLC_VLCWINDOW_HXX
22 #include "vlccommon.hxx"
23 #include <cppuhelper/implbase.hxx>
29 class VLCWindow
: public ::cppu::WeakImplHelper
< css::media::XPlayerWindow
,
30 css::lang::XServiceInfo
>
33 const intptr_t mPrevWinID
;
34 css::media::ZoomLevel meZoomLevel
;
35 css::awt::Rectangle mSize
;
37 VLCWindow( VLCPlayer
& player
, const intptr_t prevWinID
);
38 virtual ~VLCWindow() override
;
40 void SAL_CALL
update() override
;
41 sal_Bool SAL_CALL
setZoomLevel( css::media::ZoomLevel ZoomLevel
) override
;
42 css::media::ZoomLevel SAL_CALL
getZoomLevel() override
;
43 void SAL_CALL
setPointerType( ::sal_Int32 SystemPointerType
) override
;
45 OUString SAL_CALL
getImplementationName() override
;
46 sal_Bool SAL_CALL
supportsService( const OUString
& serviceName
) override
;
47 css::uno::Sequence
< OUString
> SAL_CALL
getSupportedServiceNames() override
;
49 void SAL_CALL
dispose() override
;
50 void SAL_CALL
addEventListener( const css::uno::Reference
< css::lang::XEventListener
>& xListener
) override
;
51 void SAL_CALL
removeEventListener( const css::uno::Reference
< css::lang::XEventListener
>& aListener
) override
;
53 void SAL_CALL
setPosSize( sal_Int32 X
, sal_Int32 Y
, sal_Int32 Width
, sal_Int32 Height
, sal_Int16 Flags
) override
;
54 css::awt::Rectangle SAL_CALL
getPosSize() override
;
55 void SAL_CALL
setVisible( sal_Bool Visible
) override
;
56 void SAL_CALL
setEnable( sal_Bool Enable
) override
;
57 void SAL_CALL
setFocus() override
;
58 void SAL_CALL
addWindowListener( const css::uno::Reference
< css::awt::XWindowListener
>& xListener
) override
;
59 void SAL_CALL
removeWindowListener( const css::uno::Reference
< css::awt::XWindowListener
>& xListener
) override
;
60 void SAL_CALL
addFocusListener( const css::uno::Reference
< css::awt::XFocusListener
>& xListener
) override
;
61 void SAL_CALL
removeFocusListener( const css::uno::Reference
< css::awt::XFocusListener
>& xListener
) override
;
62 void SAL_CALL
addKeyListener( const css::uno::Reference
< css::awt::XKeyListener
>& xListener
) override
;
63 void SAL_CALL
removeKeyListener( const css::uno::Reference
< css::awt::XKeyListener
>& xListener
) override
;
64 void SAL_CALL
addMouseListener( const css::uno::Reference
< css::awt::XMouseListener
>& xListener
) override
;
65 void SAL_CALL
removeMouseListener( const css::uno::Reference
< css::awt::XMouseListener
>& xListener
) override
;
66 void SAL_CALL
addMouseMotionListener( const css::uno::Reference
< css::awt::XMouseMotionListener
>& xListener
) override
;
67 void SAL_CALL
removeMouseMotionListener( const css::uno::Reference
< css::awt::XMouseMotionListener
>& xListener
) override
;
68 void SAL_CALL
addPaintListener( const css::uno::Reference
< css::awt::XPaintListener
>& xListener
) override
;
69 void SAL_CALL
removePaintListener( const css::uno::Reference
< css::awt::XPaintListener
>& xListener
) override
;
75 #endif // INCLUDED_AVMEDIA_SOURCE_VLC_VLCWINDOW_HXX
77 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */