LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/toolkit/awt - vclxtopwindow.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 2 4 50.0 %
Date: 2012-12-27 Functions: 2 4 50.0 %
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 _TOOLKIT_AWT_VCLXTOPWINDOW_HXX_
      21             : #define _TOOLKIT_AWT_VCLXTOPWINDOW_HXX_
      22             : 
      23             : #include <com/sun/star/awt/XSystemDependentWindowPeer.hpp>
      24             : #include <com/sun/star/awt/XTopWindow2.hpp>
      25             : #include <com/sun/star/awt/XMenuBar.hpp>
      26             : #include <cppuhelper/weak.hxx>
      27             : #include <osl/mutex.hxx>
      28             : 
      29             : #include <cppuhelper/implbase1.hxx>
      30             : 
      31             : #include <toolkit/awt/vclxcontainer.hxx>
      32             : 
      33             : typedef ::cppu::ImplHelper1 <   ::com::sun::star::awt::XTopWindow2
      34             :                             >   VCLXTopWindow_XBase;
      35             : typedef ::cppu::ImplHelper1 <   ::com::sun::star::awt::XSystemDependentWindowPeer
      36             :                             >   VCLXTopWindow_SBase;
      37             : 
      38             : class TOOLKIT_DLLPUBLIC VCLXTopWindow_Base  :public VCLXTopWindow_XBase
      39             :                                             ,public VCLXTopWindow_SBase
      40             : {
      41             : private:
      42             :     const bool  m_bWHWND;
      43             : 
      44             : protected:
      45             :       ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar> mxMenuBar;
      46             : 
      47           0 :     bool isSystemDependentWindowPeer() const { return m_bWHWND; }
      48             : 
      49             :     virtual Window* GetWindowImpl() = 0;
      50             :     virtual ::cppu::OInterfaceContainerHelper& GetTopWindowListenersImpl() = 0;
      51             : 
      52             :     VCLXTopWindow_Base( const bool _bSupportSystemWindowPeer );
      53             : 
      54             : public:
      55             :     virtual ~VCLXTopWindow_Base();
      56             : 
      57             :     // XInterface equivalents
      58             :     ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
      59             :     // XTypeProvider equivalents
      60             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type > SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
      61             : 
      62             :     // ::com::sun::star::awt::XSystemDependentWindowPeer
      63             :     ::com::sun::star::uno::Any SAL_CALL getWindowHandle( const ::com::sun::star::uno::Sequence< sal_Int8 >& ProcessId, sal_Int16 SystemType ) throw(::com::sun::star::uno::RuntimeException);
      64             : 
      65             :     // ::com::sun::star::awt::XTopWindow
      66             :     void SAL_CALL addTopWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindowListener >& rxListener ) throw(::com::sun::star::uno::RuntimeException);
      67             :     void SAL_CALL removeTopWindowListener( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTopWindowListener >& rxListener ) throw(::com::sun::star::uno::RuntimeException);
      68             :     void SAL_CALL toFront() throw(::com::sun::star::uno::RuntimeException);
      69             :     void SAL_CALL toBack() throw(::com::sun::star::uno::RuntimeException);
      70             :     void SAL_CALL setMenuBar( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XMenuBar >& xMenu ) throw(::com::sun::star::uno::RuntimeException);
      71             : 
      72             :     // XTopWindow2
      73             :     virtual ::sal_Bool SAL_CALL getIsMaximized() throw (::com::sun::star::uno::RuntimeException);
      74             :     virtual void SAL_CALL setIsMaximized( ::sal_Bool _ismaximized ) throw (::com::sun::star::uno::RuntimeException);
      75             :     virtual ::sal_Bool SAL_CALL getIsMinimized() throw (::com::sun::star::uno::RuntimeException);
      76             :     virtual void SAL_CALL setIsMinimized( ::sal_Bool _isminimized ) throw (::com::sun::star::uno::RuntimeException);
      77             :     virtual ::sal_Int32 SAL_CALL getDisplay() throw (::com::sun::star::uno::RuntimeException);
      78             :     virtual void SAL_CALL setDisplay( ::sal_Int32 _display ) throw (::com::sun::star::uno::RuntimeException, ::com::sun::star::lang::IndexOutOfBoundsException);
      79             : };
      80             : 
      81             : //  ----------------------------------------------------
      82             : //  class VCLXTopWindow
      83             : //  ----------------------------------------------------
      84             : 
      85             : class TOOLKIT_DLLPUBLIC VCLXTopWindow: public VCLXTopWindow_Base,
      86             :                      public VCLXContainer
      87             : {
      88             : protected:
      89             :     virtual Window* GetWindowImpl();
      90             :     virtual ::cppu::OInterfaceContainerHelper& GetTopWindowListenersImpl();
      91             : 
      92             : public:
      93             :     VCLXTopWindow(bool bWHWND = false);
      94             :     ~VCLXTopWindow();
      95             : 
      96             :     // ::com::sun::star::uno::XInterface
      97             :     ::com::sun::star::uno::Any  SAL_CALL queryInterface( const ::com::sun::star::uno::Type & rType ) throw(::com::sun::star::uno::RuntimeException);
      98      114157 :     void                        SAL_CALL acquire() throw()  { OWeakObject::acquire(); }
      99      113097 :     void                        SAL_CALL release() throw()  { OWeakObject::release(); }
     100             : 
     101             :     // ::com::sun::star::lang::XTypeProvider
     102             :     ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Type >  SAL_CALL getTypes() throw(::com::sun::star::uno::RuntimeException);
     103             :     ::com::sun::star::uno::Sequence< sal_Int8 >                     SAL_CALL getImplementationId() throw(::com::sun::star::uno::RuntimeException);
     104             : 
     105             :     static void     ImplGetPropertyIds( std::list< sal_uInt16 > &aIds );
     106           0 :     virtual void    GetPropertyIds( std::list< sal_uInt16 > &aIds ) { return ImplGetPropertyIds( aIds ); }
     107             : };
     108             : 
     109             : 
     110             : 
     111             : 
     112             : #endif // _TOOLKIT_AWT_VCLXTOPWINDOW_HXX_
     113             : 
     114             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10