Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
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_UTIL_XSEARCHABLE_HXX
11 : #define INCLUDED_TEST_UTIL_XSEARCHABLE_HXX
12 :
13 : #include <test/testdllapi.hxx>
14 :
15 : namespace apitest {
16 :
17 : class OOO_DLLPUBLIC_TEST XSearchable
18 : {
19 : public:
20 42 : XSearchable(const OUString& rString, sal_Int32 nCount) : maSearchString(rString), mnCount(nCount) {}
21 : XSearchable() : maSearchString("SearchString"), mnCount(1) {}
22 : virtual ~XSearchable();
23 :
24 : void testFindFirst();
25 : void testFindNext();
26 : void testFindAll();
27 :
28 : virtual css::uno::Reference< css::uno::XInterface > init() = 0;
29 :
30 : private:
31 : OUString maSearchString;
32 : sal_Int32 mnCount;
33 : };
34 :
35 : }
36 :
37 : #endif // INCLUDED_TEST_UTIL_XSEARCHABLE_HXX
38 :
39 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|