Branch libreoffice-5-0-4
[LibreOffice.git] / include / test / util / xreplaceable.hxx
blob37caf17393e057ac09c67f59c7e9eb4c08349d13
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_XREPLACEABLE_HXX
11 #define INCLUDED_TEST_UTIL_XREPLACEABLE_HXX
13 #include <com/sun/star/uno/Reference.hxx>
14 #include <test/testdllapi.hxx>
16 namespace apitest {
18 class OOO_DLLPUBLIC_TEST XReplaceable
20 public:
21 XReplaceable( const OUString& rSearchString, const OUString& rReplaceString):
22 maSearchString(rSearchString), maReplaceString(rReplaceString) {}
23 virtual css::uno::Reference< css::uno::XInterface > init() = 0;
25 void testCreateReplaceDescriptor();
26 void testReplaceAll();
28 protected:
29 ~XReplaceable() {}
31 private:
32 OUString maSearchString;
33 OUString maReplaceString;
38 #endif // INCLUDED_TEST_UTIL_XREPLACEABLE_HXX
40 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */