From 2e0e7a15f66f5cb55f2a424fae6a9050c2c7f9ca Mon Sep 17 00:00:00 2001 From: Jens Carl Date: Fri, 29 Mar 2019 22:06:59 +0000 Subject: tdf#45904 Move XFormLayerAccess Java tests to C++ Move XFormLayerAccess Java tests to C++ for ScViewPaneObj. Change-Id: I7ed6ff51d435b6f3de85daec99a13583e50a450a Reviewed-on: https://gerrit.libreoffice.org/69942 Tested-by: Jenkins Reviewed-by: Jens Carl --- include/test/helper/form.hxx | 15 +++++++++++- include/test/view/xformlayeraccess.hxx | 43 ++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 include/test/view/xformlayeraccess.hxx (limited to 'include') diff --git a/include/test/helper/form.hxx b/include/test/helper/form.hxx index f6e035d64fec..d84794cc5b6d 100644 --- a/include/test/helper/form.hxx +++ b/include/test/helper/form.hxx @@ -26,6 +26,19 @@ namespace helper { namespace form { +/** @brief Create a XControlShape of kind "CommandButton". + * + * @param r_xComponent The document. + * @param nX The x-position of the shape. + * @param nY The y-position of the shape. + * @param nHeight The height of the shape. + * @param nWidth The width of the shape. + * @return The created XControlShape. + */ +css::uno::Reference OOO_DLLPUBLIC_TEST createCommandButton( + const css::uno::Reference& r_xComponent, const sal_Int32 nX, + const sal_Int32 nY, const sal_Int32 nHeight, const sal_Int32 nWidth); + /** @brief Create a XControlShape * * @param r_xComponent The document. @@ -34,7 +47,7 @@ namespace form * @param nY The y-position of the shape. * @param nHeight The height of the shape. * @param nWidth The width of the shape. - * @return The create XControlShape. + * @return The created XControlShape. */ css::uno::Reference OOO_DLLPUBLIC_TEST createControlShape( const css::uno::Reference& r_xComponent, const OUString& r_aKind, diff --git a/include/test/view/xformlayeraccess.hxx b/include/test/view/xformlayeraccess.hxx new file mode 100644 index 000000000000..ddd2542ab8ef --- /dev/null +++ b/include/test/view/xformlayeraccess.hxx @@ -0,0 +1,43 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_TEST_VIEW_XFORMLAYERACCESS_HXX +#define INCLUDED_TEST_VIEW_XFORMLAYERACCESS_HXX + +#include +#include + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XFormLayerAccess +{ +public: + virtual css::uno::Reference init() = 0; + void setForm(const css::uno::Reference& r_xForm) { m_xForm = r_xForm; } + + void testGetFormController(); + void testIsFormDesignMode(); + void testSetFormDesignMode(); + +protected: + ~XFormLayerAccess() {} + +private: + css::uno::Reference m_xForm; +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_VIEW_XFORMLAYERACCESS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit option> LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
path: root/sc/qa
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2017-09-30 23:19:19 +0200
committerJulien Nabet <serval2412@yahoo.fr>2017-09-30 23:52:12 +0200
commit1d0fbc9927f357d25859b7cca7ea5e9a9637681e (patch)
treef5063a4b239cde267b94b0c6c96dcb9ddb927f57 /sc/qa
parentd2978f03bd57e5fe530eb55accc8c5f39b602ff2 (diff)
Fix typos
Change-Id: Ic09de64e5672d66b7436a6525344f845550523f9 Reviewed-on: https://gerrit.libreoffice.org/42982 Reviewed-by: Julien Nabet <serval2412@yahoo.fr> Tested-by: Julien Nabet <serval2412@yahoo.fr>