LibreOffice Module avmedia (master) 1
gstreamer/gstwindow.cxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19
20#include <com/sun/star/awt/SystemPointer.hpp>
21
23
24#include "gstwindow.hxx"
25
26constexpr OUStringLiteral AVMEDIA_GST_WINDOW_IMPLEMENTATIONNAME = u"com.sun.star.comp.avmedia.Window_GStreamer";
27constexpr OUStringLiteral AVMEDIA_GST_WINDOW_SERVICENAME = u"com.sun.star.media.Window_GStreamer";
28
29using namespace ::com::sun::star;
30
31namespace avmedia::gstreamer {
32
33// Window
34
35
37 meZoomLevel( media::ZoomLevel_NOT_AVAILABLE )
38{
39}
40
42{
43}
44
45// XPlayerWindow
46
47
48void SAL_CALL Window::update( )
49{
50}
51
52sal_Bool SAL_CALL Window::setZoomLevel( media::ZoomLevel eZoomLevel )
53{
54 bool bRet = false;
55
56 if( meZoomLevel != media::ZoomLevel_NOT_AVAILABLE &&
57 eZoomLevel != media::ZoomLevel_NOT_AVAILABLE )
58 {
59 if( eZoomLevel != meZoomLevel )
60 {
61 meZoomLevel = eZoomLevel;
62 }
63
64 bRet = true;
65 }
66
67 return bRet;
68}
69
70media::ZoomLevel SAL_CALL Window::getZoomLevel( )
71{
72 return meZoomLevel;
73}
74
75void SAL_CALL Window::setPointerType( sal_Int32 /*nPointerType*/ )
76{
77}
78
79// XWindow
80
81
82void SAL_CALL Window::setPosSize( sal_Int32 /*X*/, sal_Int32 /*Y*/, sal_Int32 /*Width*/, sal_Int32 /*Height*/, sal_Int16 /*Flags*/ )
83{
84}
85
86awt::Rectangle SAL_CALL Window::getPosSize()
87{
88 awt::Rectangle aRet;
89
90 aRet.X = aRet.Y = 0;
91 aRet.Width = 320;
92 aRet.Height = 240;
93
94 return aRet;
95}
96
97void SAL_CALL Window::setVisible( sal_Bool /*bVisible*/ )
98{
99}
100
101void SAL_CALL Window::setEnable( sal_Bool /*bEnable*/ )
102{
103}
104
105void SAL_CALL Window::setFocus( )
106{
107}
108
109void SAL_CALL Window::addWindowListener( const uno::Reference< awt::XWindowListener >& )
110{
111}
112
113void SAL_CALL Window::removeWindowListener( const uno::Reference< awt::XWindowListener >& )
114{
115}
116
117void SAL_CALL Window::addFocusListener( const uno::Reference< awt::XFocusListener >& )
118{
119}
120
121void SAL_CALL Window::removeFocusListener( const uno::Reference< awt::XFocusListener >& )
122{
123}
124
125void SAL_CALL Window::addKeyListener( const uno::Reference< awt::XKeyListener >& )
126{
127}
128
129void SAL_CALL Window::removeKeyListener( const uno::Reference< awt::XKeyListener >& )
130{
131}
132
133void SAL_CALL Window::addMouseListener( const uno::Reference< awt::XMouseListener >& )
134{
135}
136
137void SAL_CALL Window::removeMouseListener( const uno::Reference< awt::XMouseListener >& )
138{
139}
140
141void SAL_CALL Window::addMouseMotionListener( const uno::Reference< awt::XMouseMotionListener >& )
142{
143}
144
145void SAL_CALL Window::removeMouseMotionListener( const uno::Reference< awt::XMouseMotionListener >& )
146{
147}
148
149void SAL_CALL Window::addPaintListener( const uno::Reference< awt::XPaintListener >& )
150{
151}
152
153void SAL_CALL Window::removePaintListener( const uno::Reference< awt::XPaintListener >& )
154{
155}
156
157// XComponent
158
159
160void SAL_CALL Window::dispose( )
161{
162}
163
164void SAL_CALL Window::addEventListener( const uno::Reference< lang::XEventListener >& )
165{
166}
167
168void SAL_CALL Window::removeEventListener( const uno::Reference< lang::XEventListener >& )
169{
170}
171
172// XServiceInfo
173
174
176{
178}
179
180sal_Bool SAL_CALL Window::supportsService( const OUString& ServiceName )
181{
183}
184
185uno::Sequence< OUString > SAL_CALL Window::getSupportedServiceNames( )
186{
188}
189
190} // namespace
191
192/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::media::ZoomLevel meZoomLevel
Definition: gstwindow.hxx:77
virtual void SAL_CALL removeEventListener(const css::uno::Reference< css::lang::XEventListener > &aListener) override
virtual void SAL_CALL removeMouseMotionListener(const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
virtual void SAL_CALL removeMouseListener(const css::uno::Reference< css::awt::XMouseListener > &xListener) override
virtual void SAL_CALL addMouseMotionListener(const css::uno::Reference< css::awt::XMouseMotionListener > &xListener) override
virtual void SAL_CALL setVisible(sal_Bool Visible) override
virtual void SAL_CALL removeFocusListener(const css::uno::Reference< css::awt::XFocusListener > &xListener) override
virtual void SAL_CALL setEnable(sal_Bool Enable) override
virtual void SAL_CALL removeKeyListener(const css::uno::Reference< css::awt::XKeyListener > &xListener) override
virtual OUString SAL_CALL getImplementationName() override
virtual void SAL_CALL addWindowListener(const css::uno::Reference< css::awt::XWindowListener > &xListener) override
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override
virtual void SAL_CALL addMouseListener(const css::uno::Reference< css::awt::XMouseListener > &xListener) override
virtual sal_Bool SAL_CALL setZoomLevel(css::media::ZoomLevel ZoomLevel) override
virtual void SAL_CALL setFocus() override
virtual css::media::ZoomLevel SAL_CALL getZoomLevel() override
virtual void SAL_CALL addFocusListener(const css::uno::Reference< css::awt::XFocusListener > &xListener) override
virtual sal_Bool SAL_CALL supportsService(const OUString &ServiceName) override
virtual void SAL_CALL update() override
virtual void SAL_CALL removeWindowListener(const css::uno::Reference< css::awt::XWindowListener > &xListener) override
virtual void SAL_CALL addPaintListener(const css::uno::Reference< css::awt::XPaintListener > &xListener) override
virtual void SAL_CALL addKeyListener(const css::uno::Reference< css::awt::XKeyListener > &xListener) override
virtual void SAL_CALL dispose() override
virtual void SAL_CALL setPosSize(sal_Int32 X, sal_Int32 Y, sal_Int32 Width, sal_Int32 Height, sal_Int16 Flags) override
virtual void SAL_CALL addEventListener(const css::uno::Reference< css::lang::XEventListener > &xListener) override
virtual css::awt::Rectangle SAL_CALL getPosSize() override
virtual void SAL_CALL setPointerType(sal_Int32 nPointerType) override
virtual void SAL_CALL removePaintListener(const css::uno::Reference< css::awt::XPaintListener > &xListener) override
float u
constexpr OUStringLiteral AVMEDIA_GST_WINDOW_SERVICENAME
constexpr OUStringLiteral AVMEDIA_GST_WINDOW_IMPLEMENTATIONNAME
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)
unsigned char sal_Bool