lok: calc - send other views our selection in their co-ordinates.
[LibreOffice.git] / include / vbahelper / vbapropvalue.hxx
blobee6443f08a34a1bccdff0233308d0d61e48d0916
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 .
19 #ifndef SC_VBA_PROPVALULE_HXX
20 #define SC_VBA_PROPVALULE_HXX
22 #include <exception>
24 #include <com/sun/star/uno/Any.hxx>
25 #include <com/sun/star/uno/RuntimeException.hpp>
26 #include <cppuhelper/implbase.hxx>
27 #include <ooo/vba/XPropValue.hpp>
28 #include <rtl/ustring.hxx>
29 #include <sal/types.h>
30 #include <vbahelper/vbadllapi.h>
31 #include <vbahelper/vbahelper.hxx>
33 class VBAHELPER_DLLPUBLIC PropListener
35 public:
36 virtual void setValueEvent( const css::uno::Any& value ) = 0;
37 virtual css::uno::Any getValueEvent() = 0;
39 protected:
40 ~PropListener() {}
44 class VBAHELPER_DLLPUBLIC ScVbaPropValue final : public ::cppu::WeakImplHelper< ov::XPropValue >
46 PropListener* m_pListener;
47 public:
48 ScVbaPropValue( PropListener* pListener );
50 // Attributes
51 virtual css::uno::Any SAL_CALL getValue() override;
52 virtual void SAL_CALL setValue( const css::uno::Any& _value ) override;
54 OUString SAL_CALL getDefaultPropertyName() override { return "Value"; }
57 #endif //SC_VBA_PROPVALULE_HXX
59 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */