update emoji autocorrect entries from po-files
[LibreOffice.git] / sc / inc / addruno.hxx
blobc9af7bc926260b049f3dcacd655ce8a84b5f616f
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/implbase2.hxx>
26 #include <svl/lstner.hxx>
27 #include "global.hxx"
28 #include "address.hxx"
30 class ScAddressConversionObj : public ::cppu::WeakImplHelper2<
31 ::com::sun::star::beans::XPropertySet,
32 ::com::sun::star::lang::XServiceInfo >,
33 public SfxListener
35 private:
36 ScDocShell* pDocShell;
37 ScRange aRange;
38 sal_Int32 nRefSheet;
39 bool bIsRange;
41 bool ParseUIString( const OUString& rUIString, ::formula::FormulaGrammar::AddressConvention eConv = ::formula::FormulaGrammar::CONV_OOO );
43 public:
45 ScAddressConversionObj(ScDocShell* pDocSh, bool bIsRange);
46 virtual ~ScAddressConversionObj();
48 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint ) SAL_OVERRIDE;
50 // XPropertySet
51 virtual ::com::sun::star::uno::Reference< ::com::sun::star::beans::XPropertySetInfo >
52 SAL_CALL getPropertySetInfo()
53 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
54 virtual void SAL_CALL setPropertyValue( const OUString& aPropertyName,
55 const ::com::sun::star::uno::Any& aValue )
56 throw(::com::sun::star::beans::UnknownPropertyException,
57 ::com::sun::star::beans::PropertyVetoException,
58 ::com::sun::star::lang::IllegalArgumentException,
59 ::com::sun::star::lang::WrappedTargetException,
60 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
61 virtual ::com::sun::star::uno::Any SAL_CALL getPropertyValue(
62 const OUString& PropertyName )
63 throw(::com::sun::star::beans::UnknownPropertyException,
64 ::com::sun::star::lang::WrappedTargetException,
65 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
66 virtual void SAL_CALL addPropertyChangeListener( const OUString& aPropertyName,
67 const ::com::sun::star::uno::Reference<
68 ::com::sun::star::beans::XPropertyChangeListener >& xListener )
69 throw(::com::sun::star::beans::UnknownPropertyException,
70 ::com::sun::star::lang::WrappedTargetException,
71 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
72 virtual void SAL_CALL removePropertyChangeListener( const OUString& aPropertyName,
73 const ::com::sun::star::uno::Reference<
74 ::com::sun::star::beans::XPropertyChangeListener >& aListener )
75 throw(::com::sun::star::beans::UnknownPropertyException,
76 ::com::sun::star::lang::WrappedTargetException,
77 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
78 virtual void SAL_CALL addVetoableChangeListener( const OUString& PropertyName,
79 const ::com::sun::star::uno::Reference<
80 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
81 throw(::com::sun::star::beans::UnknownPropertyException,
82 ::com::sun::star::lang::WrappedTargetException,
83 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
84 virtual void SAL_CALL removeVetoableChangeListener( const OUString& PropertyName,
85 const ::com::sun::star::uno::Reference<
86 ::com::sun::star::beans::XVetoableChangeListener >& aListener )
87 throw(::com::sun::star::beans::UnknownPropertyException,
88 ::com::sun::star::lang::WrappedTargetException,
89 ::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
91 // XServiceInfo
92 virtual OUString SAL_CALL getImplementationName()
93 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
94 virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName )
95 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
96 virtual ::com::sun::star::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames()
97 throw(::com::sun::star::uno::RuntimeException, std::exception) SAL_OVERRIDE;
100 #endif
102 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */