Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / test / helper / form.hxx
blobd3b80544d7b50363dacd06b0cb611e44aa26bf04
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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/.
8 */
10 #ifndef INCLUDED_TEST_HELPER_FORM_HXX
11 #define INCLUDED_TEST_HELPER_FORM_HXX
13 #include <sal/config.h>
15 #include <string_view>
17 #include <com/sun/star/drawing/XControlShape.hpp>
18 #include <com/sun/star/lang/XComponent.hpp>
20 #include <com/sun/star/uno/Reference.hxx>
22 #include <sal/types.h>
23 #include <test/testdllapi.hxx>
25 namespace apitest
27 namespace helper
29 namespace form
31 /** @brief Create a XControlShape of kind "CommandButton".
33 * @param r_xComponent The document.
34 * @param nX The x-position of the shape.
35 * @param nY The y-position of the shape.
36 * @param nHeight The height of the shape.
37 * @param nWidth The width of the shape.
38 * @return The created XControlShape.
40 css::uno::Reference<css::drawing::XControlShape> OOO_DLLPUBLIC_TEST createCommandButton(
41 const css::uno::Reference<css::lang::XComponent>& r_xComponent, const sal_Int32 nX,
42 const sal_Int32 nY, const sal_Int32 nHeight, const sal_Int32 nWidth);
44 /** @brief Create a XControlShape
46 * @param r_xComponent The document.
47 * @param r_aKind The kind of the shape.
48 * @param nX The x-position of the shape.
49 * @param nY The y-position of the shape.
50 * @param nHeight The height of the shape.
51 * @param nWidth The width of the shape.
52 * @return The created XControlShape.
54 css::uno::Reference<css::drawing::XControlShape> OOO_DLLPUBLIC_TEST createControlShape(
55 const css::uno::Reference<css::lang::XComponent>& r_xComponent, std::u16string_view r_aKind,
56 const sal_Int32 nX, const sal_Int32 nY, const sal_Int32 nHeight, const sal_Int32 nWidth);
58 } // namespace form
59 } // namespace helper
60 } // namespace apitest
62 #endif // INCLUDED_TEST_HELPER_FORM_HXX
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */