build fix
[LibreOffice.git] / sc / inc / srchuno.hxx
blobbbe535bb1bfee016429da40165791c9913f2b79e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
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/.
9 * This file incorporates work covered by the following license notice:
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 .
20 #ifndef INCLUDED_SC_INC_SRCHUNO_HXX
21 #define INCLUDED_SC_INC_SRCHUNO_HXX
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/implbase.hxx>
29 class SvxSearchItem;
31 class ScCellSearchObj : public cppu::WeakImplHelper<
32 css::util::XReplaceDescriptor,
33 css::lang::XUnoTunnel,
34 css::lang::XServiceInfo >
36 private:
37 SfxItemPropertySet aPropSet;
38 SvxSearchItem* pSearchItem;
40 public:
41 ScCellSearchObj();
42 virtual ~ScCellSearchObj() override;
44 SvxSearchItem* GetSearchItem() const { return pSearchItem; }
46 // XReplaceDescriptor
47 virtual OUString SAL_CALL getReplaceString() throw(css::uno::RuntimeException, std::exception) override;
48 virtual void SAL_CALL setReplaceString( const OUString& aReplaceString )
49 throw(css::uno::RuntimeException, std::exception) override;
51 // XSearchDescriptor
52 virtual OUString SAL_CALL getSearchString() throw(css::uno::RuntimeException, std::exception) override;
53 virtual void SAL_CALL setSearchString( const OUString& aString )
54 throw(css::uno::RuntimeException, std::exception) override;
56 // search/replace should be called from outside (from XSearchable)...
58 // XPropertySet
59 virtual css::uno::Reference< css::beans::XPropertySetInfo >
60 SAL_CALL getPropertySetInfo()
61 throw(css::uno::RuntimeException, std::exception) override;
62 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
63 const css::uno::Any& aValue )
64 throw(css::beans::UnknownPropertyException,
65 css::beans::PropertyVetoException,
66 css::lang::IllegalArgumentException,
67 css::lang::WrappedTargetException,
68 css::uno::RuntimeException, std::exception) override;
69 virtual css::uno::Any SAL_CALL getPropertyValue( const OUString& PropertyName )
70 throw(css::beans::UnknownPropertyException,
71 css::lang::WrappedTargetException,
72 css::uno::RuntimeException, std::exception) override;
73 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
74 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener )
75 throw(css::beans::UnknownPropertyException,
76 css::lang::WrappedTargetException,
77 css::uno::RuntimeException, std::exception) override;
78 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
79 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener )
80 throw(css::beans::UnknownPropertyException,
81 css::lang::WrappedTargetException,
82 css::uno::RuntimeException, std::exception) override;
83 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
84 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
85 throw(css::beans::UnknownPropertyException,
86 css::lang::WrappedTargetException,
87 css::uno::RuntimeException, std::exception) override;
88 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
89 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener )
90 throw(css::beans::UnknownPropertyException,
91 css::lang::WrappedTargetException,
92 css::uno::RuntimeException, std::exception) override;
94 // XUnoTunnel
95 virtual sal_Int64 SAL_CALL getSomething( const css::uno::Sequence<
96 sal_Int8 >& aIdentifier )
97 throw(css::uno::RuntimeException, std::exception) override;
99 static const css::uno::Sequence<sal_Int8>& getUnoTunnelId();
100 static ScCellSearchObj* getImplementation(const css::uno::Reference<css::util::XSearchDescriptor>& rObj);
102 // XServiceInfo
103 virtual OUString SAL_CALL getImplementationName()
104 throw(css::uno::RuntimeException, std::exception) override;
105 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
106 throw(css::uno::RuntimeException, std::exception) override;
107 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
108 throw(css::uno::RuntimeException, std::exception) override;
111 #endif
113 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */