diff options
Diffstat (limited to 'include/test/util')
-rw-r--r-- | include/test/util/searchdescriptor.hxx | 33 | ||||
-rw-r--r-- | include/test/util/xindent.hxx | 35 | ||||
-rw-r--r-- | include/test/util/xmergeable.hxx | 34 | ||||
-rw-r--r-- | include/test/util/xrefreshable.hxx | 36 | ||||
-rw-r--r-- | include/test/util/xreplaceable.hxx | 41 | ||||
-rw-r--r-- | include/test/util/xreplacedescriptor.hxx | 33 | ||||
-rw-r--r-- | include/test/util/xsearchable.hxx | 42 | ||||
-rw-r--r-- | include/test/util/xsearchdescriptor.hxx | 33 |
8 files changed, 287 insertions, 0 deletions
diff --git a/include/test/util/searchdescriptor.hxx b/include/test/util/searchdescriptor.hxx new file mode 100644 index 0000000000..b2f5d5bd62 --- /dev/null +++ b/include/test/util/searchdescriptor.hxx @@ -0,0 +1,33 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST SearchDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSearchDescriptorProperties(); + +protected: + ~SearchDescriptor() {} +}; + +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/util/xindent.hxx b/include/test/util/xindent.hxx new file mode 100644 index 0000000000..bb3c0e5d3e --- /dev/null +++ b/include/test/util/xindent.hxx @@ -0,0 +1,35 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* +* This file is part of the LibreOffice project. +* +* This Source Code Form is subject to the terms of the Mozilla Public +* License, v. 2.0. If a copy of the MPL was not distributed with this +* file, You can obtain one at http://mozilla.org/MPL/2.0/. +*/ + +#ifndef INCLUDED_TEST_UTIL_XINDENT_HXX +#define INCLUDED_TEST_UTIL_XINDENT_HXX + +#include <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XIndent +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testIncrementIndent(); + void testDecrementIndent(); + +protected: + ~XIndent() {} +}; +} + +#endif // INCLUDED_TEST_UTIL_XINDENT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/util/xmergeable.hxx b/include/test/util/xmergeable.hxx new file mode 100644 index 0000000000..9ed2d479be --- /dev/null +++ b/include/test/util/xmergeable.hxx @@ -0,0 +1,34 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* +* This file is part of the LibreOffice project. +* +* This Source Code Form is subject to the terms of the Mozilla Public +* License, v. 2.0. If a copy of the MPL was not distributed with this +* file, You can obtain one at http://mozilla.org/MPL/2.0/. +*/ + +#ifndef INCLUDED_TEST_UTIL_XMERGEABLE_HXX +#define INCLUDED_TEST_UTIL_XMERGEABLE_HXX + +#include <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XMergeable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetIsMergedMerge(); + +protected: + ~XMergeable() {} +}; +} + +#endif // INCLUDED_TEST_UTIL_XMERGEABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/util/xrefreshable.hxx b/include/test/util/xrefreshable.hxx new file mode 100644 index 0000000000..dd82303259 --- /dev/null +++ b/include/test/util/xrefreshable.hxx @@ -0,0 +1,36 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_TEST_UTIL_XREFRESHABLE_HXX +#define INCLUDED_TEST_UTIL_XREFRESHABLE_HXX + +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XRefreshable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testRefreshListener(); + +protected: + ~XRefreshable() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_UTIL_XREFRESHABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/util/xreplaceable.hxx b/include/test/util/xreplaceable.hxx new file mode 100644 index 0000000000..5773e75aec --- /dev/null +++ b/include/test/util/xreplaceable.hxx @@ -0,0 +1,41 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_TEST_UTIL_XREPLACEABLE_HXX +#define INCLUDED_TEST_UTIL_XREPLACEABLE_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <test/testdllapi.hxx> +#include <utility> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XReplaceable +{ +public: + XReplaceable( OUString aSearchString, OUString aReplaceString): + maSearchString(std::move(aSearchString)), maReplaceString(std::move(aReplaceString)) {} + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + + void testCreateReplaceDescriptor(); + void testReplaceAll(); + +protected: + ~XReplaceable() {} + +private: + OUString maSearchString; + OUString maReplaceString; +}; + +} + +#endif // INCLUDED_TEST_UTIL_XREPLACEABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/util/xreplacedescriptor.hxx b/include/test/util/xreplacedescriptor.hxx new file mode 100644 index 0000000000..878ee7126f --- /dev/null +++ b/include/test/util/xreplacedescriptor.hxx @@ -0,0 +1,33 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XReplaceDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetReplaceString(); + +protected: + ~XReplaceDescriptor() {} +}; + +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/util/xsearchable.hxx b/include/test/util/xsearchable.hxx new file mode 100644 index 0000000000..0f78ceb18c --- /dev/null +++ b/include/test/util/xsearchable.hxx @@ -0,0 +1,42 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_TEST_UTIL_XSEARCHABLE_HXX +#define INCLUDED_TEST_UTIL_XSEARCHABLE_HXX + +#include <test/testdllapi.hxx> + +#include <com/sun/star/uno/Reference.hxx> +#include <utility> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XSearchable +{ +public: + XSearchable(OUString aString, sal_Int32 nCount) : maSearchString(std::move(aString)), mnCount(nCount) {} + XSearchable() : maSearchString("SearchString"), mnCount(1) {} + virtual ~XSearchable(); + + void testFindFirst(); + void testFindNext(); + void testFindAll(); + + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + +private: + OUString maSearchString; + sal_Int32 mnCount; +}; + +} + +#endif // INCLUDED_TEST_UTIL_XSEARCHABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/util/xsearchdescriptor.hxx b/include/test/util/xsearchdescriptor.hxx new file mode 100644 index 0000000000..1bad973753 --- /dev/null +++ b/include/test/util/xsearchdescriptor.hxx @@ -0,0 +1,33 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#pragma once + +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSearchDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetSearchString(); + +protected: + ~XSearchDescriptor() {} +}; + +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |