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