LCOV - code coverage report
Current view: top level - shell/source/backends/localebe - localebackend.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 10 0.0 %
Date: 2014-04-14 Functions: 0 5 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 _FIXEDVALUEBACKEND_HXX_
      21             : #define _FIXEDVALUEBACKEND_HXX_
      22             : 
      23             : #include <com/sun/star/beans/XPropertySet.hpp>
      24             : #include <com/sun/star/lang/XServiceInfo.hpp>
      25             : #include <cppuhelper/implbase2.hxx>
      26             : #include <rtl/string.hxx>
      27             : 
      28             : 
      29             : namespace uno = css::uno ;
      30             : namespace lang = css::lang ;
      31             : 
      32             : class LocaleBackend : public ::cppu::WeakImplHelper2 <
      33             :         css::beans::XPropertySet,
      34             :         lang::XServiceInfo > {
      35             : 
      36             :     public :
      37             : 
      38             :         static LocaleBackend* createInstance();
      39             : 
      40             :         // XServiceInfo
      41             :         virtual OUString SAL_CALL
      42             :             getImplementationName(  )
      43             :                 throw (uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      44             : 
      45             :         virtual sal_Bool SAL_CALL
      46             :             supportsService( const OUString& aServiceName )
      47             :                 throw (uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      48             : 
      49             :         virtual uno::Sequence<OUString> SAL_CALL
      50             :             getSupportedServiceNames(  )
      51             :                 throw (uno::RuntimeException, std::exception) SAL_OVERRIDE ;
      52             : 
      53             :         /**
      54             :           Provides the implementation name.
      55             : 
      56             :           @return   implementation name
      57             :           */
      58             :         static OUString SAL_CALL getBackendName(void) ;
      59             :         /**
      60             :           Provides the supported services names
      61             : 
      62             :           @return   service names
      63             :           */
      64             :         static uno::Sequence<OUString> SAL_CALL getBackendServiceNames(void) ;
      65             : 
      66             :         // XPropertySet
      67             :         virtual css::uno::Reference< css::beans::XPropertySetInfo > SAL_CALL
      68           0 :         getPropertySetInfo() throw (css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      69           0 :         { return css::uno::Reference< css::beans::XPropertySetInfo >(); }
      70             : 
      71             :         virtual void SAL_CALL setPropertyValue(
      72             :             OUString const &, css::uno::Any const &)
      73             :             throw (
      74             :                 css::beans::UnknownPropertyException,
      75             :                 css::beans::PropertyVetoException,
      76             :                 css::lang::IllegalArgumentException,
      77             :                 css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      78             : 
      79             :         virtual css::uno::Any SAL_CALL getPropertyValue(
      80             :             OUString const & PropertyName)
      81             :             throw (
      82             :                 css::beans::UnknownPropertyException,
      83             :                 css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      84             : 
      85           0 :         virtual void SAL_CALL addPropertyChangeListener(
      86             :             OUString const &,
      87             :             css::uno::Reference< css::beans::XPropertyChangeListener > const &)
      88             :             throw (
      89             :                 css::beans::UnknownPropertyException,
      90             :                 css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      91           0 :         {}
      92             : 
      93           0 :         virtual void SAL_CALL removePropertyChangeListener(
      94             :             OUString const &,
      95             :             css::uno::Reference< css::beans::XPropertyChangeListener > const &)
      96             :             throw (
      97             :                 css::beans::UnknownPropertyException,
      98             :                 css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      99           0 :         {}
     100             : 
     101           0 :         virtual void SAL_CALL addVetoableChangeListener(
     102             :             OUString const &,
     103             :             css::uno::Reference< css::beans::XVetoableChangeListener > const &)
     104             :             throw (
     105             :                 css::beans::UnknownPropertyException,
     106             :                 css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
     107           0 :         {}
     108             : 
     109           0 :         virtual void SAL_CALL removeVetoableChangeListener(
     110             :             OUString const &,
     111             :             css::uno::Reference< css::beans::XVetoableChangeListener > const &)
     112             :             throw (
     113             :                 css::beans::UnknownPropertyException,
     114             :                 css::lang::WrappedTargetException, css::uno::RuntimeException, std::exception) SAL_OVERRIDE
     115           0 :         {}
     116             : 
     117             :     protected:
     118             :         /**
     119             :           Service constructor from a service factory.
     120             : 
     121             :           @param xContext   component context
     122             :           */
     123             :         LocaleBackend();
     124             : 
     125             :         /** Destructor */
     126             :         virtual ~LocaleBackend(void) ;
     127             : 
     128             :     private:
     129             :         // Returns the user locale
     130             :         static OUString getLocale(void);
     131             : 
     132             :         // Returns the user UI locale
     133             :         static OUString getUILocale(void);
     134             : 
     135             :         // Returns the system default locale
     136             :         static OUString getSystemLocale(void);
     137             : } ;
     138             : 
     139             : 
     140             : #endif // _FIXEDVALUEBACKEND_HXX_
     141             : 
     142             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10