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/text/baseindex.hxx | 30 ++++++++++++++++++ include/test/text/textcontent.hxx | 51 ++++++++++++++++++++++++++++++ include/test/text/textdocumentindex.hxx | 30 ++++++++++++++++++ include/test/text/textdocumentsettings.hxx | 29 +++++++++++++++++ include/test/text/textprintersettings.hxx | 30 ++++++++++++++++++ include/test/text/textsettings.hxx | 30 ++++++++++++++++++ include/test/text/xdocumentindex.hxx | 36 +++++++++++++++++++++ include/test/text/xsimpletext.hxx | 36 +++++++++++++++++++++ include/test/text/xtext.hxx | 33 +++++++++++++++++++ include/test/text/xtextcontent.hxx | 39 +++++++++++++++++++++++ include/test/text/xtextfield.hxx | 37 ++++++++++++++++++++++ include/test/text/xtextrange.hxx | 38 ++++++++++++++++++++++ 12 files changed, 419 insertions(+) create mode 100644 include/test/text/baseindex.hxx create mode 100644 include/test/text/textcontent.hxx create mode 100644 include/test/text/textdocumentindex.hxx create mode 100644 include/test/text/textdocumentsettings.hxx create mode 100644 include/test/text/textprintersettings.hxx create mode 100644 include/test/text/textsettings.hxx create mode 100644 include/test/text/xdocumentindex.hxx create mode 100644 include/test/text/xsimpletext.hxx create mode 100644 include/test/text/xtext.hxx create mode 100644 include/test/text/xtextcontent.hxx create mode 100644 include/test/text/xtextfield.hxx create mode 100644 include/test/text/xtextrange.hxx (limited to 'include/test/text') diff --git a/include/test/text/baseindex.hxx b/include/test/text/baseindex.hxx new file mode 100644 index 000000000..7a523ed55 --- /dev/null +++ b/include/test/text/baseindex.hxx @@ -0,0 +1,30 @@ +/* -*- 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_TEXT_BASEINDEXTEST_HXX +#define INCLUDED_TEST_TEXT_BASEINDEXTEST_HXX + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST BaseIndex +{ +public: + virtual css::uno::Reference init() = 0; + virtual ~BaseIndex(); + void testBaseIndexProperties(); +}; +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/textcontent.hxx b/include/test/text/textcontent.hxx new file mode 100644 index 000000000..e6333d60e --- /dev/null +++ b/include/test/text/textcontent.hxx @@ -0,0 +1,51 @@ +/* -*- 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 +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TextContent +{ +public: + TextContent(const css::text::TextContentAnchorType aExpectedTCAT, + const css::text::TextContentAnchorType aNewTCAT, + const css::text::WrapTextMode aExpectedWTM, const css::text::WrapTextMode aNewWTM) + : m_aExpectedTCAT(aExpectedTCAT) + , m_aNewTCAT(aNewTCAT) + , m_aExpectedWTM(aExpectedWTM) + , m_aNewWTM(aNewWTM) + { + } + + virtual css::uno::Reference init() = 0; + + void testTextContentProperties(); + +protected: + ~TextContent() {} + +private: + css::text::TextContentAnchorType const m_aExpectedTCAT; + css::text::TextContentAnchorType const m_aNewTCAT; + css::text::WrapTextMode const m_aExpectedWTM; + css::text::WrapTextMode const m_aNewWTM; +}; + +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/text/textdocumentindex.hxx b/include/test/text/textdocumentindex.hxx new file mode 100644 index 000000000..92e827cfe --- /dev/null +++ b/include/test/text/textdocumentindex.hxx @@ -0,0 +1,30 @@ +/* -*- 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_TEXT_DOCUMENTINDEXTEST_HXX +#define INCLUDED_TEST_TEXT_DOCUMENTINDEXTEST_HXX + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TextDocumentIndex +{ +public: + virtual css::uno::Reference init() = 0; + virtual ~TextDocumentIndex(); + void testDocumentIndexProperties(); +}; +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/textdocumentsettings.hxx b/include/test/text/textdocumentsettings.hxx new file mode 100644 index 000000000..e7a28a2f1 --- /dev/null +++ b/include/test/text/textdocumentsettings.hxx @@ -0,0 +1,29 @@ +/* -*- 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_TEXT_TEXTDOCUMENTSETTINGS_HXX +#define INCLUDED_TEST_TEXT_TEXTDOCUMENTSETTINGS_HXX + +#include +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TextDocumentSettings +{ +public: + virtual css::uno::Reference init() = 0; + virtual ~TextDocumentSettings(); + void testDocumentSettingsProperties(); +}; +} // end namespace apitest + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/textprintersettings.hxx b/include/test/text/textprintersettings.hxx new file mode 100644 index 000000000..2ceac34b9 --- /dev/null +++ b/include/test/text/textprintersettings.hxx @@ -0,0 +1,30 @@ +/* -*- 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_TEXT_TEXTPRINTERSETTINGS_HXX +#define INCLUDED_TEST_TEXT_TEXTPRINTERSETTINGS_HXX + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TextPrinterSettings +{ +public: + virtual css::uno::Reference init() = 0; + virtual ~TextPrinterSettings(); + void testPrinterSettingsProperties(); +}; +} // end namespace apitest + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/textsettings.hxx b/include/test/text/textsettings.hxx new file mode 100644 index 000000000..9566f21dc --- /dev/null +++ b/include/test/text/textsettings.hxx @@ -0,0 +1,30 @@ +/* -*- 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_TEXT_TEXTSETTINGS_HXX +#define INCLUDED_TEST_TEXT_TEXTSETTINGS_HXX + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TextSettings +{ +public: + virtual css::uno::Reference init() = 0; + virtual ~TextSettings(); + void testSettingsProperties(); +}; +} // end namespace apitest + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/xdocumentindex.hxx b/include/test/text/xdocumentindex.hxx new file mode 100644 index 000000000..4efdaeeec --- /dev/null +++ b/include/test/text/xdocumentindex.hxx @@ -0,0 +1,36 @@ +/* -*- 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_TEST_XDOCUMENTINDEX_HXX +#define INCLUDED_TEST_TEST_XDOCUMENTINDEX_HXX + +#include + +#include + +namespace apitest +{ +/** + * Testing com.sun.star.text.XDocumentIndex + * + * @see com.sun.star.text.XDocumentIndex + */ +class OOO_DLLPUBLIC_TEST XDocumentIndex +{ +public: + virtual css::uno::Reference init() = 0; + virtual css::uno::Reference getTextDocument() = 0; + virtual ~XDocumentIndex(); + void testUpdate(); +}; +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/xsimpletext.hxx b/include/test/text/xsimpletext.hxx new file mode 100644 index 000000000..ec371ea21 --- /dev/null +++ b/include/test/text/xsimpletext.hxx @@ -0,0 +1,36 @@ +/* -*- 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_TEXT_XSIMPLETEXT_HXX +#define INCLUDED_TEST_TEXT_XSIMPLETEXT_HXX + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSimpleText +{ +public: + virtual css::uno::Reference init() = 0; + + void testCreateTextCursor(); + void testCreateTextCursorByRange(); + void testInsertString(); + void testInsertControlCharacter(); + +protected: + ~XSimpleText() {} +}; +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/xtext.hxx b/include/test/text/xtext.hxx new file mode 100644 index 000000000..537cfa21d --- /dev/null +++ b/include/test/text/xtext.hxx @@ -0,0 +1,33 @@ +/* -*- 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_TEXT_XTEXT_HXX +#define INCLUDED_TEST_TEXT_XTEXT_HXX + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XText +{ +public: + virtual ~XText(); + + virtual css::uno::Reference init() = 0; + virtual css::uno::Reference getTextContent() = 0; + + void testInsertRemoveTextContent(); +}; +} + +#endif + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/xtextcontent.hxx b/include/test/text/xtextcontent.hxx new file mode 100644 index 000000000..f23852062 --- /dev/null +++ b/include/test/text/xtextcontent.hxx @@ -0,0 +1,39 @@ +/* -*- 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_TEXT_XTEXTCONTENT_HXX +#define INCLUDED_TEST_TEXT_XTEXTCONTENT_HXX + +#include +#include +#include + +#include + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XTextContent +{ +public: + virtual ~XTextContent() {} + + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + virtual css::uno::Reference< css::text::XTextRange > getTextRange() = 0; + virtual css::uno::Reference< css::text::XTextContent > getTextContent() = 0; + virtual bool isAttachSupported() = 0; + + void testGetAnchor(); + void testAttach(); +}; + +} + +#endif // INCLUDED_TEST_TEXT_XTEXTCONTENT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/text/xtextfield.hxx b/include/test/text/xtextfield.hxx new file mode 100644 index 000000000..6d717b1ea --- /dev/null +++ b/include/test/text/xtextfield.hxx @@ -0,0 +1,37 @@ +/* -*- 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_TEXT_XTEXTFIELD_HXX +#define INCLUDED_TEST_TEXT_XTEXTFIELD_HXX + +#include + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTextField +{ +public: + virtual css::uno::Reference init() = 0; + + void testGetPresentation(); + void testGetPresentationEmptyString(); + +protected: + ~XTextField() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_TEXT_XTEXTFIELD_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/text/xtextrange.hxx b/include/test/text/xtextrange.hxx new file mode 100644 index 000000000..a986e7fae --- /dev/null +++ b/include/test/text/xtextrange.hxx @@ -0,0 +1,38 @@ +/* -*- 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_TEXT_XTEXTRANGE_HXX +#define INCLUDED_TEST_TEXT_XTEXTRANGE_HXX + +#include +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTextRange +{ +public: + virtual css::uno::Reference init() = 0; + + void testGetEnd(); + void testGetSetString(); + void testGetStart(); + void testGetText(); + +protected: + ~XTextRange() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_TEXT_XTEXTRANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit v1.2.3