Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / test / container / xnamereplace.hxx
blobdcecaf9717559decd863dafa1bccd8986dffb7aa
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_CONTAINER_XNAMEREPLACE_HXX
11 #define INCLUDED_TEST_CONTAINER_XNAMEREPLACE_HXX
13 #include <rtl/ustring.hxx>
14 #include <test/testdllapi.hxx>
16 #include <com/sun/star/uno/XInterface.hpp>
18 #include <com/sun/star/uno/Reference.hxx>
19 #include <com/sun/star/uno/Any.hxx>
20 #include <utility>
22 namespace apitest
24 class OOO_DLLPUBLIC_TEST XNameReplace
26 public:
27 XNameReplace(OUString aName)
28 : m_aReplacementName(std::move(aName))
32 virtual css::uno::Reference<css::uno::XInterface> init() = 0;
33 void testReplaceByName();
35 void setElement(const css::uno::Any& rElement) { m_aReplacementElement = rElement; }
37 protected:
38 ~XNameReplace() {}
40 private:
41 OUString m_aReplacementName;
42 css::uno::Any m_aReplacementElement;
45 } // namespace apitest
47 #endif // INCLUDED_TEST_CONTAINER_XNAMEREPLACE_HXX
49 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */