build fix: no comphelper/profilezone.hxx in this branch
[LibreOffice.git] / include / vbahelper / vbapropvalue.hxx
blobd420c77ef10a9c76d2af6abe44479a61d75096d2
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 typedef ::cppu::WeakImplHelper< ov::XPropValue > PropValueImpl_BASE;
35 class VBAHELPER_DLLPUBLIC PropListener
37 public:
38 virtual void setValueEvent( const css::uno::Any& value ) = 0;
39 virtual css::uno::Any getValueEvent() = 0;
41 protected:
42 ~PropListener() {}
46 class VBAHELPER_DLLPUBLIC ScVbaPropValue : public PropValueImpl_BASE
48 PropListener* m_pListener;
49 public:
50 ScVbaPropValue( PropListener* pListener );
52 // Attributes
53 virtual css::uno::Any SAL_CALL getValue() throw (css::uno::RuntimeException, std::exception) override;
54 virtual void SAL_CALL setValue( const css::uno::Any& _value ) throw (css::uno::RuntimeException, std::exception) override;
56 OUString SAL_CALL getDefaultPropertyName() throw (css::uno::RuntimeException, std::exception) override { return OUString("Value"); }
59 #endif //SC_VBA_PROPVALULE_HXX
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */