diff options
Diffstat (limited to 'include/test/table')
-rw-r--r-- | include/test/table/tablecolumn.hxx | 41 | ||||
-rw-r--r-- | include/test/table/tablerow.hxx | 36 | ||||
-rw-r--r-- | include/test/table/xcell.hxx | 37 | ||||
-rw-r--r-- | include/test/table/xcellcursor.hxx | 39 | ||||
-rw-r--r-- | include/test/table/xcellrange.hxx | 49 | ||||
-rw-r--r-- | include/test/table/xcolumnrowrange.hxx | 35 | ||||
-rw-r--r-- | include/test/table/xtablechart.hxx | 37 | ||||
-rw-r--r-- | include/test/table/xtablecharts.hxx | 36 | ||||
-rw-r--r-- | include/test/table/xtablechartssupplier.hxx | 34 | ||||
-rw-r--r-- | include/test/table/xtablecolumns.hxx | 57 | ||||
-rw-r--r-- | include/test/table/xtablerows.hxx | 38 |
11 files changed, 439 insertions, 0 deletions
diff --git a/include/test/table/tablecolumn.hxx b/include/test/table/tablecolumn.hxx new file mode 100644 index 000000000..a6ea3a01b --- /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 <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/sheet/XSpreadsheet.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TableColumn +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + void setSpreadsheet(const css::uno::Reference<css::sheet::XSpreadsheet>& r_xSheet) + { + m_xSheet = r_xSheet; + } + + void testTableColumnProperties(); + +protected: + ~TableColumn() {} + +private: + css::uno::Reference<css::sheet::XSpreadsheet> 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 000000000..150534bb2 --- /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 <test/testdllapi.hxx> + +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST TableRow +{ +public: + virtual css::uno::Reference<css::uno::XInterface> 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 000000000..a0249aac9 --- /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 <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCell +{ +public: + virtual css::uno::Reference<css::uno::XInterface> 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 000000000..0fb5c0622 --- /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 <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCellCursor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> 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 000000000..78f965e9d --- /dev/null +++ b/include/test/table/xcellrange.hxx @@ -0,0 +1,49 @@ +/* -*- 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 <test/testdllapi.hxx> + +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCellRange +{ +public: + XCellRange() + : m_aRangeName("A1:A1") + { + } + XCellRange(const OUString& aRangeName) + : m_aRangeName(aRangeName) + { + } + + virtual css::uno::Reference<css::uno::XInterface> 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 000000000..279a98847 --- /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 <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XColumnRowRange +{ +public: + virtual css::uno::Reference<css::uno::XInterface> 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 000000000..6c57bf3ac --- /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 <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableChart +{ +public: + virtual css::uno::Reference<css::uno::XInterface> 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 000000000..fa43e552e --- /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 <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableCharts +{ +public: + virtual css::uno::Reference<css::uno::XInterface> 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 000000000..9e5d45dd0 --- /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 <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableChartsSupplier +{ +public: + virtual css::uno::Reference<css::uno::XInterface> 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 000000000..957d344c5 --- /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 <com/sun/star/sheet/XSpreadsheet.hpp> +#include <com/sun/star/table/XCell.hpp> +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableColumns +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void setXSpreadsheet(const css::uno::Reference<css::sheet::XSpreadsheet>& 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<css::sheet::XSpreadsheet> m_xSheet; + + static OUString getCellText(const css::uno::Reference<css::table::XCell>& 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 000000000..ac874daac --- /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 <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XTableRows +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> 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: */ |