LCOV - code coverage report
Current view: top level - forms/source/solar/component - navbarcontrol.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-08-25 Functions: 3 3 100.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     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 FORMS_NAVBARCONTROL_HXX
      21                 :            : #define FORMS_NAVBARCONTROL_HXX
      22                 :            : 
      23                 :            : #include "formnavigation.hxx"
      24                 :            : 
      25                 :            : #include <com/sun/star/frame/XDispatchProviderInterception.hpp>
      26                 :            : #include <com/sun/star/frame/XStatusListener.hpp>
      27                 :            : 
      28                 :            : #include <toolkit/controls/unocontrol.hxx>
      29                 :            : #include <toolkit/awt/vclxwindow.hxx>
      30                 :            : #include <comphelper/uno3.hxx>
      31                 :            : #include <cppuhelper/implbase1.hxx>
      32                 :            : #include <tools/wintypes.hxx>
      33                 :            : 
      34                 :            : //.........................................................................
      35                 :            : namespace frm
      36                 :            : {
      37                 :            : //.........................................................................
      38                 :            : 
      39                 :            :     //==================================================================
      40                 :            :     // ONavigationBarControl
      41                 :            :     //==================================================================
      42                 :            :     typedef ::cppu::ImplHelper1 <   ::com::sun::star::frame::XDispatchProviderInterception
      43                 :            :                                 >   ONavigationBarControl_Base;
      44                 :            : 
      45                 :            :     class ONavigationBarControl
      46                 :            :                             :public UnoControl
      47                 :            :                             ,public ONavigationBarControl_Base
      48                 :            :     {
      49                 :            :     public:
      50                 :            :         ONavigationBarControl(
      51                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
      52                 :            :         );
      53                 :            : 
      54                 :            :     protected:
      55                 :            :         ~ONavigationBarControl();
      56                 :            : 
      57                 :            :     public:
      58                 :            :         // XServiceInfo - static version
      59                 :            :         static  ::rtl::OUString SAL_CALL getImplementationName_Static();
      60                 :            :         static  ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames_Static();
      61                 :            :         static  ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface > SAL_CALL Create( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxFactory );
      62                 :            : 
      63                 :            :     protected:
      64                 :            :         // UNO
      65                 :      10352 :         DECLARE_UNO3_AGG_DEFAULTS( ONavigationBarControl, UnoControl );
      66                 :            :         virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& _rType ) throw ( ::com::sun::star::uno::RuntimeException );
      67                 :            : 
      68                 :            :         // XControl
      69                 :            :         virtual void SAL_CALL createPeer( const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XToolkit >& _rToolkit, const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XWindowPeer >& _rParent ) throw( ::com::sun::star::uno::RuntimeException );
      70                 :            : 
      71                 :            :         // XServiceInfo
      72                 :            :         virtual ::rtl::OUString SAL_CALL getImplementationName()  throw(::com::sun::star::uno::RuntimeException);
      73                 :            :         virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()  throw(::com::sun::star::uno::RuntimeException);
      74                 :            : 
      75                 :            :         // XTypeProvider
      76                 :            :         DECLARE_XTYPEPROVIDER()
      77                 :            : 
      78                 :            :         // XVclWindowPeer
      79                 :            :         virtual void SAL_CALL setDesignMode( sal_Bool _bOn ) throw( ::com::sun::star::uno::RuntimeException );
      80                 :            : 
      81                 :            :         // XDispatchProviderInterception
      82                 :            :         virtual void SAL_CALL registerDispatchProviderInterceptor( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor >& Interceptor ) throw (::com::sun::star::uno::RuntimeException);
      83                 :            :         virtual void SAL_CALL releaseDispatchProviderInterceptor( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor >& Interceptor ) throw (::com::sun::star::uno::RuntimeException);
      84                 :            :     };
      85                 :            : 
      86                 :            :     //==================================================================
      87                 :            :     // ONavigationBarPeer
      88                 :            :     //==================================================================
      89                 :            :     class ONavigationBarPeer
      90                 :            :                         :public VCLXWindow
      91                 :            :                         ,public OFormNavigationHelper
      92                 :            :     {
      93                 :            :     public:
      94                 :            :         /** factory method
      95                 :            :             @return
      96                 :            :                 a new ONavigationBarPeer instance, which has been aquired once!
      97                 :            :         */
      98                 :            :         static ONavigationBarPeer* Create(
      99                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB,
     100                 :            :             Window* _pParentWindow,
     101                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& _rxModel
     102                 :            :         );
     103                 :            : 
     104                 :            :     protected:
     105                 :            :         ONavigationBarPeer(
     106                 :            :             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >& _rxORB
     107                 :            :         );
     108                 :            :         ~ONavigationBarPeer();
     109                 :            : 
     110                 :            :     public:
     111                 :            :         // XInterface
     112                 :            :         DECLARE_XINTERFACE( )
     113                 :            : 
     114                 :            :         // XVclWindowPeer
     115                 :            :         virtual void SAL_CALL setDesignMode( sal_Bool _bOn ) throw( ::com::sun::star::uno::RuntimeException );
     116                 :            : 
     117                 :            :         // XWindow2
     118                 :            :         using VCLXWindow::isEnabled;
     119                 :            : 
     120                 :            :     protected:
     121                 :            :         // XTypeProvider
     122                 :            :         DECLARE_XTYPEPROVIDER( )
     123                 :            : 
     124                 :            :         // XComponent
     125                 :            :         void SAL_CALL dispose(  ) throw( ::com::sun::star::uno::RuntimeException );
     126                 :            : 
     127                 :            :         // XVclWindowPeer
     128                 :            :         void SAL_CALL setProperty( const ::rtl::OUString& _rPropertyName, const ::com::sun::star::uno::Any& _rValue ) throw( ::com::sun::star::uno::RuntimeException );
     129                 :            :         ::com::sun::star::uno::Any SAL_CALL getProperty( const ::rtl::OUString& _rPropertyName ) throw(::com::sun::star::uno::RuntimeException);
     130                 :            : 
     131                 :            :         // XEventListener
     132                 :            :         virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException);
     133                 :            : 
     134                 :            :         // OFormNavigationHelper overriables
     135                 :            :         virtual void    interceptorsChanged( );
     136                 :            :         virtual void    featureStateChanged( sal_Int16 _nFeatureId, sal_Bool _bEnabled );
     137                 :            :         virtual void    allFeatureStatesChanged( );
     138                 :            :         virtual void    getSupportedFeatures( ::std::vector< sal_Int16 >& /* [out] */ _rFeatureIds );
     139                 :            : 
     140                 :            :         // IFeatureDispatcher overriables
     141                 :            :         virtual bool    isEnabled( sal_Int16 _nFeatureId ) const;
     142                 :            :     };
     143                 :            : 
     144                 :            : //.........................................................................
     145                 :            : }   // namespace frm
     146                 :            : //.........................................................................
     147                 :            : 
     148                 :            : #endif // FORMS_NAVBARCONTROL_HXX
     149                 :            : 
     150                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10