sync master with lastest vba changes
[ooovba.git] / sc / inc / addruno.hxx
blobbd3491e5d480d26336038bb42aa92fc8aa416dd1
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: addruno.hxx,v $
10 * $Revision: 1.5 $
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_ADDRUNO_HXX
32 #define SC_ADDRUNO_HXX
34 #include <com/sun/star/lang/XServiceInfo.hpp>
35 #include <com/sun/star/beans/XPropertySet.hpp>
36 #include <cppuhelper/implbase2.hxx>
37 #include <svtools/lstner.hxx>
38 #include "global.hxx"
39 #include "address.hxx"
42 class ScAddressConversionObj : public ::cppu::WeakImplHelper2<
43 ::com::sun::star::beans::XPropertySet,
44 ::com::sun::star::lang::XServiceInfo >,
45 public SfxListener
47 private:
48 ScDocShell* pDocShell;
49 ScRange aRange;
50 sal_Int32 nRefSheet;
51 sal_Bool bIsRange;
53 sal_Bool ParseUIString( const String& rUIString, ::formula::FormulaGrammar::AddressConvention eConv = ::formula::FormulaGrammar::CONV_OOO );
55 public:
57 ScAddressConversionObj(ScDocShell* pDocSh, sal_Bool bForRange);
58 virtual ~ScAddressConversionObj();
60 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
62 // XPropertySet
63 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
64 SAL_CALL getPropertySetInfo()
65 throw(::com::sun::star::uno::RuntimeException);
66 virtual void SAL_CALL setPropertyValue( const ::rtl::OUString& aPropertyName,
67 const ::com::sun::star::uno::Any& aValue )
68 throw(::com::sun::star::beans::UnknownPropertyException,
69 ::com::sun::star::beans::PropertyVetoException,
70 ::com::sun::star::lang::IllegalArgumentException,
71 ::com::sun::star::lang::WrappedTargetException,
72 ::com::sun::star::uno::RuntimeException);
73 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
74 const ::rtl::OUString& PropertyName )
75 throw(::com::sun::star::beans::UnknownPropertyException,
76 ::com::sun::star::lang::WrappedTargetException,
77 ::com::sun::star::uno::RuntimeException);
78 virtual void SAL_CALL addPropertyChangeListener( const ::rtl::OUString& aPropertyName,
79 const ::com::sun::star::uno::Reference<
80 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
81 throw(::com::sun::star::beans::UnknownPropertyException,
82 ::com::sun::star::lang::WrappedTargetException,
83 ::com::sun::star::uno::RuntimeException);
84 virtual void SAL_CALL removePropertyChangeListener( const ::rtl::OUString& aPropertyName,
85 const ::com::sun::star::uno::Reference<
86 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
87 throw(::com::sun::star::beans::UnknownPropertyException,
88 ::com::sun::star::lang::WrappedTargetException,
89 ::com::sun::star::uno::RuntimeException);
90 virtual void SAL_CALL addVetoableChangeListener( const ::rtl::OUString& PropertyName,
91 const ::com::sun::star::uno::Reference<
92 ::com::sun::star::beans::XVetoableChangeListener >& 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 removeVetoableChangeListener( 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);
103 // XServiceInfo
104 virtual ::rtl::OUString SAL_CALL getImplementationName()
105 throw(::com::sun::star::uno::RuntimeException);
106 virtual sal_Bool SAL_CALL supportsService( const ::rtl::OUString& ServiceName )
107 throw(::com::sun::star::uno::RuntimeException);
108 virtual ::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames()
109 throw(::com::sun::star::uno::RuntimeException);
112 #endif