merged tag ooo/OOO330_m14
[LibreOffice.git] / sc / inc / srchuno.hxx
blobf8f82ed25aff714e1d7b9b1bad0b355fc3206eb2
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2000, 2010 Oracle and/or its affiliates.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * This file is part of OpenOffice.org.
11 * OpenOffice.org is free software: you can redistribute it and/or modify
12 * it under the terms of the GNU Lesser General Public License version 3
13 * only, as published by the Free Software Foundation.
15 * OpenOffice.org is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU Lesser General Public License version 3 for more details
19 * (a copy is included in the LICENSE file that accompanied this code).
21 * You should have received a copy of the GNU Lesser General Public License
22 * version 3 along with OpenOffice.org. If not, see
23 * <http://www.openoffice.org/license.html>
24 * for a copy of the LGPLv3 License.
26 ************************************************************************/
28 #ifndef SC_SRCHUNO_HXX
29 #define SC_SRCHUNO_HXX
31 #include <com/sun/star/util/XReplaceDescriptor.hpp>
32 #include <com/sun/star/lang/XServiceInfo.hpp>
33 #include <com/sun/star/lang/XUnoTunnel.hpp>
34 #include <svl/itemprop.hxx>
35 #include <cppuhelper/implbase3.hxx>
38 class SvxSearchItem;
41 class ScCellSearchObj : public cppu::WeakImplHelper3<
42 com::sun::star::util::XReplaceDescriptor,
43 com::sun::star::lang::XUnoTunnel,
44 com::sun::star::lang::XServiceInfo >
46 private:
47 SfxItemPropertySet aPropSet;
48 SvxSearchItem* pSearchItem;
50 public:
51 ScCellSearchObj();
52 virtual ~ScCellSearchObj();
54 SvxSearchItem* GetSearchItem() const { return pSearchItem; }
56 // XReplaceDescriptor
57 virtual ::rtl::OUString SAL_CALL getReplaceString() throw(::com::sun::star::uno::RuntimeException);
58 virtual void SAL_CALL setReplaceString( const ::rtl::OUString& aReplaceString )
59 throw(::com::sun::star::uno::RuntimeException);
61 // XSearchDescriptor
62 virtual ::rtl::OUString SAL_CALL getSearchString() throw(::com::sun::star::uno::RuntimeException);
63 virtual void SAL_CALL setSearchString( const ::rtl::OUString& aString )
64 throw(::com::sun::star::uno::RuntimeException);
66 // Search/Replace muss von aussen (vom XSearchable) gerufen werden...
68 // XPropertySet
69 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
70 SAL_CALL getPropertySetInfo()
71 throw(::com::sun::star::uno::RuntimeException);
72 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
73 const ::com::sun::star::uno::Any& aValue )
74 throw(::com::sun::star::beans::UnknownPropertyException,
75 ::com::sun::star::beans::PropertyVetoException,
76 ::com::sun::star::lang::IllegalArgumentException,
77 ::com::sun::star::lang::WrappedTargetException,
78 ::com::sun::star::uno::RuntimeException);
79 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
80 const ::rtl::OUString& PropertyName )
81 throw(::com::sun::star::beans::UnknownPropertyException,
82 ::com::sun::star::lang::WrappedTargetException,
83 ::com::sun::star::uno::RuntimeException);
84 virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
85 const ::com::sun::star::uno::Reference<
86 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
87 throw(::com::sun::star::beans::UnknownPropertyException,
88 ::com::sun::star::lang::WrappedTargetException,
89 ::com::sun::star::uno::RuntimeException);
90 virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
91 const ::com::sun::star::uno::Reference<
92 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
93 throw(::com::sun::star::beans::UnknownPropertyException,
94 ::com::sun::star::lang::WrappedTargetException,
95 ::com::sun::star::uno::RuntimeException);
96 virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
97 const ::com::sun::star::uno::Reference<
98 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
99 throw(::com::sun::star::beans::UnknownPropertyException,
100 ::com::sun::star::lang::WrappedTargetException,
101 ::com::sun::star::uno::RuntimeException);
102 virtual void SAL_CALL removeVetoableChangeListener( const ::rtl::OUString& PropertyName,
103 const ::com::sun::star::uno::Reference<
104 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
105 throw(::com::sun::star::beans::UnknownPropertyException,
106 ::com::sun::star::lang::WrappedTargetException,
107 ::com::sun::star::uno::RuntimeException);
109 // XUnoTunnel
110 virtual sal_Int64 SAL_CALL getSomething( const ::com::sun::star::uno::Sequence<
111 sal_Int8 >& aIdentifier )
112 throw(::com::sun::star::uno::RuntimeException);
114 static const com::sun::star::uno::Sequence<sal_Int8>& getUnoTunnelId();
115 static ScCellSearchObj* getImplementation( const com::sun::star::uno::Reference<
116 com::sun::star::util::XSearchDescriptor> xObj );
118 // XServiceInfo
119 virtual ::rtl::OUString SAL_CALL getImplementationName()
120 throw(::com::sun::star::uno::RuntimeException);
121 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
122 throw(::com::sun::star::uno::RuntimeException);
123 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
124 throw(::com::sun::star::uno::RuntimeException);
128 #endif