LCOV - code coverage report
Current view: top level - svl/source/numbers - supservs.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 4 4 100.0 %
Date: 2015-06-13 12:38:46 Functions: 3 3 100.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_SVL_SOURCE_NUMBERS_SUPSERVS_HXX
      21             : #define INCLUDED_SVL_SOURCE_NUMBERS_SUPSERVS_HXX
      22             : 
      23             : #include <svl/numuno.hxx>
      24             : #include <svl/zforlist.hxx>
      25             : #include <com/sun/star/lang/XInitialization.hpp>
      26             : #include <com/sun/star/lang/XServiceInfo.hpp>
      27             : 
      28             : /**
      29             :  * SvNumberFormatsSupplierServiceObject - a number formats supplier which
      30             :  * - can be instantiated as an service
      31             :  * - works with it's own SvNumberFormatter instance
      32             :  * - can be initialized (::com::sun::star::lang::XInitialization)
      33             :  * with a specific language (i.e. ::com::sun::star::lang::Locale)
      34             :  */
      35             : class SvNumberFormatsSupplierServiceObject
      36             :             :public SvNumberFormatsSupplierObj
      37             :             ,public ::com::sun::star::lang::XInitialization
      38             :             ,public ::com::sun::star::lang::XServiceInfo
      39             : {
      40             : protected:
      41             :     SvNumberFormatter*  m_pOwnFormatter;
      42             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
      43             :                         m_xORB;
      44             : 
      45             : public:
      46             :     explicit SvNumberFormatsSupplierServiceObject(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB);
      47             :     virtual ~SvNumberFormatsSupplierServiceObject();
      48             : 
      49             :     // XInterface
      50        7319 :     virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { SvNumberFormatsSupplierObj::acquire(); }
      51        7318 :     virtual void SAL_CALL release() throw() SAL_OVERRIDE { SvNumberFormatsSupplierObj::release(); }
      52         806 :     virtual ::com::sun::star::uno::Any SAL_CALL queryInterface( const ::com::sun::star::uno::Type& _rType ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE
      53         806 :         { return SvNumberFormatsSupplierObj::queryInterface(_rType); }
      54             : 
      55             :     // XAggregation
      56             :     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;
      57             : 
      58             :     // XInitialization
      59             :     virtual void SAL_CALL initialize( const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Any >& aArguments ) throw(::com::sun::star::uno::Exception, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      60             : 
      61             :     // XServiceInfo
      62             :     virtual OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      63             :     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      64             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      65             : 
      66             :     // XNumberFormatsSupplier
      67             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
      68             :                 getNumberFormatSettings() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      69             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > SAL_CALL
      70             :                 getNumberFormats() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      71             : 
      72             :     // XUnoTunnler
      73             :     virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence< sal_Int8 >& aIdentifier ) throw (::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             : 
      75             : protected:
      76             :     void implEnsureFormatter();
      77             : };
      78             : 
      79             : 
      80             : #endif // INCLUDED_SVL_SOURCE_NUMBERS_SUPSERVS_HXX
      81             : 
      82             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11