LCOV - code coverage report
Current view: top level - svl/source/numbers - supservs.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 4 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_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             : #include <com/sun/star/io/XPersistObject.hpp>
      28             : 
      29             : #include <registerservices.hxx>
      30             : 
      31             : /**
      32             :  * SvNumberFormatsSupplierServiceObject - a number formats supplier which
      33             :  * - can be instantiated as an service
      34             :  * - supports the ::com::sun::star::io::XPersistObject interface
      35             :  * - works with it's own SvNumberFormatter instance
      36             :  * - can be initialized (::com::sun::star::lang::XInitialization)
      37             :  * with a specific language (i.e. ::com::sun::star::lang::Locale)
      38             :  */
      39             : class SvNumberFormatsSupplierServiceObject
      40             :             :protected SvNumberFormatsSupplierObj
      41             :             ,public ::com::sun::star::lang::XInitialization
      42             :             ,public ::com::sun::star::io::XPersistObject
      43             :             ,public ::com::sun::star::lang::XServiceInfo
      44             : {   // don't want the Set-/GetNumberFormatter to be accessible from outside
      45             : 
      46             :     friend ::com::sun::star::uno::Reference< ::com::sun::star::uno::XInterface >
      47             :         SAL_CALL SvNumberFormatsSupplierServiceObject_CreateInstance(
      48             :             const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XMultiServiceFactory >&);
      49             : 
      50             : protected:
      51             :     SvNumberFormatter*  m_pOwnFormatter;
      52             :     ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >
      53             :                         m_xORB;
      54             : 
      55             : public:
      56             :     SvNumberFormatsSupplierServiceObject(const ::com::sun::star::uno::Reference< ::com::sun::star::uno::XComponentContext >& _rxORB);
      57             :     virtual ~SvNumberFormatsSupplierServiceObject();
      58             : 
      59             :     // XInterface
      60           0 :     virtual void SAL_CALL acquire() throw() SAL_OVERRIDE { SvNumberFormatsSupplierObj::acquire(); }
      61           0 :     virtual void SAL_CALL release() throw() SAL_OVERRIDE { SvNumberFormatsSupplierObj::release(); }
      62           0 :     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
      63           0 :         { return SvNumberFormatsSupplierObj::queryInterface(_rType); }
      64             : 
      65             :     // XAggregation
      66             :     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;
      67             : 
      68             :     // XInitialization
      69             :     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;
      70             : 
      71             :     // XServiceInfo
      72             :     virtual OUString SAL_CALL getImplementationName(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      73             :     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) 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             :     // XPersistObject
      77             :     virtual OUString SAL_CALL getServiceName(  ) throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      78             :     virtual void SAL_CALL write( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectOutputStream >& OutStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             :     virtual void SAL_CALL read( const ::com::sun::star::uno::Reference< ::com::sun::star::io::XObjectInputStream >& InStream ) throw(::com::sun::star::io::IOException, ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             : 
      81             :     // XNumberFormatsSupplier
      82             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySet > SAL_CALL
      83             :                 getNumberFormatSettings() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      84             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::util::XNumberFormats > SAL_CALL
      85             :                 getNumberFormats() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86             : 
      87             :     // XUnoTunnler
      88             :     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;
      89             : 
      90             : protected:
      91             :     void implEnsureFormatter();
      92             : };
      93             : 
      94             : 
      95             : #endif // INCLUDED_SVL_SOURCE_NUMBERS_SUPSERVS_HXX
      96             : 
      97             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10