LibreOffice Module test (master)  1
xsearchable.hxx
Go to the documentation of this file.
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 #include <com/sun/star/uno/Reference.hxx>
16 
17 namespace apitest {
18 
20 {
21 public:
22  XSearchable(const OUString& rString, sal_Int32 nCount) : maSearchString(rString), mnCount(nCount) {}
23  XSearchable() : maSearchString("SearchString"), mnCount(1) {}
24  virtual ~XSearchable();
25 
26  void testFindFirst();
27  void testFindNext();
28  void testFindAll();
29 
30  virtual css::uno::Reference< css::uno::XInterface > init() = 0;
31 
32 private:
33  OUString maSearchString;
34  sal_Int32 mnCount;
35 };
36 
37 }
38 
39 #endif // INCLUDED_TEST_UTIL_XSEARCHABLE_HXX
40 
41 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
XSearchable(const OUString &rString, sal_Int32 nCount)
Definition: xsearchable.hxx:22
std::size_t mnCount
FILE * init(int, char **)
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28