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 <tools/solar.h>
24 #include <vcl/dllapi.h>
25 #include <vcl/syswin.hxx>
27 namespace com
{ namespace sun
{ namespace star
{ namespace uno
{ class Any
; }}}}
28 struct SystemParentData
;
31 // - WorkWindow - Types -
35 #define PRESENTATION_HIDEALLAPPS ((sal_uInt16)0x0001)
36 #define PRESENTATION_NOFULLSCREEN ((sal_uInt16)0x0002)
37 #define PRESENTATION_NOAUTOSHOW ((sal_uInt16)0x0004)
43 class VCL_DLLPUBLIC WorkWindow
: public SystemWindow
46 sal_uInt16 mnPresentationFlags
;
47 bool mbPresentationMode
:1,
48 mbPresentationVisible
:1,
52 SAL_DLLPRIVATE
void ImplInitWorkWindowData();
53 SAL_DLLPRIVATE
void ImplInit( vcl::Window
* pParent
, WinBits nStyle
, const ::com::sun::star::uno::Any
& aSystemWorkWindowToken
);
56 WorkWindow( const WorkWindow
& rWin
) SAL_DELETED_FUNCTION
;
57 WorkWindow
& operator =( const WorkWindow
& rWin
) SAL_DELETED_FUNCTION
;
60 explicit WorkWindow( WindowType nType
);
61 SAL_DLLPRIVATE
void ImplInit( vcl::Window
* pParent
, WinBits nStyle
, SystemParentData
* pSystemParentData
= NULL
);
62 SAL_DLLPRIVATE
void ImplSetFrameState( sal_uLong aFrameState
);
65 explicit WorkWindow( vcl::Window
* pParent
, WinBits nStyle
= WB_STDWORK
);
66 explicit WorkWindow( vcl::Window
* pParent
, const ::com::sun::star::uno::Any
& aSystemWorkWindowToken
, WinBits nStyle
= WB_STDWORK
);
67 explicit WorkWindow( SystemParentData
* pParent
); // Not in the REMOTE-Version
68 virtual ~WorkWindow();
69 virtual void dispose() SAL_OVERRIDE
;
71 virtual bool Close() SAL_OVERRIDE
;
73 void ShowFullScreenMode( bool bFullScreenMode
,
74 sal_Int32 nDisplayScreen
);
76 @overload void ShowFullScreenMode(bool bFullScreenMode, sal_Int32 nDisplayScreen)
78 void ShowFullScreenMode( bool bFullScreenMode
= true );
79 void EndFullScreenMode() { ShowFullScreenMode( false ); }
80 bool IsFullScreenMode() const { return mbFullScreenMode
; }
82 void StartPresentationMode( bool bPresentation
,
84 sal_Int32 nDisplayScreen
);
86 @overload void StartPresentationMode( bool bPresentation, sal_uInt16 nFlags, sal_uInt32 nDisplayScreen)
88 void StartPresentationMode( bool bPresentation
= true,
89 sal_uInt16 nFlags
= 0 );
90 void EndPresentationMode() { StartPresentationMode( false ); }
91 bool IsPresentationMode() const { return mbPresentationMode
; }
93 bool IsMinimized() const;
95 bool SetPluginParent( SystemParentData
* pParent
);
100 void Maximize( bool bMaximize
= true );
101 bool IsMaximized() const;
104 #endif // INCLUDED_VCL_WRKWIN_HXX
106 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */