LibreOffice Module vbahelper (master) 1
vbapropvalue.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 *
9 * This file incorporates work covered by the following license notice:
10 *
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 .
18 */
19#ifndef SC_VBA_PROPVALULE_HXX
20#define SC_VBA_PROPVALULE_HXX
21
22#include <exception>
23
24#include <com/sun/star/uno/Any.hxx>
25#include <com/sun/star/uno/RuntimeException.hpp>
27#include <ooo/vba/XPropValue.hpp>
28#include <rtl/ustring.hxx>
29#include <sal/types.h>
30#include <vbahelper/vbadllapi.h>
32
34{
35public:
36 virtual void setValueEvent( const css::uno::Any& value ) = 0;
37 virtual css::uno::Any getValueEvent() = 0;
38
39protected:
41};
42
43
44class VBAHELPER_DLLPUBLIC ScVbaPropValue final : public ::cppu::WeakImplHelper< ov::XPropValue >
45{
47public:
48 ScVbaPropValue( PropListener* pListener );
49
50 // Attributes
51 virtual css::uno::Any SAL_CALL getValue() override;
52 virtual void SAL_CALL setValue( const css::uno::Any& _value ) override;
53
54 OUString SAL_CALL getDefaultPropertyName() override { return "Value"; }
55
56};
57#endif //SC_VBA_PROPVALULE_HXX
58
59/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Any getValueEvent()=0
virtual void setValueEvent(const css::uno::Any &value)=0
OUString SAL_CALL getDefaultPropertyName() override
PropListener * m_pListener
css::beans::Optional< css::uno::Any > getValue(std::u16string_view id)
RegError REGISTRY_CALLTYPE setValue(RegKeyHandle hKey, rtl_uString *keyName, RegValueType valueType, RegValue pData, sal_uInt32 valueSize)
#define VBAHELPER_DLLPUBLIC
Definition: vbadllapi.h:28