From 267c6f2ac71f92999e969232431ba04678e7437e Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 07:54:39 +0200 Subject: Adding upstream version 4:24.2.0. Signed-off-by: Daniel Baumann --- include/test/table/tablecolumn.hxx | 41 +++++++++++++++++++++ include/test/table/tablerow.hxx | 36 ++++++++++++++++++ include/test/table/xcell.hxx | 37 +++++++++++++++++++ include/test/table/xcellcursor.hxx | 39 ++++++++++++++++++++ include/test/table/xcellrange.hxx | 50 +++++++++++++++++++++++++ include/test/table/xcolumnrowrange.hxx | 35 ++++++++++++++++++ include/test/table/xtablechart.hxx | 37 +++++++++++++++++++ include/test/table/xtablecharts.hxx | 36 ++++++++++++++++++ include/test/table/xtablechartssupplier.hxx | 34 +++++++++++++++++ include/test/table/xtablecolumns.hxx | 57 +++++++++++++++++++++++++++++ include/test/table/xtablerows.hxx | 38 +++++++++++++++++++ 11 files changed, 440 insertions(+) create mode 100644 include/test/table/tablecolumn.hxx create mode 100644 include/test/table/tablerow.hxx create mode 100644 include/test/table/xcell.hxx create mode 100644 include/test/table/xcellcursor.hxx create mode 100644 include/test/table/xcellrange.hxx create mode 100644 include/test/table/xcolumnrowrange.hxx create mode 100644 include/test/table/xtablechart.hxx create mode 100644 include/test/table/xtablecharts.hxx create mode 100644 include/test/table/xtablechartssupplier.hxx create mode 100644 include/test/table/xtablecolumns.hxx create mode 100644 include/test/table/xtablerows.hxx (limited to 'include/test/table') diff --git a/include/test/table/tablecolumn.hxx b/include/test/table/tablecolumn.hxx new file mode 100644 index 0000000000..a6ea3a01b4 --- /dev/null +++ b/include/test/table/tablecolumn.hxx @@ -0,0 +1,41 @@ +/* -*- 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 + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TableColumn +{ +public: + virtual css::uno::Reference init() = 0; + void setSpreadsheet(const css::uno::Reference& r_xSheet) + { + m_xSheet = r_xSheet; + } + + void testTableColumnProperties(); + +protected: + ~TableColumn() {} + +private: + css::uno::Reference m_xSheet; +}; + +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/tablerow.hxx b/include/test/table/tablerow.hxx new file mode 100644 index 0000000000..150534bb22 --- /dev/null +++ b/include/test/table/tablerow.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_TABLE_TABLEROW_HXX +#define INCLUDED_TEST_TABLE_TABLEROW_HXX + +#include + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TableRow +{ +public: + virtual css::uno::Reference init() = 0; + + void testTableRowProperties(); + +protected: + ~TableRow() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_TABLE_TABLEROW_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xcell.hxx b/include/test/table/xcell.hxx new file mode 100644 index 0000000000..a0249aac91 --- /dev/null +++ b/include/test/table/xcell.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_TABLE_XCELL_HXX +#define INCLUDED_TEST_TABLE_XCELL_HXX + +#include +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCell +{ +public: + virtual css::uno::Reference init() = 0; + + void testGetError(); + void testGetType(); + void testSetGetFormula(); + void testSetGetValue(); + +protected: + ~XCell() {} +}; +} + +#endif // INCLUDED_TEST_TABLE_XCELL_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xcellcursor.hxx b/include/test/table/xcellcursor.hxx new file mode 100644 index 0000000000..0fb5c06225 --- /dev/null +++ b/include/test/table/xcellcursor.hxx @@ -0,0 +1,39 @@ +/* -*- 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_TABLE_XCELLCURSOR_HXX +#define INCLUDED_TEST_TABLE_XCELLCURSOR_HXX + +#include +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCellCursor +{ +public: + virtual css::uno::Reference init() = 0; + virtual css::uno::Reference getXSpreadsheet() = 0; + + void testGoToNext(); + void testGoToOffset(); + void testGoToPrevious(); + void testGoToStart(); + void testGoToEnd(); + +protected: + ~XCellCursor() {} +}; +} + +#endif // INCLUDED_TEST_TABLE_XCELLCURSOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xcellrange.hxx b/include/test/table/xcellrange.hxx new file mode 100644 index 0000000000..94db1130b2 --- /dev/null +++ b/include/test/table/xcellrange.hxx @@ -0,0 +1,50 @@ +/* -*- 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_TABLE_XCELLRANGE_HXX +#define INCLUDED_TEST_TABLE_XCELLRANGE_HXX + +#include + +#include + +#include +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCellRange +{ +public: + XCellRange() + : m_aRangeName("A1:A1") + { + } + XCellRange(OUString aRangeName) + : m_aRangeName(std::move(aRangeName)) + { + } + + virtual css::uno::Reference init() = 0; + + void testGetCellByPosition(); + void testGetCellRangeByName(); + void testGetCellRangeByPosition(); + +protected: + ~XCellRange() {} + +private: + OUString const m_aRangeName; +}; +} // namespace apitest + +#endif // INCLUDED_TEST_TABLE_XCELLRANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xcolumnrowrange.hxx b/include/test/table/xcolumnrowrange.hxx new file mode 100644 index 0000000000..279a988478 --- /dev/null +++ b/include/test/table/xcolumnrowrange.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_TABLE_XCOLUMNROWRANGE_HXX +#define INCLUDED_TEST_TABLE_XCOLUMNROWRANGE_HXX + +#include +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XColumnRowRange +{ +public: + virtual css::uno::Reference init() = 0; + + void testGetColumns(); + void testGetRows(); + +protected: + ~XColumnRowRange() {} +}; +} + +#endif // INCLUDED_TEST_TABLE_XCOLUMNROWRANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xtablechart.hxx b/include/test/table/xtablechart.hxx new file mode 100644 index 0000000000..6c57bf3ac3 --- /dev/null +++ b/include/test/table/xtablechart.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_TABLE_XTABLECHART_HXX +#define INCLUDED_TEST_TABLE_XTABLECHART_HXX + +#include + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableChart +{ +public: + virtual css::uno::Reference init() = 0; + + void testGetSetHasColumnHeaders(); + void testGetSetHasRowHeaders(); + void testGetSetRanges(); + +protected: + ~XTableChart() {} +}; +} // namespace apitest + +#endif // INCLUDED_TEST_TABLE_XTABLECHART_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xtablecharts.hxx b/include/test/table/xtablecharts.hxx new file mode 100644 index 0000000000..fa43e552e3 --- /dev/null +++ b/include/test/table/xtablecharts.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_TABLE_XTABLECHARTS_HXX +#define INCLUDED_TEST_TABLE_XTABLECHARTS_HXX + +#include + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableCharts +{ +public: + virtual css::uno::Reference init() = 0; + + void testAddNewRemoveByName(); + +protected: + ~XTableCharts() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_TABLE_XTABLECHARTS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xtablechartssupplier.hxx b/include/test/table/xtablechartssupplier.hxx new file mode 100644 index 0000000000..9e5d45dd0d --- /dev/null +++ b/include/test/table/xtablechartssupplier.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_TABLE_XTABLECHARTSSUPPLIER_HXX +#define INCLUDED_TEST_TABLE_XTABLECHARTSSUPPLIER_HXX + +#include +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableChartsSupplier +{ +public: + virtual css::uno::Reference init() = 0; + + void testGetCharts(); + +protected: + ~XTableChartsSupplier() {} +}; +} + +#endif // INCLUDED_TEST_TABLE_XTABLECHARTSSUPPLIER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xtablecolumns.hxx b/include/test/table/xtablecolumns.hxx new file mode 100644 index 0000000000..957d344c59 --- /dev/null +++ b/include/test/table/xtablecolumns.hxx @@ -0,0 +1,57 @@ +/* -*- 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_TABLE_XTABLECOLUMNS_HXX +#define INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX + +#include +#include +#include + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableColumns +{ +public: + virtual css::uno::Reference init() = 0; + + void setXSpreadsheet(const css::uno::Reference& r_xSheet) + { + m_xSheet = r_xSheet; + } + + void testInsertByIndex(); + void testInsertByIndexWithNegativeIndex(); + // only use with ScTableColumnsObj + void testInsertByIndexWithNoColumn(); + void testInsertByIndexWithOutOfBoundIndex(); + void testRemoveByIndex(); + void testRemoveByIndexWithNegativeIndex(); + // only use with ScTableColumnsObj + void testRemoveByIndexWithNoColumn(); + void testRemoveByIndexWithOutOfBoundIndex(); + +protected: + ~XTableColumns() {} + +private: + css::uno::Reference m_xSheet; + + static OUString getCellText(const css::uno::Reference& r_xCell); +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/table/xtablerows.hxx b/include/test/table/xtablerows.hxx new file mode 100644 index 0000000000..ac874daac7 --- /dev/null +++ b/include/test/table/xtablerows.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_TABLE_XTABLEROWS_HXX +#define INCLUDED_TEST_TABLE_XTABLEROWS_HXX + +#include + +#include + +#include + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableRows +{ +public: + virtual css::uno::Reference init() = 0; + virtual css::uno::Reference getXCellRange() = 0; + + virtual void testInsertByIndex(); + virtual void testRemoveByIndex(); + +protected: + ~XTableRows() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_TABLE_XTABLEROWS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ -- cgit v1.2.3