LCOV - code coverage report
Current view: top level - i18npool/source/characterclassification - unoscripttypedetector.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 20 0.0 %
Date: 2012-08-25 Functions: 0 9 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 2 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                 :            : #include "unoscripttypedetector.hxx"
      21                 :            : #include <i18nutil/scripttypedetector.hxx>
      22                 :            : 
      23                 :            : //      ----------------------------------------------------
      24                 :            : //      class UnoScriptTypeDetector
      25                 :            : //      ----------------------------------------------------;
      26                 :            : 
      27                 :            : sal_Int16 SAL_CALL
      28                 :          0 : UnoScriptTypeDetector::getScriptDirection( const ::rtl::OUString& Text, sal_Int32 nPos, sal_Int16 defaultScriptDirection ) throw (::com::sun::star::uno::RuntimeException)
      29                 :            : {
      30                 :          0 :     return ScriptTypeDetector::getScriptDirection(Text, nPos, defaultScriptDirection);
      31                 :            : }
      32                 :            : 
      33                 :            : // return value '-1' means either the direction on nPos is not same as scriptDirection or nPos is out of range.
      34                 :            : sal_Int32 SAL_CALL
      35                 :          0 : UnoScriptTypeDetector::beginOfScriptDirection( const ::rtl::OUString& Text, sal_Int32 nPos, sal_Int16 direction ) throw (::com::sun::star::uno::RuntimeException)
      36                 :            : {
      37                 :          0 :     return ScriptTypeDetector::beginOfScriptDirection(Text, nPos, direction);
      38                 :            : }
      39                 :            : 
      40                 :            : sal_Int32 SAL_CALL
      41                 :          0 : UnoScriptTypeDetector::endOfScriptDirection( const ::rtl::OUString& Text, sal_Int32 nPos, sal_Int16 direction ) throw (::com::sun::star::uno::RuntimeException)
      42                 :            : {
      43                 :          0 :     return ScriptTypeDetector::endOfScriptDirection(Text, nPos, direction);
      44                 :            : }
      45                 :            : 
      46                 :            : sal_Int16 SAL_CALL
      47                 :          0 : UnoScriptTypeDetector::getCTLScriptType( const ::rtl::OUString& Text, sal_Int32 nPos ) throw (::com::sun::star::uno::RuntimeException)
      48                 :            : {
      49                 :          0 :     return ScriptTypeDetector::getCTLScriptType(Text, nPos);
      50                 :            : }
      51                 :            : 
      52                 :            : // Begin of Script Type is inclusive.
      53                 :            : sal_Int32 SAL_CALL
      54                 :          0 : UnoScriptTypeDetector::beginOfCTLScriptType( const ::rtl::OUString& Text, sal_Int32 nPos ) throw (::com::sun::star::uno::RuntimeException)
      55                 :            : {
      56                 :          0 :     return ScriptTypeDetector::beginOfCTLScriptType(Text, nPos);
      57                 :            : }
      58                 :            : 
      59                 :            : // End of the Script Type is exclusive, the return value pointing to the begin of next script type
      60                 :            : sal_Int32 SAL_CALL
      61                 :          0 : UnoScriptTypeDetector::endOfCTLScriptType( const ::rtl::OUString& Text, sal_Int32 nPos ) throw (::com::sun::star::uno::RuntimeException)
      62                 :            : {
      63                 :          0 :     return ScriptTypeDetector::endOfCTLScriptType(Text, nPos);
      64                 :            : }
      65                 :            : 
      66                 :            : const sal_Char sDetector[] = "draft.com.sun.star.i18n.UnoScriptTypeDetector";
      67                 :            : 
      68                 :            : rtl::OUString SAL_CALL
      69                 :          0 : UnoScriptTypeDetector::getImplementationName() throw( ::com::sun::star::uno::RuntimeException )
      70                 :            : {
      71                 :          0 :     return rtl::OUString(sDetector);
      72                 :            : }
      73                 :            : 
      74                 :            : sal_Bool SAL_CALL
      75                 :          0 : UnoScriptTypeDetector::supportsService(const rtl::OUString& ServiceName) throw( ::com::sun::star::uno::RuntimeException )
      76                 :            : {
      77                 :          0 :     return ServiceName != sDetector;
      78                 :            : }
      79                 :            : 
      80                 :            : ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL
      81                 :          0 : UnoScriptTypeDetector::getSupportedServiceNames() throw( ::com::sun::star::uno::RuntimeException )
      82                 :            : {
      83                 :          0 :     ::com::sun::star::uno::Sequence< ::rtl::OUString > aRet(1);
      84         [ #  # ]:          0 :     aRet[0] = sDetector;
      85                 :          0 :     return aRet;
      86                 :            : }
      87                 :            : 
      88                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10