LibreOffice Module vcl (master) 1
syschild.hxx
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#ifndef INCLUDED_VCL_SYSCHILD_HXX
21#define INCLUDED_VCL_SYSCHILD_HXX
22
23#include <vcl/dllapi.h>
24#include <vcl/window.hxx>
25
26struct SystemEnvData;
27struct SystemWindowData;
28
30{
31private:
32 using Window::ImplInit;
33 SAL_DLLPRIVATE void ImplInitSysChild( vcl::Window* pParent, WinBits nStyle, SystemWindowData *pData, bool bShow = false );
34
35 // Copy assignment is forbidden and not implemented.
38
39public:
40 explicit SystemChildWindow( vcl::Window* pParent, WinBits nStyle );
41 // create a SystemChildWindow using the given SystemWindowData
42 explicit SystemChildWindow( vcl::Window* pParent, WinBits nStyle, SystemWindowData *pData, bool bShow = true );
43 virtual ~SystemChildWindow() override;
44 virtual Size GetOptimalSize() const override;
45 virtual void dispose() override;
46
47 virtual const SystemEnvData* GetSystemData() const override;
48
49 // per default systemchildwindows erase their background for better plugin support
50 // however, this might not always be required
51 void EnableEraseBackground( bool bEnable );
52 void SetForwardKey( bool bEnable );
53 //To avoid annoying flashing under X entering and leaving slides with opengl effects set the leaving
54 //bitmap as the background pixmap of the opengl child window and the entering bitmap as the background
55 //pixmap of the non-opengl parent window. If any expose events occur around the start and end of
56 //the transition then those windows are default filled by X with the desired start/end image so there's
57 //no visible flash
58 void SetLeaveEnterBackgrounds(const css::uno::Sequence<css::uno::Any>& rLeaveArgs, const css::uno::Sequence<css::uno::Any>& rEnterArgs);
59 // return the platform specific handle/id of this window;
60 sal_IntPtr GetParentWindowHandle() const;
61
62 void* CreateGStreamerSink();
63};
64
65#endif // INCLUDED_VCL_SYSCHILD_HXX
66
67/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SystemChildWindow(const SystemChildWindow &)=delete
VclReferenceBase & operator=(const VclReferenceBase &)=delete
virtual void dispose() override
This is intended to be used to clear any locally held references to other Window-subclass objects.
Definition: window.cxx:140
virtual Size GetOptimalSize() const
Definition: window3.cxx:26
SAL_DLLPRIVATE void ImplInit(vcl::Window *pParent, WinBits nStyle, SystemParentData *pSystemParentData)
Definition: window.cxx:941
virtual const SystemEnvData * GetSystemData() const
Definition: window.cxx:3854
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
std::unique_ptr< sal_Int32[]> pData
sal_Int64 WinBits
Definition: wintypes.hxx:109