1*f8e4aa35SAndrew Rist /************************************************************** 2cdf0e10cSrcweir * 3*f8e4aa35SAndrew Rist * Licensed to the Apache Software Foundation (ASF) under one 4*f8e4aa35SAndrew Rist * or more contributor license agreements. See the NOTICE file 5*f8e4aa35SAndrew Rist * distributed with this work for additional information 6*f8e4aa35SAndrew Rist * regarding copyright ownership. The ASF licenses this file 7*f8e4aa35SAndrew Rist * to you under the Apache License, Version 2.0 (the 8*f8e4aa35SAndrew Rist * "License"); you may not use this file except in compliance 9*f8e4aa35SAndrew Rist * with the License. You may obtain a copy of the License at 10*f8e4aa35SAndrew Rist * 11*f8e4aa35SAndrew Rist * http://www.apache.org/licenses/LICENSE-2.0 12*f8e4aa35SAndrew Rist * 13*f8e4aa35SAndrew Rist * Unless required by applicable law or agreed to in writing, 14*f8e4aa35SAndrew Rist * software distributed under the License is distributed on an 15*f8e4aa35SAndrew Rist * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 16*f8e4aa35SAndrew Rist * KIND, either express or implied. See the License for the 17*f8e4aa35SAndrew Rist * specific language governing permissions and limitations 18*f8e4aa35SAndrew Rist * under the License. 19*f8e4aa35SAndrew Rist * 20*f8e4aa35SAndrew Rist *************************************************************/ 21*f8e4aa35SAndrew Rist 22*f8e4aa35SAndrew Rist 23cdf0e10cSrcweir 24cdf0e10cSrcweir #ifndef INCLUDED_testtools_source_bridgetest_multi_hxx 25cdf0e10cSrcweir #define INCLUDED_testtools_source_bridgetest_multi_hxx 26cdf0e10cSrcweir 27cdf0e10cSrcweir #include "sal/config.h" 28cdf0e10cSrcweir 29cdf0e10cSrcweir #include "com/sun/star/uno/Reference.hxx" 30cdf0e10cSrcweir #include "com/sun/star/uno/RuntimeException.hpp" 31cdf0e10cSrcweir #include "cppuhelper/implbase1.hxx" 32cdf0e10cSrcweir #include "rtl/ustring.hxx" 33cdf0e10cSrcweir #include "sal/types.h" 34cdf0e10cSrcweir #include "test/testtools/bridgetest/XMulti.hpp" 35cdf0e10cSrcweir 36cdf0e10cSrcweir namespace testtools { namespace bridgetest { 37cdf0e10cSrcweir 38cdf0e10cSrcweir class Multi: public cppu::WeakImplHelper1< test::testtools::bridgetest::XMulti > 39cdf0e10cSrcweir { 40cdf0e10cSrcweir public: Multi()41cdf0e10cSrcweir Multi(): m_attribute1(0.0), m_attribute3(0.0) {} 42cdf0e10cSrcweir getatt1()43cdf0e10cSrcweir virtual double SAL_CALL getatt1() 44cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 45cdf0e10cSrcweir { return m_attribute1; } 46cdf0e10cSrcweir setatt1(double value)47cdf0e10cSrcweir virtual void SAL_CALL setatt1(double value) 48cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 49cdf0e10cSrcweir { m_attribute1 = value; } 50cdf0e10cSrcweir fn11(sal_Int32 arg)51cdf0e10cSrcweir virtual sal_Int32 SAL_CALL fn11(sal_Int32 arg) 52cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 53cdf0e10cSrcweir { return 11 * arg; } 54cdf0e10cSrcweir fn12(rtl::OUString const & arg)55cdf0e10cSrcweir virtual rtl::OUString SAL_CALL fn12(rtl::OUString const & arg) 56cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 57cdf0e10cSrcweir { return rtl::OUString::createFromAscii("12") + arg; } 58cdf0e10cSrcweir fn21(sal_Int32 arg)59cdf0e10cSrcweir virtual sal_Int32 SAL_CALL fn21(sal_Int32 arg) 60cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 61cdf0e10cSrcweir { return 21 * arg; } 62cdf0e10cSrcweir fn22(rtl::OUString const & arg)63cdf0e10cSrcweir virtual rtl::OUString SAL_CALL fn22(rtl::OUString const & arg) 64cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 65cdf0e10cSrcweir { return rtl::OUString::createFromAscii("22") + arg; } 66cdf0e10cSrcweir getatt3()67cdf0e10cSrcweir virtual double SAL_CALL getatt3() 68cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 69cdf0e10cSrcweir { return m_attribute3; } 70cdf0e10cSrcweir setatt3(double value)71cdf0e10cSrcweir virtual void SAL_CALL setatt3(double value) 72cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 73cdf0e10cSrcweir { m_attribute3 = value; } 74cdf0e10cSrcweir fn31(sal_Int32 arg)75cdf0e10cSrcweir virtual sal_Int32 SAL_CALL fn31(sal_Int32 arg) 76cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 77cdf0e10cSrcweir { return 31 * arg; } 78cdf0e10cSrcweir fn32(rtl::OUString const & arg)79cdf0e10cSrcweir virtual rtl::OUString SAL_CALL fn32(rtl::OUString const & arg) 80cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 81cdf0e10cSrcweir { return rtl::OUString::createFromAscii("32") + arg; } 82cdf0e10cSrcweir fn33()83cdf0e10cSrcweir virtual sal_Int32 SAL_CALL fn33() 84cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 85cdf0e10cSrcweir { return 33; } 86cdf0e10cSrcweir fn41(sal_Int32 arg)87cdf0e10cSrcweir virtual sal_Int32 SAL_CALL fn41(sal_Int32 arg) 88cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 89cdf0e10cSrcweir { return 41 * arg; } 90cdf0e10cSrcweir fn61(sal_Int32 arg)91cdf0e10cSrcweir virtual sal_Int32 SAL_CALL fn61(sal_Int32 arg) 92cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 93cdf0e10cSrcweir { return 61 * arg; } 94cdf0e10cSrcweir fn62(rtl::OUString const & arg)95cdf0e10cSrcweir virtual rtl::OUString SAL_CALL fn62(rtl::OUString const & arg) 96cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 97cdf0e10cSrcweir { return rtl::OUString::createFromAscii("62") + arg; } 98cdf0e10cSrcweir fn71(sal_Int32 arg)99cdf0e10cSrcweir virtual sal_Int32 SAL_CALL fn71(sal_Int32 arg) 100cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 101cdf0e10cSrcweir { return 71 * arg; } 102cdf0e10cSrcweir fn72(rtl::OUString const & arg)103cdf0e10cSrcweir virtual rtl::OUString SAL_CALL fn72(rtl::OUString const & arg) 104cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 105cdf0e10cSrcweir { return rtl::OUString::createFromAscii("72") + arg; } 106cdf0e10cSrcweir fn73()107cdf0e10cSrcweir virtual sal_Int32 SAL_CALL fn73() 108cdf0e10cSrcweir throw (com::sun::star::uno::RuntimeException) 109cdf0e10cSrcweir { return 73; } 110cdf0e10cSrcweir 111cdf0e10cSrcweir private: 112cdf0e10cSrcweir double m_attribute1; 113cdf0e10cSrcweir double m_attribute3; 114cdf0e10cSrcweir }; 115cdf0e10cSrcweir 116cdf0e10cSrcweir rtl::OUString testMulti( 117cdf0e10cSrcweir com::sun::star::uno::Reference< test::testtools::bridgetest::XMulti > 118cdf0e10cSrcweir const & multi); 119cdf0e10cSrcweir 120cdf0e10cSrcweir } } 121cdf0e10cSrcweir 122cdf0e10cSrcweir #endif 123