Branch data Line data Source code
1 : : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : : /*************************************************************************
3 : : *
4 : : * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 : : *
6 : : * Copyright IBM Corporation 2009, 2010.
7 : : * Copyright 2000, 2010 Oracle and/or its affiliates.
8 : : *
9 : : * OpenOffice.org - a multi-platform office productivity suite
10 : : *
11 : : * This file is part of OpenOffice.org.
12 : : *
13 : : * OpenOffice.org is free software: you can redistribute it and/or modify
14 : : * it under the terms of the GNU Lesser General Public License version 3
15 : : * only, as published by the Free Software Foundation.
16 : : *
17 : : * OpenOffice.org is distributed in the hope that it will be useful,
18 : : * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 : : * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 : : * GNU Lesser General Public License version 3 for more details
21 : : * (a copy is included in the LICENSE file that accompanied this code).
22 : : *
23 : : * You should have received a copy of the GNU Lesser General Public License
24 : : * version 3 along with OpenOffice.org. If not, see
25 : : * <http://www.openoffice.org/license.html>
26 : : * for a copy of the LGPLv3 License.
27 : : *
28 : : ************************************************************************/
29 : :
30 : : #ifndef VBA_MSFORM_RETURNTYPES_HXX
31 : : #define VBA_MSFORM_RETURNTYPES_HXX
32 : :
33 : : #include <cppuhelper/implbase1.hxx>
34 : : #include <ooo/vba/msforms/XReturnBoolean.hpp>
35 : : #include <ooo/vba/msforms/XReturnInteger.hpp>
36 : :
37 : :
38 : : typedef ::cppu::WeakImplHelper1<ooo::vba::msforms::XReturnBoolean> ReturnBoolean_BASE;
39 : :
40 [ # # ]: 0 : class SAL_DLLPUBLIC_EXPORT VbaReturnBoolean : public ReturnBoolean_BASE
41 : : {
42 : : public:
43 : : sal_Bool Value;
44 : :
45 : : public:
46 : 0 : VbaReturnBoolean() : Value(false) {} ;
47 : :
48 : : // XReturnBoolean
49 : 0 : virtual ::sal_Bool SAL_CALL getValue() throw (::com::sun::star::uno::RuntimeException) { return Value; }
50 : 0 : virtual void SAL_CALL setValue( ::sal_Bool _value ) throw (::com::sun::star::uno::RuntimeException) { Value = _value; }
51 : :
52 : : // XDefaultProperty
53 : 0 : ::rtl::OUString SAL_CALL getDefaultPropertyName() throw (com::sun::star::uno::RuntimeException) { return ::rtl::OUString("Value"); }
54 : : };
55 : :
56 : :
57 : : typedef ::cppu::WeakImplHelper1<ooo::vba::msforms::XReturnInteger> ReturnInteger_BASE;
58 : :
59 [ # # ]: 0 : class SAL_DLLPUBLIC_EXPORT VbaReturnInteger : public ReturnInteger_BASE
60 : : {
61 : : public:
62 : : sal_Int32 Value;
63 : :
64 : : public:
65 : 0 : VbaReturnInteger() : Value(0) {} ;
66 : :
67 : : // XReturnInteger
68 : 0 : virtual ::sal_Int32 SAL_CALL getValue() throw (::com::sun::star::uno::RuntimeException) { return Value; }
69 : 0 : virtual void SAL_CALL setValue( ::sal_Int32 _value ) throw (::com::sun::star::uno::RuntimeException) { Value = _value; }
70 : :
71 : : // XDefaultProperty
72 : 0 : ::rtl::OUString SAL_CALL getDefaultPropertyName() throw (com::sun::star::uno::RuntimeException) { return ::rtl::OUString("Value"); }
73 : : };
74 : : #endif
75 : :
76 : : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|