Version 6.1.0.2, tag libreoffice-6.1.0.2
[LibreOffice.git] / sc / inc / addruno.hxx
blob095ddf6012d03c821e16013a2cc2fd4ef8712298
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_ADDRUNO_HXX
21 #define INCLUDED_SC_INC_ADDRUNO_HXX
23 #include <com/sun/star/lang/XServiceInfo.hpp>
24 #include <com/sun/star/beans/XPropertySet.hpp>
25 #include <cppuhelper/implbase.hxx>
26 #include <svl/lstner.hxx>
27 #include "address.hxx"
29 class ScAddressConversionObj : public ::cppu::WeakImplHelper<
30 css::beans::XPropertySet,
31 css::lang::XServiceInfo >,
32 public SfxListener
34 private:
35 ScDocShell* pDocShell;
36 ScRange aRange;
37 sal_Int32 nRefSheet;
38 bool bIsRange;
40 bool ParseUIString( const OUString& rUIString, ::formula::FormulaGrammar::AddressConvention eConv = ::formula::FormulaGrammar::CONV_OOO );
42 public:
44 ScAddressConversionObj(ScDocShell* pDocSh, bool bIsRange);
45 virtual ~ScAddressConversionObj() override;
47 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) override;
49 // XPropertySet
50 virtual css::uno::Reference< css::beans::XPropertySetInfo >
51 SAL_CALL getPropertySetInfo() override;
52 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
53 const css::uno::Any& aValue ) override;
54 virtual css::uno::Any SAL_CALL getPropertyValue(
55 const OUString& PropertyName ) override;
56 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
57 const css::uno::Reference< css::beans::XPropertyChangeListener >& xListener ) override;
58 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
59 const css::uno::Reference< css::beans::XPropertyChangeListener >& aListener ) override;
60 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
61 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
62 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
63 const css::uno::Reference< css::beans::XVetoableChangeListener >& aListener ) override;
65 // XServiceInfo
66 virtual OUString SAL_CALL getImplementationName() override;
67 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) override;
68 virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames() override;
71 #endif
73 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */