LCOV - code coverage report
Current view: top level - i18npool/inc - indexentrysupplier.hxx (source / functions) Hit Total Coverage
Test: commit 10e77ab3ff6f4314137acd6e2702a6e5c1ce1fae Lines: 1 1 100.0 %
Date: 2014-11-03 Functions: 2 2 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             : #ifndef INCLUDED_I18NPOOL_INC_INDEXENTRYSUPPLIER_HXX
      20             : #define INCLUDED_I18NPOOL_INC_INDEXENTRYSUPPLIER_HXX
      21             : 
      22             : #include <com/sun/star/i18n/XExtendedIndexEntrySupplier.hpp>
      23             : #include <cppuhelper/implbase2.hxx>
      24             : #include <com/sun/star/lang/XServiceInfo.hpp>
      25             : #include <com/sun/star/uno/XComponentContext.hpp>
      26             : 
      27             : namespace com { namespace sun { namespace star { namespace i18n {
      28             : 
      29             : 
      30             : //  class IndexEntrySupplier
      31             : 
      32          32 : class IndexEntrySupplier : public cppu::WeakImplHelper2
      33             : <
      34             :     com::sun::star::i18n::XExtendedIndexEntrySupplier,
      35             :     com::sun::star::lang::XServiceInfo
      36             : >
      37             : {
      38             : public:
      39             :     IndexEntrySupplier( const com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext >& rxContext );
      40             : 
      41             :     // Methods
      42             :     virtual com::sun::star::uno::Sequence < com::sun::star::lang::Locale > SAL_CALL getLocaleList()
      43             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      44             : 
      45             :     virtual com::sun::star::uno::Sequence < OUString > SAL_CALL getAlgorithmList(
      46             :         const com::sun::star::lang::Locale& rLocale )
      47             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      48             : 
      49             :     virtual sal_Bool SAL_CALL loadAlgorithm(
      50             :         const com::sun::star::lang::Locale& rLocale,
      51             :         const OUString& SortAlgorithm, sal_Int32 collatorOptions )
      52             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      53             : 
      54             :     virtual sal_Bool SAL_CALL usePhoneticEntry(
      55             :         const com::sun::star::lang::Locale& rLocale )
      56             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      57             : 
      58             :     virtual OUString SAL_CALL getPhoneticCandidate( const OUString& IndexEntry,
      59             :         const com::sun::star::lang::Locale& rLocale )
      60             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      61             : 
      62             :     virtual OUString SAL_CALL getIndexKey( const OUString& IndexEntry,
      63             :         const OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale )
      64             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      65             : 
      66             :     virtual sal_Int16 SAL_CALL compareIndexEntry( const OUString& IndexEntry1,
      67             :         const OUString& PhoneticEntry1, const com::sun::star::lang::Locale& rLocale1,
      68             :         const OUString& IndexEntry2, const OUString& PhoneticEntry2,
      69             :         const com::sun::star::lang::Locale& rLocale2 )
      70             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      71             : 
      72             :     virtual OUString SAL_CALL getIndexCharacter( const OUString& IndexEntry,
      73             :         const com::sun::star::lang::Locale& rLocale, const OUString& SortAlgorithm )
      74             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      75             : 
      76             :     virtual OUString SAL_CALL getIndexFollowPageWord( sal_Bool MorePages,
      77             :         const com::sun::star::lang::Locale& rLocale )
      78             :         throw (com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      79             : 
      80             :     //XServiceInfo
      81             :     virtual OUString SAL_CALL getImplementationName()
      82             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      83             :     virtual sal_Bool SAL_CALL supportsService(const OUString& ServiceName)
      84             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      85             :     virtual com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
      86             :         throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE;
      87             : 
      88             : private:
      89             :     com::sun::star::uno::Reference < com::sun::star::i18n::XExtendedIndexEntrySupplier > xIES;
      90             :     com::sun::star::uno::Reference < com::sun::star::uno::XComponentContext > m_xContext;
      91             :     bool SAL_CALL createLocaleSpecificIndexEntrySupplier(const OUString& name) throw( com::sun::star::uno::RuntimeException );
      92             :     com::sun::star::uno::Reference < com::sun::star::i18n::XExtendedIndexEntrySupplier > SAL_CALL getLocaleSpecificIndexEntrySupplier(
      93             :         const com::sun::star::lang::Locale& rLocale, const OUString& rSortAlgorithm) throw (com::sun::star::uno::RuntimeException);
      94             : 
      95             : protected:
      96             :     com::sun::star::lang::Locale aLocale;
      97             :     OUString aSortAlgorithm;
      98             : };
      99             : 
     100             : } } } }
     101             : 
     102             : #endif
     103             : 
     104             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10