LCOV - code coverage report
Current view: top level - sc/inc - srchuno.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 1 100.0 %
Date: 2015-06-13 12:38:46 Functions: 1 1 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             : 
      20             : #ifndef INCLUDED_SC_INC_SRCHUNO_HXX
      21             : #define INCLUDED_SC_INC_SRCHUNO_HXX
      22             : 
      23             : #include <com/sun/star/util/XReplaceDescriptor.hpp>
      24             : #include <com/sun/star/lang/XServiceInfo.hpp>
      25             : #include <com/sun/star/lang/XUnoTunnel.hpp>
      26             : #include <svl/itemprop.hxx>
      27             : #include <cppuhelper/implbase3.hxx>
      28             : 
      29             : class SvxSearchItem;
      30             : 
      31             : class ScCellSearchObj : public cppu::WeakImplHelper3<
      32             :                                 com::sun::star::util::XReplaceDescriptor,
      33             :                                 com::sun::star::lang::XUnoTunnel,
      34             :                                 com::sun::star::lang::XServiceInfo >
      35             : {
      36             : private:
      37             :     SfxItemPropertySet      aPropSet;
      38             :     SvxSearchItem*          pSearchItem;
      39             : 
      40             : public:
      41             :                             ScCellSearchObj();
      42             :     virtual                 ~ScCellSearchObj();
      43             : 
      44          79 :     SvxSearchItem*          GetSearchItem() const       { return pSearchItem; }
      45             : 
      46             :                             // XReplaceDescriptor
      47             :     virtual OUString SAL_CALL getReplaceString() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      48             :     virtual void SAL_CALL   setReplaceString( const OUString& aReplaceString )
      49             :                                 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      50             : 
      51             :                             // XSearchDescriptor
      52             :     virtual OUString SAL_CALL getSearchString() throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      53             :     virtual void SAL_CALL   setSearchString( const OUString& aString )
      54             :                                 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      55             : 
      56             :                             // search/replace should be called from outside (from XSearchable)...
      57             : 
      58             :                             // XPropertySet
      59             :     virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
      60             :                             SAL_CALL getPropertySetInfo()
      61             :                                 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      62             :     virtual void SAL_CALL   setPropertyValue( const OUString& aPropertyName,
      63             :                                     const ::com::sun::star::uno::Any& aValue )
      64             :                                 throw(::com::sun::star::beans::UnknownPropertyException,
      65             :                                     ::com::sun::star::beans::PropertyVetoException,
      66             :                                     ::com::sun::star::lang::IllegalArgumentException,
      67             :                                     ::com::sun::star::lang::WrappedTargetException,
      68             :                                     ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      69             :     virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
      70             :                                     const OUString& PropertyName )
      71             :                                 throw(::com::sun::star::beans::UnknownPropertyException,
      72             :                                     ::com::sun::star::lang::WrappedTargetException,
      73             :                                     ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      74             :     virtual void SAL_CALL   addPropertyChangeListener( const OUString& aPropertyName,
      75             :                                     const ::com::sun::star::uno::Reference<
      76             :                                         ::com::sun::star::beans::XPropertyChangeListener >& xListener )
      77             :                                 throw(::com::sun::star::beans::UnknownPropertyException,
      78             :                                     ::com::sun::star::lang::WrappedTargetException,
      79             :                                     ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      80             :     virtual void SAL_CALL   removePropertyChangeListener( const OUString& aPropertyName,
      81             :                                     const ::com::sun::star::uno::Reference<
      82             :                                         ::com::sun::star::beans::XPropertyChangeListener >& aListener )
      83             :                                 throw(::com::sun::star::beans::UnknownPropertyException,
      84             :                                     ::com::sun::star::lang::WrappedTargetException,
      85             :                                     ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      86             :     virtual void SAL_CALL   addVetoableChangeListener( const OUString& PropertyName,
      87             :                                     const ::com::sun::star::uno::Reference<
      88             :                                         ::com::sun::star::beans::XVetoableChangeListener >& aListener )
      89             :                                 throw(::com::sun::star::beans::UnknownPropertyException,
      90             :                                     ::com::sun::star::lang::WrappedTargetException,
      91             :                                     ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      92             :     virtual void SAL_CALL   removeVetoableChangeListener( const OUString& PropertyName,
      93             :                                     const ::com::sun::star::uno::Reference<
      94             :                                         ::com::sun::star::beans::XVetoableChangeListener >& aListener )
      95             :                                 throw(::com::sun::star::beans::UnknownPropertyException,
      96             :                                     ::com::sun::star::lang::WrappedTargetException,
      97             :                                     ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
      98             : 
      99             :                                 // XUnoTunnel
     100             :     virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
     101             :                                     sal_Int8 >& aIdentifier )
     102             :                                 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     103             : 
     104             :     static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
     105             :     static ScCellSearchObj* getImplementation(const css::uno::Reference<css::util::XSearchDescriptor>& rObj);
     106             : 
     107             :                             // XServiceInfo
     108             :     virtual OUString SAL_CALL getImplementationName()
     109             :                                 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     110             :     virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
     111             :                                 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     112             :     virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
     113             :                                 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
     114             : };
     115             : 
     116             : #endif
     117             : 
     118             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11