Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / include / test / container / xindexaccess.hxx
blob64a34b8bf296d258015fc56a3266c69de9f3f216
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_XINDEXACCESS_HXX
11 #define INCLUDED_TEST_CONTAINER_XINDEXACCESS_HXX
13 #include <com/sun/star/uno/XInterface.hpp>
15 #include <com/sun/star/uno/Reference.hxx>
17 #include <test/testdllapi.hxx>
19 namespace apitest
21 class OOO_DLLPUBLIC_TEST XIndexAccess
23 public:
24 XIndexAccess(sal_Int32 nItems)
25 : m_nItems(nItems)
29 virtual css::uno::Reference<css::uno::XInterface> init() = 0;
30 void testGetCount();
31 void testGetByIndex();
32 // will throw an exception and should fail if not
33 void testGetByIndexException();
35 protected:
36 ~XIndexAccess() {}
38 private:
39 sal_Int32 m_nItems;
42 } // namespace apitest
44 #endif // INCLUDED_TEST_CONTAINER_XINDEXACCESS_HXX
46 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */