LCOV - code coverage report
Current view: top level - shell/source/backends/localebe - localebackend.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 10 0.0 %
Date: 2012-08-25 Functions: 0 5 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

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

Generated by: LCOV version 1.10