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.
4  *
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  */
9 
10 #ifndef INCLUDED_TEST_CONTAINER_XNAMEACCESS_HXX
11 #define INCLUDED_TEST_CONTAINER_XNAMEACCESS_HXX
12 
13 #include <com/sun/star/uno/XInterface.hpp>
14 
15 #include <com/sun/star/uno/Reference.hxx>
16 
17 #include <test/testdllapi.hxx>
18 
19 namespace apitest
20 {
21 class OOO_DLLPUBLIC_TEST XNameAccess
22 {
23 public:
XNameAccess(const OUString & rName)24     XNameAccess(const OUString& rName)
25         : m_aName(rName)
26     {
27     }
28 
29     virtual css::uno::Reference<css::uno::XInterface> init() = 0;
30 
31     void testGetByName();
32     void testGetElementNames();
33     void testHasByName();
34 
35 protected:
~XNameAccess()36     ~XNameAccess() {}
37 
38 private:
39     OUString const m_aName;
40 };
41 
42 } // namespace apitest
43 
44 #endif // INCLUDED_TEST_CONTAINER_XNAMEACCESS_HXX
45 
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
47