LCOV - code coverage report
Current view: top level - svl/source/uno - pathservice.cxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 21 0.0 %
Date: 2014-04-14 Functions: 0 11 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             : 
      21             : #include <unotools/pathoptions.hxx>
      22             : #include "sal/types.h"
      23             : #include "rtl/ustring.hxx"
      24             : #include <cppuhelper/implbase2.hxx>
      25             : #include <com/sun/star/frame/XConfigManager.hpp>
      26             : #include <com/sun/star/lang/XServiceInfo.hpp>
      27             : 
      28             : #include <registerservices.hxx>
      29             : 
      30           0 : class PathService : public ::cppu::WeakImplHelper2< css::frame::XConfigManager, css::lang::XServiceInfo >
      31             : {
      32             :     SvtPathOptions m_aOptions;
      33             : 
      34             : public:
      35           0 :     PathService()
      36           0 :         {}
      37             : 
      38           0 :     virtual OUString SAL_CALL getImplementationName()
      39             :         throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      40             :         {
      41           0 :             return OUString("com.sun.star.comp.svl.PathService");
      42             :         }
      43             : 
      44           0 :     virtual sal_Bool SAL_CALL supportsService (
      45             :         const OUString & rName)
      46             :         throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      47             :         {
      48           0 :             return rName.equalsAscii("com.sun.star.config.SpecialConfigManager");
      49             :         }
      50             : 
      51           0 :     virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
      52             :         throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      53             :         {
      54           0 :             css::uno::Sequence< OUString > aRet(1);
      55           0 :             aRet.getArray()[0] = "com.sun.star.config.SpecialConfigManager";
      56           0 :             return aRet;
      57             :         }
      58             : 
      59           0 :     virtual OUString SAL_CALL substituteVariables (
      60             :         const OUString& sText)
      61             :         throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      62             :         {
      63           0 :             return m_aOptions.SubstituteVariable( sText );
      64             :         }
      65             : 
      66           0 :     virtual void SAL_CALL addPropertyChangeListener (
      67             :         const OUString &, const css::uno::Reference< css::beans::XPropertyChangeListener > &)
      68             :         throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      69           0 :         {}
      70             : 
      71           0 :     virtual void SAL_CALL removePropertyChangeListener (
      72             :         const OUString &, const css::uno::Reference< css::beans::XPropertyChangeListener > &)
      73             :         throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      74           0 :         {}
      75             : 
      76           0 :     virtual void SAL_CALL flush()
      77             :         throw(css::uno::RuntimeException, std::exception) SAL_OVERRIDE
      78           0 :         {}
      79             : };
      80             : 
      81             : 
      82             : 
      83           0 : css::uno::Reference< css::uno::XInterface > PathService_CreateInstance (
      84             :     SAL_UNUSED_PARAMETER const css::uno::Reference<
      85             :         css::lang::XMultiServiceFactory > &)
      86             : {
      87             :     return css::uno::Reference< css::uno::XInterface >(
      88           0 :         static_cast< cppu::OWeakObject* >(new PathService()));
      89             : }
      90             : 
      91             : 
      92             : 
      93             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10