Branch libreoffice-5-0-4
[LibreOffice.git] / include / test / util / xsearchable.hxx
blob99369c854be047514e7a2ffff3280d7041df09a1
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_UTIL_XSEARCHABLE_HXX
11 #define INCLUDED_TEST_UTIL_XSEARCHABLE_HXX
13 #include <test/testdllapi.hxx>
15 namespace apitest {
17 class OOO_DLLPUBLIC_TEST XSearchable
19 public:
20 XSearchable(const OUString& rString, sal_Int32 nCount) : maSearchString(rString), mnCount(nCount) {}
21 XSearchable() : maSearchString("SearchString"), mnCount(1) {}
22 virtual ~XSearchable();
24 void testFindFirst();
25 void testFindNext();
26 void testFindAll();
28 virtual css::uno::Reference< css::uno::XInterface > init() = 0;
30 private:
31 OUString maSearchString;
32 sal_Int32 mnCount;
37 #endif // INCLUDED_TEST_UTIL_XSEARCHABLE_HXX
39 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */