From ed5640d8b587fbcfed7dd7967f3de04b37a76f26 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 11:06:44 +0200 Subject: Adding upstream version 4:7.4.7. Signed-off-by: Daniel Baumann --- include/test/util/searchdescriptor.hxx | 33 +++++++++++++++++++++++++ include/test/util/xindent.hxx | 35 +++++++++++++++++++++++++++ include/test/util/xmergeable.hxx | 34 ++++++++++++++++++++++++++ include/test/util/xrefreshable.hxx | 36 ++++++++++++++++++++++++++++ include/test/util/xreplaceable.hxx | 40 +++++++++++++++++++++++++++++++ include/test/util/xreplacedescriptor.hxx | 33 +++++++++++++++++++++++++ include/test/util/xsearchable.hxx | 41 ++++++++++++++++++++++++++++++++ include/test/util/xsearchdescriptor.hxx | 33 +++++++++++++++++++++++++ 8 files changed, 285 insertions(+) create mode 100644 include/test/util/searchdescriptor.hxx create mode 100644 include/test/util/xindent.hxx create mode 100644 include/test/util/xmergeable.hxx create mode 100644 include/test/util/xrefreshable.hxx create mode 100644 include/test/util/xreplaceable.hxx create mode 100644 include/test/util/xreplacedescriptor.hxx create mode 100644 include/test/util/xsearchable.hxx create mode 100644 include/test/util/xsearchdescriptor.hxx (limited to 'include/test/util') diff --git a/include/test/util/searchdescriptor.hxx b/include/test/util/searchdescriptor.hxx new file mode 100644 index 000000000..b2f5d5bd6 --- /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 + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST SearchDescriptor +{ +public: + virtual css::uno::Reference 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 000000000..bb3c0e5d3 --- /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 +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XIndent +{ +public: + virtual css::uno::Reference 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 000000000..9ed2d479b --- /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 +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XMergeable +{ +public: + virtual css::uno::Reference 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 000000000..dd8230325 --- /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 + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XRefreshable +{ +public: + virtual css::uno::Reference 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 000000000..9f33feeb5 --- /dev/null +++ b/include/test/util/xreplaceable.hxx @@ -0,0 +1,40 @@ +/* -*- 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 +#include + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XReplaceable +{ +public: + XReplaceable( const OUString& rSearchString, const OUString& rReplaceString): + maSearchString(rSearchString), maReplaceString(rReplaceString) {} + 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 000000000..878ee7126 --- /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 + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XReplaceDescriptor +{ +public: + virtual css::uno::Reference 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 000000000..9f45f051e --- /dev/null +++ b/include/test/util/xsearchable.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_XSEARCHABLE_HXX +#define INCLUDED_TEST_UTIL_XSEARCHABLE_HXX + +#include + +#include + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XSearchable +{ +public: + XSearchable(const OUString& rString, sal_Int32 nCount) : maSearchString(rString), 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 000000000..1bad97375 --- /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 + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSearchDescriptor +{ +public: + virtual css::uno::Reference init() = 0; + + void testGetSetSearchString(); + +protected: + ~XSearchDescriptor() {} +}; + +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit v1.2.3