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 .
20 #ifndef INCLUDED_VCL_WRKWIN_HXX
21 #define INCLUDED_VCL_WRKWIN_HXX
23 #include <vcl/dllapi.h>
24 #include <vcl/syswin.hxx>
25 #include <o3tl/typed_flags_set.hxx>
27 namespace com::sun::star::uno
{ class Any
; }
28 struct SystemParentData
;
32 enum class PresentationFlags
40 template<> struct typed_flags
<PresentationFlags
> : is_typed_flags
<PresentationFlags
, 0x0001> {};
44 class VCL_DLLPUBLIC WorkWindow
: public SystemWindow
47 PresentationFlags mnPresentationFlags
;
48 bool mbPresentationMode
:1,
49 mbPresentationVisible
:1,
53 SAL_DLLPRIVATE
void ImplInitWorkWindowData();
54 SAL_DLLPRIVATE
void ImplInit( vcl::Window
* pParent
, WinBits nStyle
, const css::uno::Any
& aSystemWorkWindowToken
);
57 WorkWindow( const WorkWindow
& rWin
) = delete;
58 WorkWindow
& operator =( const WorkWindow
& rWin
) = delete;
61 explicit WorkWindow( WindowType nType
);
62 SAL_DLLPRIVATE
void ImplInit( vcl::Window
* pParent
, WinBits nStyle
, SystemParentData
* pSystemParentData
= nullptr );
63 SAL_DLLPRIVATE
void ImplSetFrameState( WindowStateState aFrameState
);
66 explicit WorkWindow( vcl::Window
* pParent
, WinBits nStyle
= WB_STDWORK
);
67 explicit WorkWindow( vcl::Window
* pParent
, const css::uno::Any
& aSystemWorkWindowToken
, WinBits nStyle
= WB_STDWORK
);
68 explicit WorkWindow( SystemParentData
* pParent
); // Not in the REMOTE-Version
69 virtual ~WorkWindow() override
;
70 virtual void dispose() override
;
72 virtual bool Close() override
;
74 void ShowFullScreenMode( bool bFullScreenMode
,
75 sal_Int32 nDisplayScreen
);
77 @overload void ShowFullScreenMode(bool bFullScreenMode, sal_Int32 nDisplayScreen)
79 void ShowFullScreenMode( bool bFullScreenMode
);
80 bool IsFullScreenMode() const { return mbFullScreenMode
; }
82 void StartPresentationMode( bool bPresentation
,
83 PresentationFlags nFlags
,
84 sal_Int32 nDisplayScreen
);
86 @overload void StartPresentationMode( PresentationFlags nFlags, sal_uInt32 nDisplayScreen)
88 void StartPresentationMode( PresentationFlags nFlags
);
89 bool IsPresentationMode() const { return mbPresentationMode
; }
91 bool IsMinimized() const;
93 void SetPluginParent( SystemParentData
* pParent
);
98 void Maximize( bool bMaximize
= true );
99 bool IsMaximized() const;
102 #endif // INCLUDED_VCL_WRKWIN_HXX
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */