LCOV - code coverage report
Current view: top level - include/vcl - wrkwin.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 3 66.7 %
Date: 2015-06-13 12:38:46 Functions: 2 3 66.7 %
Legend: Lines: hit not hit

          Line data    Source code
       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_WRKWIN_HXX
      21             : #define INCLUDED_VCL_WRKWIN_HXX
      22             : 
      23             : #include <tools/solar.h>
      24             : #include <vcl/dllapi.h>
      25             : #include <vcl/syswin.hxx>
      26             : #include <o3tl/typed_flags_set.hxx>
      27             : 
      28             : namespace com { namespace sun { namespace star { namespace uno { class Any; }}}}
      29             : struct SystemParentData;
      30             : 
      31             : 
      32             : // - WorkWindow - Types -
      33             : 
      34             : 
      35             : // Presentation Flags
      36             : enum class PresentationFlags
      37             : {
      38             :     NONE           = 0x0000,
      39             :     HideAllApps    = 0x0001,
      40             :     NoFullScreen   = 0x0002,
      41             :     NoAutoShow     = 0x0004,
      42             : };
      43             : namespace o3tl
      44             : {
      45             :     template<> struct typed_flags<PresentationFlags> : is_typed_flags<PresentationFlags, 0x0007> {};
      46             : }
      47             : 
      48             : 
      49             : // - WorkWindow -
      50             : 
      51             : 
      52             : class VCL_DLLPUBLIC WorkWindow : public SystemWindow
      53             : {
      54             : private:
      55             :     PresentationFlags mnPresentationFlags;
      56             :     bool              mbPresentationMode:1,
      57             :                       mbPresentationVisible:1,
      58             :                       mbPresentationFull:1,
      59             :                       mbFullScreenMode:1;
      60             : 
      61             :     SAL_DLLPRIVATE void ImplInitWorkWindowData();
      62             :     SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle, const ::com::sun::star::uno::Any& aSystemWorkWindowToken );
      63             : 
      64             : private:
      65             :     WorkWindow( const WorkWindow& rWin ) SAL_DELETED_FUNCTION;
      66             :     WorkWindow&  operator =( const WorkWindow& rWin ) SAL_DELETED_FUNCTION;
      67             : 
      68             : protected:
      69             :     explicit        WorkWindow( WindowType nType );
      70             :     SAL_DLLPRIVATE void ImplInit( vcl::Window* pParent, WinBits nStyle, SystemParentData* pSystemParentData = NULL );
      71             :     SAL_DLLPRIVATE void ImplSetFrameState( sal_uLong aFrameState );
      72             : 
      73             : public:
      74             :     explicit        WorkWindow( vcl::Window* pParent, WinBits nStyle = WB_STDWORK );
      75             :     explicit        WorkWindow( vcl::Window* pParent, const ::com::sun::star::uno::Any& aSystemWorkWindowToken, WinBits nStyle = WB_STDWORK );
      76             :     explicit        WorkWindow( SystemParentData* pParent ); // Not in the REMOTE-Version
      77             :     virtual         ~WorkWindow();
      78             :     virtual void    dispose() SAL_OVERRIDE;
      79             : 
      80             :     virtual bool    Close() SAL_OVERRIDE;
      81             : 
      82             :     void            ShowFullScreenMode( bool bFullScreenMode,
      83             :                                         sal_Int32 nDisplayScreen );
      84             :     /**
      85             :      @overload void ShowFullScreenMode(bool bFullScreenMode, sal_Int32 nDisplayScreen)
      86             :     */
      87             :     void            ShowFullScreenMode( bool bFullScreenMode = true );
      88           0 :     void            EndFullScreenMode() { ShowFullScreenMode( false ); }
      89          19 :     bool            IsFullScreenMode() const { return mbFullScreenMode; }
      90             : 
      91             :     void            StartPresentationMode( bool   bPresentation,
      92             :                                            PresentationFlags nFlags,
      93             :                                            sal_Int32  nDisplayScreen );
      94             :     /**
      95             :      @overload void StartPresentationMode( bool bPresentation, sal_uInt16 nFlags, sal_uInt32 nDisplayScreen)
      96             :     */
      97             :     void            StartPresentationMode( bool   bPresentation = true,
      98             :                                            PresentationFlags nFlags = PresentationFlags::NONE );
      99             :     void            EndPresentationMode() {  StartPresentationMode( false ); }
     100        3199 :     bool            IsPresentationMode() const { return mbPresentationMode; }
     101             : 
     102             :     bool            IsMinimized() const;
     103             : 
     104             :     bool            SetPluginParent( SystemParentData* pParent );
     105             : 
     106             :     void            Minimize();
     107             :     void            Restore();
     108             : 
     109             :     void            Maximize( bool bMaximize = true );
     110             :     bool            IsMaximized() const;
     111             : };
     112             : 
     113             : #endif // INCLUDED_VCL_WRKWIN_HXX
     114             : 
     115             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11