LCOV - code coverage report
Current view: top level - forms/source/solar/component - navbarcontrol.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 3 0.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 INCLUDED_FORMS_SOURCE_SOLAR_COMPONENT_NAVBARCONTROL_HXX
      21             : #define INCLUDED_FORMS_SOURCE_SOLAR_COMPONENT_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             :         ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext > m_xContext;
      50             :     public:
      51             :         ONavigationBarControl(
      52             :             const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
      53             :         );
      54             : 
      55             :     protected:
      56             :         virtual ~ONavigationBarControl();
      57             : 
      58             :     public:
      59             :         // XServiceInfo - static version
      60             :         static  OUString SAL_CALL getImplementationName_Static();
      61             :         static  ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static();
      62             :         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 );
      63             : 
      64             :     protected:
      65             :         // UNO
      66           0 :         DECLARE_UNO3_AGG_DEFAULTS( ONavigationBarControl, UnoControl )
      67             :         virtual ::com::sun::star::uno::Any SAL_CALL queryAggregation( const ::com::sun::star::uno::Type& _rType ) throw ( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      68             : 
      69             :         // XControl
      70             :         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, std::exception ) SAL_OVERRIDE;
      71             : 
      72             :         // XServiceInfo
      73             :         virtual OUString SAL_CALL getImplementationName()  throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             :         virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()  throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             : 
      76             :         // XTypeProvider
      77             :         DECLARE_XTYPEPROVIDER()
      78             : 
      79             :         // XVclWindowPeer
      80             :         virtual void SAL_CALL setDesignMode( sal_Bool _bOn ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      81             : 
      82             :         // XDispatchProviderInterception
      83             :         virtual void SAL_CALL registerDispatchProviderInterceptor( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor >& Interceptor ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      84             :         virtual void SAL_CALL releaseDispatchProviderInterceptor( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatchProviderInterceptor >& Interceptor ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      85             :     };
      86             : 
      87             : 
      88             :     // ONavigationBarPeer
      89             : 
      90             :     class ONavigationBarPeer
      91             :                         :public VCLXWindow
      92             :                         ,public OFormNavigationHelper
      93             :     {
      94             :     public:
      95             :         /** factory method
      96             :             @return
      97             :                 a new ONavigationBarPeer instance, which has been aquired once!
      98             :         */
      99             :         static ONavigationBarPeer* Create(
     100             :             const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB,
     101             :             Window* _pParentWindow,
     102             :             const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& _rxModel
     103             :         );
     104             : 
     105             :     protected:
     106             :         ONavigationBarPeer(
     107             :             const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB
     108             :         );
     109             :         virtual ~ONavigationBarPeer();
     110             : 
     111             :     public:
     112             :         // XInterface
     113             :         DECLARE_XINTERFACE( )
     114             : 
     115             :         // XVclWindowPeer
     116             :         virtual void SAL_CALL setDesignMode( sal_Bool _bOn ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     117             : 
     118             :         // XWindow2
     119             :         using VCLXWindow::isEnabled;
     120             : 
     121             :     protected:
     122             :         // XTypeProvider
     123             :         DECLARE_XTYPEPROVIDER( )
     124             : 
     125             :         // XComponent
     126             :         void SAL_CALL dispose(  ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     127             : 
     128             :         // XVclWindowPeer
     129             :         void SAL_CALL setProperty( const OUString& _rPropertyName, const ::com::sun::star::uno::Any& _rValue ) throw( ::com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
     130             :         ::com::sun::star::uno::Any SAL_CALL getProperty( const OUString& _rPropertyName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     131             : 
     132             :         // XEventListener
     133             :         virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& Source ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     134             : 
     135             :         // OFormNavigationHelper overriables
     136             :         virtual void    interceptorsChanged( ) SAL_OVERRIDE;
     137             :         virtual void    featureStateChanged( sal_Int16 _nFeatureId, sal_Bool _bEnabled ) SAL_OVERRIDE;
     138             :         virtual void    allFeatureStatesChanged( ) SAL_OVERRIDE;
     139             :         virtual void    getSupportedFeatures( ::std::vector< sal_Int16 >& /* [out] */ _rFeatureIds ) SAL_OVERRIDE;
     140             : 
     141             :         // IFeatureDispatcher overriables
     142             :         virtual bool    isEnabled( sal_Int16 _nFeatureId ) const SAL_OVERRIDE;
     143             :     };
     144             : 
     145             : 
     146             : }   // namespace frm
     147             : 
     148             : 
     149             : #endif // INCLUDED_FORMS_SOURCE_SOLAR_COMPONENT_NAVBARCONTROL_HXX
     150             : 
     151             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10