LCOV - code coverage report
Current view: top level - forms/source/component - navigationbar.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_COMPONENT_NAVIGATIONBAR_HXX
      21             : #define INCLUDED_FORMS_SOURCE_COMPONENT_NAVIGATIONBAR_HXX
      22             : 
      23             : #include "FormComponent.hxx"
      24             : #include <com/sun/star/io/XPersistObject.hpp>
      25             : #include <comphelper/proparrhlp.hxx>
      26             : #include <comphelper/propertycontainerhelper.hxx>
      27             : #include <cppuhelper/implbase1.hxx>
      28             : #include <cppuhelper/interfacecontainer.hxx>
      29             : #include <com/sun/star/container/XSet.hpp>
      30             : #include <com/sun/star/container/XContainer.hpp>
      31             : #include "formcontrolfont.hxx"
      32             : 
      33             : #include <set>
      34             : 
      35             : 
      36             : namespace frm
      37             : {
      38             : 
      39             : 
      40             : 
      41             :     // ONavigationBarModel
      42             : 
      43             :     typedef ::cppu::ImplHelper1 <   ::com::sun::star::awt::XControlModel
      44             :                                 > ONavigationBarModel_BASE;
      45             : 
      46             :     class ONavigationBarModel
      47             :                         :public OControlModel
      48             :                         ,public FontControlModel
      49             :                         ,public OPropertyContainerHelper
      50             :                         ,public ONavigationBarModel_BASE
      51             :     {
      52             :         // <properties>
      53             :         ::com::sun::star::uno::Any          m_aTabStop;
      54             :         ::com::sun::star::uno::Any          m_aBackgroundColor;
      55             :         OUString                     m_sDefaultControl;
      56             :         OUString                     m_sHelpText;
      57             :         OUString                     m_sHelpURL;
      58             :         sal_Int16                           m_nIconSize;
      59             :         sal_Int16                           m_nBorder;
      60             :         sal_Int32                           m_nDelay;
      61             :         sal_Bool                            m_bEnabled;
      62             :         sal_Bool                            m_bEnableVisible;
      63             :         sal_Bool                            m_bShowPosition;
      64             :         sal_Bool                            m_bShowNavigation;
      65             :         sal_Bool                            m_bShowActions;
      66             :         sal_Bool                            m_bShowFilterSort;
      67             :         sal_Int16                           m_nWritingMode;
      68             :         sal_Int16                           m_nContextWritingMode;
      69             :         // </properties>
      70             : 
      71             :     public:
      72             :         DECLARE_DEFAULT_LEAF_XTOR( ONavigationBarModel );
      73             : 
      74             :         // XServiceInfo - static version
      75             :         static  OUString SAL_CALL getImplementationName_Static();
      76             :         static  ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames_Static();
      77             :         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 );
      78             : 
      79             :     protected:
      80             :         // UNO
      81           0 :         DECLARE_UNO3_AGG_DEFAULTS( ONavigationBarModel, OControlModel )
      82             :         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;
      83             : 
      84             :         // XServiceInfo
      85             :         virtual OUString SAL_CALL getImplementationName()  throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86             :         virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()  throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      87             : 
      88             :         // XTypeProvider
      89             :         DECLARE_XTYPEPROVIDER()
      90             : 
      91             :         // OComponentHelper
      92             :         virtual void SAL_CALL disposing() SAL_OVERRIDE;
      93             : 
      94             :         // XPersistObject
      95             :         virtual OUString SAL_CALL getServiceName() throw ( ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      96             :         virtual void SAL_CALL write(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream>& _rxOutStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      97             :         virtual void SAL_CALL read(const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream>& _rxInStream) throw ( ::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      98             : 
      99             :         // XPropertySet
     100             :         virtual void SAL_CALL getFastPropertyValue(::com::sun::star::uno::Any& rValue, sal_Int32 nHandle ) const SAL_OVERRIDE;
     101             :         virtual sal_Bool SAL_CALL convertFastPropertyValue(::com::sun::star::uno::Any& rConvertedValue, ::com::sun::star::uno::Any& rOldValue,
     102             :                                               sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue )
     103             :                                             throw(::com::sun::star::lang::IllegalArgumentException) SAL_OVERRIDE;
     104             :         virtual void SAL_CALL setFastPropertyValue_NoBroadcast(sal_Int32 nHandle, const ::com::sun::star::uno::Any& rValue) throw ( ::com::sun::star::uno::Exception, std::exception) SAL_OVERRIDE;
     105             : 
     106             :         // XPropertyState
     107             :         virtual ::com::sun::star::uno::Any getPropertyDefaultByHandle( sal_Int32 nHandle ) const SAL_OVERRIDE;
     108             : 
     109             :         // OControlModel's property handling
     110             :         virtual void describeFixedProperties(
     111             :             ::com::sun::star::uno::Sequence< ::com::sun::star::beans::Property >& /* [out] */ _rProps
     112             :         ) const SAL_OVERRIDE;
     113             : 
     114             :         // prevent method hiding
     115             :         using OControlModel::disposing;
     116             :         using OControlModel::getFastPropertyValue;
     117             : 
     118             :     protected:
     119             :         DECLARE_XCLONEABLE();
     120             : 
     121             :     private:
     122             :         void implInitPropertyContainer();
     123             :     };
     124             : 
     125             : 
     126             : }   // namespace frm
     127             : 
     128             : 
     129             : #endif // INCLUDED_FORMS_SOURCE_COMPONENT_NAVIGATIONBAR_HXX
     130             : 
     131             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10