Version 6.4.0.3, tag libreoffice-6.4.0.3
[LibreOffice.git] / testtools / source / bridgetest / multi.hxx
blobcf499a32450789587249da8203a323303c1f8ae2
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 .
20 #ifndef INCLUDED_TESTTOOLS_SOURCE_BRIDGETEST_MULTI_HXX
21 #define INCLUDED_TESTTOOLS_SOURCE_BRIDGETEST_MULTI_HXX
23 #include <sal/config.h>
25 #include <com/sun/star/uno/Reference.hxx>
26 #include <com/sun/star/uno/RuntimeException.hpp>
27 #include <cppuhelper/implbase.hxx>
28 #include <rtl/ustring.hxx>
29 #include <sal/types.h>
30 #include <test/testtools/bridgetest/XMulti.hpp>
32 #include "dllapi.hxx"
34 namespace testtools { namespace bridgetest {
36 class Multi: public cppu::WeakImplHelper< test::testtools::bridgetest::XMulti >
38 public:
39 Multi(): m_attribute1(0.0), m_attribute3(0.0) {}
41 virtual double SAL_CALL getatt1() override
42 { return m_attribute1; }
44 virtual void SAL_CALL setatt1(double value) override
45 { m_attribute1 = value; }
47 virtual sal_Int32 SAL_CALL fn11(sal_Int32 arg) override
48 { return 11 * arg; }
50 virtual OUString SAL_CALL fn12(OUString const & arg) override
51 { return "12" + arg; }
53 virtual sal_Int32 SAL_CALL fn21(sal_Int32 arg) override
54 { return 21 * arg; }
56 virtual OUString SAL_CALL fn22(OUString const & arg) override
57 { return "22" + arg; }
59 virtual double SAL_CALL getatt3() override
60 { return m_attribute3; }
62 virtual void SAL_CALL setatt3(double value) override
63 { m_attribute3 = value; }
65 virtual sal_Int32 SAL_CALL fn31(sal_Int32 arg) override
66 { return 31 * arg; }
68 virtual OUString SAL_CALL fn32(OUString const & arg) override
69 { return "32" + arg; }
71 virtual sal_Int32 SAL_CALL fn33() override
72 { return 33; }
74 virtual sal_Int32 SAL_CALL fn41(sal_Int32 arg) override
75 { return 41 * arg; }
77 virtual sal_Int32 SAL_CALL fn61(sal_Int32 arg) override
78 { return 61 * arg; }
80 virtual OUString SAL_CALL fn62(OUString const & arg) override
81 { return "62" + arg; }
83 virtual sal_Int32 SAL_CALL fn71(sal_Int32 arg) override
84 { return 71 * arg; }
86 virtual OUString SAL_CALL fn72(OUString const & arg) override
87 { return "72" + arg; }
89 virtual sal_Int32 SAL_CALL fn73() override
90 { return 73; }
92 private:
93 double m_attribute1;
94 double m_attribute3;
97 LO_DLLPUBLIC_TESTTOOLS
98 OUString testMulti( css::uno::Reference< test::testtools::bridgetest::XMulti > const & multi);
102 #endif
104 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */