diff options
Diffstat (limited to '')
102 files changed, 3770 insertions, 0 deletions
diff --git a/include/test/sheet/cellarealink.hxx b/include/test/sheet/cellarealink.hxx new file mode 100644 index 000000000..eb3a13547 --- /dev/null +++ b/include/test/sheet/cellarealink.hxx @@ -0,0 +1,47 @@ +/* -*- 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_SHEET_CELLAREALINK_HXX +#define INCLUDED_TEST_SHEET_CELLAREALINK_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 CellAreaLink +{ +public: + CellAreaLink(const OUString& rFileURL) + : m_aFileURL(rFileURL) + { + } + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testUrl(); + void testFilter(); + void testFilterOptions(); + void testRefreshDelay(); + void testRefreshPeriod(); + +protected: + ~CellAreaLink() {} + +private: + OUString const m_aFileURL; +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_CELLAREALINK_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/cellproperties.hxx b/include/test/sheet/cellproperties.hxx new file mode 100644 index 000000000..aa5fe0f2c --- /dev/null +++ b/include/test/sheet/cellproperties.hxx @@ -0,0 +1,34 @@ +/* -*- 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_SHEET_CELLPROPERTIES_HXX +#define INCLUDED_TEST_SHEET_CELLPROPERTIES_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/XInterface.hpp> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST CellProperties +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testVertJustify(); + void testRotateReference(); + +protected: + ~CellProperties() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_CELLPROPERTIES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/databaseimportdescriptor.hxx b/include/test/sheet/databaseimportdescriptor.hxx new file mode 100644 index 000000000..14c9c6f29 --- /dev/null +++ b/include/test/sheet/databaseimportdescriptor.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_SHEET_DATABASEIMPORTDESCRIPTOR_HXX +#define INCLUDED_TEST_SHEET_DATABASEIMPORTDESCRIPTOR_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 DatabaseImportDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXImportable() = 0; + + void testDatabaseImportDescriptorProperties(); + +protected: + ~DatabaseImportDescriptor() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_DATABASEIMPORTDESCRIPTOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/databaserange.hxx b/include/test/sheet/databaserange.hxx new file mode 100644 index 000000000..9aca2f5eb --- /dev/null +++ b/include/test/sheet/databaserange.hxx @@ -0,0 +1,43 @@ +/* -*- 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_SHEET_DATABASERANGE_HXX +#define INCLUDED_TEST_SHEET_DATABASERANGE_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 DatabaseRange +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init(const OUString& rDBName) = 0; + + void testMoveCells(); + void testKeepFormats(); + void testStripData(); + void testAutoFilter(); + void testUseFilterCriteriaSource(); + void testFilterCriteriaSource(); + void testRefreshPeriod(); + void testFromSelection(); + void testTokenIndex(); + void testTotalsRow(); + void testContainsHeader(); + +protected: + ~DatabaseRange() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_DATABASERANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/datapilotfield.hxx b/include/test/sheet/datapilotfield.hxx new file mode 100644 index 000000000..28e73d7a2 --- /dev/null +++ b/include/test/sheet/datapilotfield.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_SHEET_DATAPILOTFIELD_HXX +#define INCLUDED_TEST_SHEET_DATAPILOTFIELD_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST DataPilotField +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSortInfo(); + void testLayoutInfo(); + void testAutoShowInfo(); + void testReference(); + void testIsGroupField(); + +protected: + ~DataPilotField() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_DATAPILOTFIELD_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/datapilotitem.hxx b/include/test/sheet/datapilotitem.hxx new file mode 100644 index 000000000..bf711d3ba --- /dev/null +++ b/include/test/sheet/datapilotitem.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/. + */ + +#ifndef INCLUDED_TEST_SHEET_DATAPILOTITEM_HXX +#define INCLUDED_TEST_SHEET_DATAPILOTITEM_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 DataPilotItem +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testProperties(); + +protected: + ~DataPilotItem() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_DATAPILOTITEM_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/documentsettings.hxx b/include/test/sheet/documentsettings.hxx new file mode 100644 index 000000000..7de391f64 --- /dev/null +++ b/include/test/sheet/documentsettings.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_SHEET_DOCUMENTSETTINGS_HXX +#define INCLUDED_TEST_SHEET_DOCUMENTSETTINGS_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 DocumentSettings +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testDocumentSettingsProperties(); + +protected: + ~DocumentSettings() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_DOCUMENTSETTINGS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/functiondescription.hxx b/include/test/sheet/functiondescription.hxx new file mode 100644 index 000000000..bfe719bc5 --- /dev/null +++ b/include/test/sheet/functiondescription.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_SHEET_FUNCTIONDESCRIPTION_HXX +#define INCLUDED_TEST_SHEET_FUNCTIONDESCRIPTION_HXX + +#include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/uno/Sequence.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST FunctionDescription +{ +public: + virtual css::uno::Sequence<css::beans::PropertyValue> init() = 0; + + void testFunctionDescriptionProperties(); + +protected: + ~FunctionDescription() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_FUNCTIONDESCRIPTION_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/globalsheetsettings.hxx b/include/test/sheet/globalsheetsettings.hxx new file mode 100644 index 000000000..8ae2968de --- /dev/null +++ b/include/test/sheet/globalsheetsettings.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_SHEET_GLOBALSHEETSETTINGS_HXX +#define INCLUDED_TEST_SHEET_GLOBALSHEETSETTINGS_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 GlobalSheetSettings +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGlobalSheetSettingsProperties(); + +protected: + ~GlobalSheetSettings() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_GLOBALSHEETSETTINGS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/scenario.hxx b/include/test/sheet/scenario.hxx new file mode 100644 index 000000000..3a3ec8d87 --- /dev/null +++ b/include/test/sheet/scenario.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_SHEET_SCENARIO_HXX +#define INCLUDED_TEST_SHEET_SCENARIO_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 Scenario +{ +public: + virtual css::uno::Reference<css::uno::XInterface> getScenarioSpreadsheet() = 0; + + void testScenarioProperties(); + +protected: + ~Scenario() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SCENARIO_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/shape.hxx b/include/test/sheet/shape.hxx new file mode 100644 index 000000000..ad2b7b765 --- /dev/null +++ b/include/test/sheet/shape.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_SHEET_SHAPE_HXX +#define INCLUDED_TEST_SHEET_SHAPE_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 Shape +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSheetDocument() = 0; + + void testShapePropertiesAnchor(); + void testShapePropertiesPosition(); + +protected: + ~Shape() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SHAPE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/sheetcell.hxx b/include/test/sheet/sheetcell.hxx new file mode 100644 index 000000000..a5d35cee1 --- /dev/null +++ b/include/test/sheet/sheetcell.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_SHEET_SHEETCELL_HXX +#define INCLUDED_TEST_SHEET_SHEETCELL_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 SheetCell +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSheetCellProperties(); + +protected: + ~SheetCell() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SHEETCELL_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/sheetcellrange.hxx b/include/test/sheet/sheetcellrange.hxx new file mode 100644 index 000000000..d4c2b551a --- /dev/null +++ b/include/test/sheet/sheetcellrange.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_SHEET_SHEETCELLRANGE_HXX +#define INCLUDED_TEST_SHEET_SHEETCELLRANGE_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 SheetCellRange +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSheetCellRangeProperties(); + +protected: + ~SheetCellRange() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SHEETCELLRANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/sheetcellranges.hxx b/include/test/sheet/sheetcellranges.hxx new file mode 100644 index 000000000..f40b186fa --- /dev/null +++ b/include/test/sheet/sheetcellranges.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_SHEET_SHEETCELLRANGES_HXX +#define INCLUDED_TEST_SHEET_SHEETCELLRANGES_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 SheetCellRanges +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSheetCellRangesProperties(); + +protected: + ~SheetCellRanges() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SHEETCELLRANGES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/sheetfilterdescriptor.hxx b/include/test/sheet/sheetfilterdescriptor.hxx new file mode 100644 index 000000000..919b84171 --- /dev/null +++ b/include/test/sheet/sheetfilterdescriptor.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_SHEET_SHEETFILTERDESCRIPTOR_HXX +#define INCLUDED_TEST_SHEET_SHEETFILTERDESCRIPTOR_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 SheetFilterDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSheetFilterDescriptorProperties(); + +protected: + ~SheetFilterDescriptor() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SHEETFILTERDESCRIPTOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/sheetlink.hxx b/include/test/sheet/sheetlink.hxx new file mode 100644 index 000000000..0f9e033a8 --- /dev/null +++ b/include/test/sheet/sheetlink.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_SHEET_SHEETLINK_HXX +#define INCLUDED_TEST_SHEET_SHEETLINK_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 SheetLink +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSheetLinkProperties(); + +protected: + ~SheetLink() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SHEETLINK_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/sheetsortdescriptor2.hxx b/include/test/sheet/sheetsortdescriptor2.hxx new file mode 100644 index 000000000..0f3c5713d --- /dev/null +++ b/include/test/sheet/sheetsortdescriptor2.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_SHEET_SHEETSORTDESCRIPTOR2_HXX +#define INCLUDED_TEST_SHEET_SHEETSORTDESCRIPTOR2_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 SheetSortDescriptor2 +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSheetSortDescriptor2Properties(); + +protected: + ~SheetSortDescriptor2() {} +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_SHEETSORTDESCRIPTOR2_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/spreadsheet.hxx b/include/test/sheet/spreadsheet.hxx new file mode 100644 index 000000000..597790a8e --- /dev/null +++ b/include/test/sheet/spreadsheet.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_SHEET_SPREADSHEET_HXX +#define INCLUDED_TEST_SHEET_SPREADSHEET_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 Spreadsheet +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheetDocument() = 0; + + void testSpreadsheetProperties(); + +protected: + ~Spreadsheet() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SPREADSHEET_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/spreadsheetdocumentsettings.hxx b/include/test/sheet/spreadsheetdocumentsettings.hxx new file mode 100644 index 000000000..138554157 --- /dev/null +++ b/include/test/sheet/spreadsheetdocumentsettings.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_SHEET_SPREADSHEETDOCUMENTSETTINGS_HXX +#define INCLUDED_TEST_SHEET_SPREADSHEETDOCUMENTSETTINGS_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 SpreadsheetDocumentSettings +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSpreadsheetDocumentSettingsProperties(); + +protected: + ~SpreadsheetDocumentSettings() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SPREADSHEETDOCUMENTSETTINGS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/spreadsheetviewsettings.hxx b/include/test/sheet/spreadsheetviewsettings.hxx new file mode 100644 index 000000000..135c95e5d --- /dev/null +++ b/include/test/sheet/spreadsheetviewsettings.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_SHEET_SPREADSHEETVIEWSETTINGS_HXX +#define INCLUDED_TEST_SHEET_SPREADSHEETVIEWSETTINGS_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 SpreadsheetViewSettings +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSpreadsheetViewSettingsProperties(); + +protected: + ~SpreadsheetViewSettings() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SPREADSHEETVIEWSETTINGS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/subtotaldescriptor.hxx b/include/test/sheet/subtotaldescriptor.hxx new file mode 100644 index 000000000..9b2c21f21 --- /dev/null +++ b/include/test/sheet/subtotaldescriptor.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_SHEET_SUBTOTALDESCRIPTOR_HXX +#define INCLUDED_TEST_SHEET_SUBTOTALDESCRIPTOR_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 SubTotalDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSubTotalDescriptorProperties(); + +protected: + ~SubTotalDescriptor() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_SUBTOTALDESCRIPTOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/tableautoformat.hxx b/include/test/sheet/tableautoformat.hxx new file mode 100644 index 000000000..3a04784a1 --- /dev/null +++ b/include/test/sheet/tableautoformat.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_SHEET_TABLEAUTOFORMAT_HXX +#define INCLUDED_TEST_SHEET_TABLEAUTOFORMAT_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 TableAutoFormat +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testTableAutoFormatProperties(); + +protected: + ~TableAutoFormat() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_TABLEAUTOFORMAT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/tablevalidation.hxx b/include/test/sheet/tablevalidation.hxx new file mode 100644 index 000000000..809745254 --- /dev/null +++ b/include/test/sheet/tablevalidation.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_SHEET_TABLEVALIDATION_HXX +#define INCLUDED_TEST_SHEET_TABLEVALIDATION_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 TableValidation +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testTableValidationProperties(); + +protected: + ~TableValidation() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_TABLEVALIDATION_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xactivationbroadcaster.hxx b/include/test/sheet/xactivationbroadcaster.hxx new file mode 100644 index 000000000..5dc21edc0 --- /dev/null +++ b/include/test/sheet/xactivationbroadcaster.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_SHEET_XACTIVATIONBROADCASTER_HXX +#define INCLUDED_TEST_SHEET_XACTIVATIONBROADCASTER_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 XActivationBroadcaster +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet(const sal_Int16 nNumber = 0) + = 0; + + void testAddRemoveActivationEventListener(); + +protected: + ~XActivationBroadcaster() {} +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XACTIVATIONBROADCASTER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xarealink.hxx b/include/test/sheet/xarealink.hxx new file mode 100644 index 000000000..15a65f249 --- /dev/null +++ b/include/test/sheet/xarealink.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_SHEET_XAREALINK_HXX +#define INCLUDED_TEST_SHEET_XAREALINK_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 XAreaLink +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual ~XAreaLink() {} + + void testGetSourceArea(); + void testSetSourceArea(); + void testGetDestArea(); + void testSetDestArea(); +}; +} + +#endif // INCLUDED_TEST_SHEET_XAREALINK_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xarealinks.hxx b/include/test/sheet/xarealinks.hxx new file mode 100644 index 000000000..1007c28e5 --- /dev/null +++ b/include/test/sheet/xarealinks.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_SHEET_XAREALINKS_HXX +#define INCLUDED_TEST_SHEET_XAREALINKS_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 XAreaLinks +{ +public: + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + + void testInsertAtPosition(); + void testRemoveByIndex(); + +protected: + ~XAreaLinks(){} + +}; + +} + +#endif // INCLUDED_TEST_SHEET_XAREALINKS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xarrayformularange.hxx b/include/test/sheet/xarrayformularange.hxx new file mode 100644 index 000000000..2529b8153 --- /dev/null +++ b/include/test/sheet/xarrayformularange.hxx @@ -0,0 +1,32 @@ +/* -*- 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 XArrayFormulaRange +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0; + + void testGetSetArrayFormula(); + +protected: + ~XArrayFormulaRange() {} +}; +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xcalculatable.hxx b/include/test/sheet/xcalculatable.hxx new file mode 100644 index 000000000..94614768e --- /dev/null +++ b/include/test/sheet/xcalculatable.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_SHEET_XCALCULATABLE_HXX +#define INCLUDED_TEST_SHEET_XCALCULATABLE_HXX + +#include <com/sun/star/table/XCell.hpp> +#include <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/Sequence.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCalculatable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Sequence<css::uno::Reference<css::table::XCell>> getXCells() = 0; + + void testCalculate(); + void testCalculateAll(); + void testEnableAutomaticCalculation(); + +protected: + ~XCalculatable() {} +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XCALCULATABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xcelladdressable.hxx b/include/test/sheet/xcelladdressable.hxx new file mode 100644 index 000000000..506415a11 --- /dev/null +++ b/include/test/sheet/xcelladdressable.hxx @@ -0,0 +1,31 @@ +/* -*- 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_SHEET_XCELLADDRESSABLE_HXX +#define INCLUDED_TEST_SHEET_XCELLADDRESSABLE_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 XCellAddressable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual ~XCellAddressable() {} + + void testGetCellAddress(); +}; +} + +#endif // INCLUDED_TEST_SHEET_XCELLADDRESSABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xcellformatrangessupplier.hxx b/include/test/sheet/xcellformatrangessupplier.hxx new file mode 100644 index 000000000..1f2f6d379 --- /dev/null +++ b/include/test/sheet/xcellformatrangessupplier.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_SHEET_XCELLFORMATRANGESSUPPLIER_HXX +#define INCLUDED_TEST_SHEET_XCELLFORMATRANGESSUPPLIER_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 XCellFormatRangesSupplier +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetCellFormatRanges(); + +protected: + ~XCellFormatRangesSupplier() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XCELLFORMATRANGESSUPPLIER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xcellrangeaddressable.hxx b/include/test/sheet/xcellrangeaddressable.hxx new file mode 100644 index 000000000..0819b34c1 --- /dev/null +++ b/include/test/sheet/xcellrangeaddressable.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_SHEET_XCELLRANGEADDRESSABLE_HXX +#define INCLUDED_TEST_SHEET_XCELLRANGEADDRESSABLE_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 XCellRangeAddressable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetRangeAddress(); + +protected: + ~XCellRangeAddressable() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XCELLRANGEADDRESSABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xcellrangedata.hxx b/include/test/sheet/xcellrangedata.hxx new file mode 100644 index 000000000..0b6efef2e --- /dev/null +++ b/include/test/sheet/xcellrangedata.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_SHEET_XCELLRANGEDATA_HXX +#define INCLUDED_TEST_SHEET_XCELLRANGEDATA_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCellRangeData +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXCellRangeData() = 0; + + void testGetDataArray(); + void testSetDataArray(); + void testGetDataArrayOnTableSheet(); + void testSetDataArrayOnTableSheet(); + +protected: + ~XCellRangeData() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XCELLRANGEDATA_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xcellrangeformula.hxx b/include/test/sheet/xcellrangeformula.hxx new file mode 100644 index 000000000..9fcc432c8 --- /dev/null +++ b/include/test/sheet/xcellrangeformula.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_SHEET_XCELLRANGEFORMULA_HXX +#define INCLUDED_TEST_SHEET_XCELLRANGEFORMULA_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 XCellRangeFormula +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetFormulaArray(); + +protected: + ~XCellRangeFormula() {} +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XCELLRANGEFORMULA_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xcellrangemovement.hxx b/include/test/sheet/xcellrangemovement.hxx new file mode 100644 index 000000000..a95fdf642 --- /dev/null +++ b/include/test/sheet/xcellrangemovement.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_SHEET_XCELLRANGEMOVEMENT_HXX +#define INCLUDED_TEST_SHEET_XCELLRANGEMOVEMENT_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 XCellRangeMovement +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testInsertCells(); + void testCopyRange(); + void testMoveRange(); + void testRemoveRange(); + +protected: + ~XCellRangeMovement() {} +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XCELLRANGEMOVEMENT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xcellrangereferrer.hxx b/include/test/sheet/xcellrangereferrer.hxx new file mode 100644 index 000000000..a2a659d17 --- /dev/null +++ b/include/test/sheet/xcellrangereferrer.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_SHEET_XCELLRANGEREFERRER_HXX +#define INCLUDED_TEST_SHEET_XCELLRANGEREFERRER_HXX + +#include <com/sun/star/table/CellRangeAddress.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 XCellRangeReferrer +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void setCellRange(css::table::CellRangeAddress aCellRange) { m_aCellRange = aCellRange; } + const css::table::CellRangeAddress& getCellRange() const { return m_aCellRange; } + void testGetReferredCells(); + +protected: + ~XCellRangeReferrer() {} + +private: + css::table::CellRangeAddress m_aCellRange; +}; +} + +#endif // INCLUDED_TEST_SHEET_XCELLRANGEREFERRER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xcellrangesquery.hxx b/include/test/sheet/xcellrangesquery.hxx new file mode 100644 index 000000000..ba275295a --- /dev/null +++ b/include/test/sheet/xcellrangesquery.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_SHEET_XCELLRANGESQUERY_HXX +#define INCLUDED_TEST_SHEET_XCELLRANGESQUERY_HXX + +#include <com/sun/star/uno/XInterface.hpp> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XCellRangesQuery +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + //Testcases + void testQueryColumnDifference(); + void testQueryContentDifference(); + void testQueryEmptyCells(); + void testQueryFormulaCells(); + void testQueryIntersection(); + void testQueryRowDifference(); + void testQueryVisibleCells(); + +protected: + ~XCellRangesQuery() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XCELLRANGESQUERY_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xcellseries.hxx b/include/test/sheet/xcellseries.hxx new file mode 100644 index 000000000..d51d6d9e3 --- /dev/null +++ b/include/test/sheet/xcellseries.hxx @@ -0,0 +1,38 @@ +/* -*- 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_SHEET_XCELLSERIES_HXX +#define INCLUDED_TEST_SHEET_XCELLSERIES_HXX + +#include <com/sun/star/uno/XInterface.hpp> +#include <test/testdllapi.hxx> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XCellSeries +{ +public: + XCellSeries(sal_Int32 aStartX, sal_Int32 aStartY) : maStartX(aStartX), maStartY(aStartY){} + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + virtual ~XCellSeries(){} + + void testFillAuto(); + void testFillSeries(); + +private: + sal_Int32 maStartX; + sal_Int32 maStartY; +}; + +} + +#endif // INCLUDED_TEST_SHEET_XCELLSERIES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ + diff --git a/include/test/sheet/xconsolidatable.hxx b/include/test/sheet/xconsolidatable.hxx new file mode 100644 index 000000000..9edb59108 --- /dev/null +++ b/include/test/sheet/xconsolidatable.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_SHEET_XCONSOLIDATABLE_HXX +#define INCLUDED_TEST_SHEET_XCONSOLIDATABLE_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 XConsolidatable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testCreateConsolidationDescriptor(); + void testConsolidate(); + +protected: + ~XConsolidatable() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XCONSOLIDATABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xconsolidationdescriptor.hxx b/include/test/sheet/xconsolidationdescriptor.hxx new file mode 100644 index 000000000..ff5fb5b82 --- /dev/null +++ b/include/test/sheet/xconsolidationdescriptor.hxx @@ -0,0 +1,45 @@ +/* -*- 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_SHEET_XCONSOLIDATIONDESCRIPTOR_HXX +#define INCLUDED_TEST_SHEET_XCONSOLIDATIONDESCRIPTOR_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 XConsolidationDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetFunction(); + void testSetFunction(); + void testGetSources(); + void testSetSources(); + void testGetStartOutputPosition(); + void testSetStartOutputPosition(); + void testGetUseColumnHeaders(); + void testSetUseColumnHeaders(); + void testGetUseRowHeaders(); + void testSetUseRowHeaders(); + void testGetInsertLinks(); + void testSetInsertLinks(); + +protected: + ~XConsolidationDescriptor() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XCONSOLIDATIONDESCRIPTOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xdatabaserange.hxx b/include/test/sheet/xdatabaserange.hxx new file mode 100644 index 000000000..388b89d9a --- /dev/null +++ b/include/test/sheet/xdatabaserange.hxx @@ -0,0 +1,38 @@ +/* -*- 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_SHEET_XDATABASERANGE_HXX +#define INCLUDED_TEST_SHEET_XDATABASERANGE_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 XDatabaseRange +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init(const OUString& rDBName) = 0; + + void testDataArea(); + void testGetSortDescriptor(); + void testGetSubtotalDescriptor(); + void testGetImportDescriptor(); + void testGetFilterDescriptor(); + void testRefresh(); + +protected: + ~XDatabaseRange() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XDATABASERANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xdatabaseranges.hxx b/include/test/sheet/xdatabaseranges.hxx new file mode 100644 index 000000000..b42e6fcc9 --- /dev/null +++ b/include/test/sheet/xdatabaseranges.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_SHEET_XDATABASERANGES_HXX +#define INCLUDED_TEST_SHEET_XDATABASERANGES_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 XDatabaseRanges +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testAddRemoveDbRanges(); + +protected: + ~XDatabaseRanges() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XDATABASERANGES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xdatapilotdescriptor.hxx b/include/test/sheet/xdatapilotdescriptor.hxx new file mode 100644 index 000000000..9186b52eb --- /dev/null +++ b/include/test/sheet/xdatapilotdescriptor.hxx @@ -0,0 +1,52 @@ +/* -*- 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_SHEET_XDATAPILOTDESCRIPTOR_HXX +#define INCLUDED_TEST_SHEET_XDATAPILOTDESCRIPTOR_HXX + +#include <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/sheet/XDataPilotDescriptor.hpp> + +#include <test/testdllapi.hxx> + +#include <vector> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XDataPilotDescriptor +{ +public: + void testSourceRange(); + void testTag(); + void testGetFilterDescriptor(); + void testGetDataPilotFields(); + void testGetColumnFields(); + void testGetRowFields(); + void testGetPageFields(); + void testGetDataFields(); + void testGetHiddenFields(); + + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + +protected: + ~XDataPilotDescriptor() {} + +private: + static void testGetDataPilotFields_Impl( css::uno::Reference< css::sheet::XDataPilotDescriptor > const & xDescr ); + + static void checkName( css::uno::Reference< css::container::XIndexAccess > const & xIndex, sal_Int32 nIndex ); + static std::vector<OUString> maFieldNames; +}; + +} + +#endif // INCLUDED_TEST_SHEET_XDATAPILOTDESCRIPTOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xdatapilotfield.hxx b/include/test/sheet/xdatapilotfield.hxx new file mode 100644 index 000000000..6622b71bc --- /dev/null +++ b/include/test/sheet/xdatapilotfield.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_SHEET_XDATAPILOTFIELD_HXX +#define INCLUDED_TEST_SHEET_XDATAPILOTFIELD_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 XDataPilotField +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetItems(); + +protected: + ~XDataPilotField() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XDATAPILOTFIELD_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xdatapilotfieldgrouping.hxx b/include/test/sheet/xdatapilotfieldgrouping.hxx new file mode 100644 index 000000000..550857212 --- /dev/null +++ b/include/test/sheet/xdatapilotfieldgrouping.hxx @@ -0,0 +1,35 @@ +/* -*- 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_SHEET_XDATAPILOTFIELDGROUPING_HXX +#define INCLUDED_TEST_SHEET_XDATAPILOTFIELDGROUPING_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/XInterface.hpp> +#include <test/testdllapi.hxx> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XDataPilotFieldGrouping +{ +public: + void testCreateNameGroup(); + void testCreateDateGroup(); + + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + +protected: + ~XDataPilotFieldGrouping() {} +}; + +} + +#endif // INCLUDED_TEST_SHEET_XDATAPILOTFIELDGROUPING_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xdatapilottable.hxx b/include/test/sheet/xdatapilottable.hxx new file mode 100644 index 000000000..05ba1e293 --- /dev/null +++ b/include/test/sheet/xdatapilottable.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_SHEET_XDATAPILOTTABLE_HXX +#define INCLUDED_TEST_SHEET_XDATAPILOTTABLE_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/table/XCell.hpp> +#include <test/testdllapi.hxx> + +#include <cppunit/extensions/HelperMacros.h> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XDataPilotTable +{ +public: + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + virtual ~XDataPilotTable(); + + void testGetOutputRange(); + void testRefresh(); + +protected: + css::uno::Reference< css::table::XCell > xCellForChange; + css::uno::Reference< css::table::XCell > xCellForCheck; +}; + +} + +#endif // INCLUDED_TEST_SHEET_XDATAPILOTTABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xdatapilottable2.hxx b/include/test/sheet/xdatapilottable2.hxx new file mode 100644 index 000000000..a7ffde07d --- /dev/null +++ b/include/test/sheet/xdatapilottable2.hxx @@ -0,0 +1,58 @@ +/* -*- 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_SHEET_XDATAPILOTTABLE2_HXX +#define INCLUDED_TEST_SHEET_XDATAPILOTTABLE2_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/table/CellRangeAddress.hpp> +#include <com/sun/star/table/CellAddress.hpp> +#include <com/sun/star/sheet/XDataPilotTable2.hpp> +#include <com/sun/star/sheet/XSpreadsheet.hpp> +#include <com/sun/star/uno/Sequence.h> + +#include <test/testdllapi.hxx> + +#include <vector> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XDataPilotTable2 +{ +public: + void testGetPositionData(); + void testGetDrillDownData(); + void testGetOutputRangeByType(); + void testInsertDrillDownSheet(); + virtual ~XDataPilotTable2(); + + virtual css::uno::Reference< css::uno::XInterface > initDP2() = 0; + virtual css::uno::Reference< css::uno::XInterface > getSheets() = 0; + +protected: + +private: + static void checkDrillDownSheetContent(css::uno::Reference< css::sheet::XSpreadsheet > const & xSheet, const css::uno::Sequence< css::uno::Sequence < css::uno::Any > >& aData); + + void getOutputRanges(css::uno::Reference< css::sheet::XDataPilotTable2 > const &); + void buildDataFields(css::uno::Reference< css::sheet::XDataPilotTable2 > const &); + void buildResultCells(css::uno::Reference< css::sheet::XDataPilotTable2 > const &); + + std::vector< css::table::CellAddress > maResultCells; + std::vector< sal_Int32 > maDataFieldDims; + css::table::CellRangeAddress maRangeWhole; + css::table::CellRangeAddress maRangeTable; + css::table::CellRangeAddress maRangeResult; +}; + +} + +#endif // INCLUDED_TEST_SHEET_XDATAPILOTTABLE2_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xdatapilottables.hxx b/include/test/sheet/xdatapilottables.hxx new file mode 100644 index 000000000..f1d367164 --- /dev/null +++ b/include/test/sheet/xdatapilottables.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_SHEET_XDATAPILOTTABLES_HXX +#define INCLUDED_TEST_SHEET_XDATAPILOTTABLES_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 XDataPilotTables +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0; + + void testXDataPilotTables(); + +protected: + ~XDataPilotTables() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XDATAPILOTTABLES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xdatapilottablessupplier.hxx b/include/test/sheet/xdatapilottablessupplier.hxx new file mode 100644 index 000000000..ca1e623b3 --- /dev/null +++ b/include/test/sheet/xdatapilottablessupplier.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_SHEET_XDATAPILOTTABLESSUPPLIER_HXX +#define INCLUDED_TEST_SHEET_XDATAPILOTTABLESSUPPLIER_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 XDataPilotTablesSupplier +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetDataPilotTables(); + +protected: + ~XDataPilotTablesSupplier() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XDATAPILOTTABLESSUPPLIER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xddelink.hxx b/include/test/sheet/xddelink.hxx new file mode 100644 index 000000000..854462a0d --- /dev/null +++ b/include/test/sheet/xddelink.hxx @@ -0,0 +1,42 @@ +/* -*- 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_SHEET_XDDELINK_HXX +#define INCLUDED_TEST_SHEET_XDDELINK_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 XDDELink +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetApplication(); + void testGetItem(); + void testGetTopic(); + +protected: + explicit XDDELink(OUString const& rURL) + : m_URL(rURL) + { + } + ~XDDELink() {} + + OUString const m_URL; +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XDDELINK_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xddelinks.hxx b/include/test/sheet/xddelinks.hxx new file mode 100644 index 000000000..8ceb07cdd --- /dev/null +++ b/include/test/sheet/xddelinks.hxx @@ -0,0 +1,44 @@ +/* -*- 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_SHEET_XDDELINKS_HXX +#define INCLUDED_TEST_SHEET_XDDELINKS_HXX + +#include <rtl/ustring.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 XDDELinks +{ +public: + XDDELinks(const OUString& rTopic) + : m_aTopic(rTopic) + { + } + + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testAddDDELink(); + +protected: + ~XDDELinks() {} + +private: + OUString const m_aTopic; +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XDDELINKS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xdocumentauditing.hxx b/include/test/sheet/xdocumentauditing.hxx new file mode 100644 index 000000000..282db0226 --- /dev/null +++ b/include/test/sheet/xdocumentauditing.hxx @@ -0,0 +1,44 @@ +/* -*- 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/awt/Point.hpp> +#include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/drawing/XDrawPage.hpp> +#include <com/sun/star/frame/XFrame.hpp> +#include <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/Sequence.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XDocumentAuditing +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXMSF() = 0; + + void testRefreshArrows(); + +protected: + ~XDocumentAuditing() {} + +private: + bool hasRightAmountOfShapes(const css::uno::Reference<css::drawing::XDrawPage>& xDrawPage, + sal_Int32 nElementCount, sal_Int32 nShapes); + static void dispatch(const css::uno::Reference<css::frame::XFrame>& xFrame, + const css::uno::Sequence<css::beans::PropertyValue>& rArguments); + css::awt::Point m_Position; +}; +} // namespace apitest + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xformulaquery.hxx b/include/test/sheet/xformulaquery.hxx new file mode 100644 index 000000000..8382e961a --- /dev/null +++ b/include/test/sheet/xformulaquery.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_SHEET_XFORMULAQUERY_HXX +#define INCLUDED_TEST_SHEET_XFORMULAQUERY_HXX + +#include <com/sun/star/table/XCell.hpp> +#include <com/sun/star/table/CellRangeAddress.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 XFormulaQuery +{ +public: + XFormulaQuery(css::table::CellRangeAddress aCellRangeAddressDependents, + css::table::CellRangeAddress aCellRangeAddressPrecedents, + unsigned int nIdxDependents = 1, unsigned int nIdxPrecedents = 1) + : m_aCellRangeAddressDependents(aCellRangeAddressDependents) + , m_aCellRangeAddressPrecedents(aCellRangeAddressPrecedents) + , m_nIdxDependents(nIdxDependents) + , m_nIdxPrecedents(nIdxPrecedents) + { + } + + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0; + void setXCell(css::uno::Reference<css::table::XCell> xCell) { m_xCell = xCell; } + css::uno::Reference<css::table::XCell> const& getXCell() const { return m_xCell; } + + void testQueryDependents(); + void testQueryPrecedents(); + +protected: + ~XFormulaQuery() {} + +private: + css::uno::Reference<css::table::XCell> m_xCell; + css::table::CellRangeAddress m_aCellRangeAddressDependents; + css::table::CellRangeAddress m_aCellRangeAddressPrecedents; + unsigned int m_nIdxDependents; + unsigned int m_nIdxPrecedents; +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XFORMULAQUERY_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xfunctiondescriptions.hxx b/include/test/sheet/xfunctiondescriptions.hxx new file mode 100644 index 000000000..ffffe3b59 --- /dev/null +++ b/include/test/sheet/xfunctiondescriptions.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_SHEET_XFUNCTIONDESCRIPTIONS_HXX +#define INCLUDED_TEST_SHEET_XFUNCTIONDESCRIPTIONS_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 XFunctionDescriptions +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetById(); + +protected: + ~XFunctionDescriptions() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XFUNCTIONDESCRIPTIONS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xgoalseek.hxx b/include/test/sheet/xgoalseek.hxx new file mode 100644 index 000000000..08eeae92a --- /dev/null +++ b/include/test/sheet/xgoalseek.hxx @@ -0,0 +1,32 @@ +/* -*- 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_SHEET_XGOALSEEK_HXX +#define INCLUDED_TEST_SHEET_XGOALSEEK_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XGoalSeek +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testSeekGoal(); + +protected: + virtual ~XGoalSeek() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XGOALSEEK_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xheaderfootercontent.hxx b/include/test/sheet/xheaderfootercontent.hxx new file mode 100644 index 000000000..64d3fea46 --- /dev/null +++ b/include/test/sheet/xheaderfootercontent.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_SHEET_XHEADERFOOTERCONTENT_HXX +#define INCLUDED_TEST_SHEET_XHEADERFOOTERCONTENT_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 XHeaderFooterContent +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetCenterText(); + void testGetLeftText(); + void testGetRightText(); + +protected: + ~XHeaderFooterContent() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XHEADERFOOTERCONTENT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xlabelrange.hxx b/include/test/sheet/xlabelrange.hxx new file mode 100644 index 000000000..24d2f3a07 --- /dev/null +++ b/include/test/sheet/xlabelrange.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_SHEET_XLABELRANGE_HXX +#define INCLUDED_TEST_SHEET_XLABELRANGE_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 XLabelRange +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetDataArea(); + void testGetSetLabelArea(); + +protected: + ~XLabelRange() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XLABELRANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xlabelranges.hxx b/include/test/sheet/xlabelranges.hxx new file mode 100644 index 000000000..820c031d7 --- /dev/null +++ b/include/test/sheet/xlabelranges.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_SHEET_XLABELRANGES_HXX +#define INCLUDED_TEST_SHEET_XLABELRANGES_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 XLabelRanges +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testAddNew(); + void testRemoveByIndex(); + +protected: + ~XLabelRanges() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XLABELRANGES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xmultiformulatokens.hxx b/include/test/sheet/xmultiformulatokens.hxx new file mode 100644 index 000000000..8f883a320 --- /dev/null +++ b/include/test/sheet/xmultiformulatokens.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_SHEET_XMULTIFORMULATOKENS_HXX +#define INCLUDED_TEST_SHEET_XMULTIFORMULATOKENS_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 XMultiFormulaTokens +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual void setUp() = 0; + virtual void tearDown() = 0; + + void testGetCount(); + void testGetSetTokens(); + +protected: + ~XMultiFormulaTokens() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XMULTIFORMULATOKENS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xmultipleoperation.hxx b/include/test/sheet/xmultipleoperation.hxx new file mode 100644 index 000000000..107902da1 --- /dev/null +++ b/include/test/sheet/xmultipleoperation.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_SHEET_XMULTIPLEOPERATION_HXX +#define INCLUDED_TEST_SHEET_XMULTIPLEOPERATION_HXX + +#include <com/sun/star/sheet/XSpreadsheet.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 XMultipleOperation +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0; + + void testSetTableOperation(); + +protected: + ~XMultipleOperation() {} + +private: + static void fillCells(css::uno::Reference<css::sheet::XSpreadsheet> const&); +}; +} + +#endif // INCLUDED_TEST_SHEET_XMULTIPLEOPERATION_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xnamedrange.hxx b/include/test/sheet/xnamedrange.hxx new file mode 100644 index 000000000..f088bf2ab --- /dev/null +++ b/include/test/sheet/xnamedrange.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_SHEET_XNAMEDRANGE_HXX +#define INCLUDED_TEST_SHEET_XNAMEDRANGE_HXX + +#include <rtl/ustring.hxx> +#include <com/sun/star/sheet/XNamedRange.hpp> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XNamedRange +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + // XNamedRange + void testGetContent(); + void testSetContent(); + void testGetType(); + void testSetType(); + void testGetReferencePosition(); + void testSetReferencePosition(); + +protected: + ~XNamedRange() {} + + virtual css::uno::Reference<css::sheet::XNamedRange> getNamedRange(const OUString&) = 0; +}; +} + +#endif // INCLUDED_TEST_SHEET_XNAMEDRANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xnamedranges.hxx b/include/test/sheet/xnamedranges.hxx new file mode 100644 index 000000000..8d02773f8 --- /dev/null +++ b/include/test/sheet/xnamedranges.hxx @@ -0,0 +1,59 @@ +/* -*- 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_SHEET_XNAMEDRANGES_HXX +#define INCLUDED_TEST_SHEET_XNAMEDRANGES_HXX + +#include <com/sun/star/sheet/XSpreadsheet.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XNamedRanges +{ +public: + // remove default entry + XNamedRanges() + : maNameToRemove("initial1") + { + } + + // removes given entry + XNamedRanges(const OUString& rNameToRemove) + : maNameToRemove(rNameToRemove) + { + } + + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXNamedRanges(sal_Int32 nSheet = 0) = 0; + + // XNamedRanges + void testAddNewByName(); + void testAddNewFromTitles(); + void testRemoveByName(); + void testOutputList(); + +protected: + ~XNamedRanges(){}; + css::uno::Reference<css::sheet::XSpreadsheet> xSheet; + +private: + OUString maNameToRemove; +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XNAMEDRANGES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xprintareas.hxx b/include/test/sheet/xprintareas.hxx new file mode 100644 index 000000000..b3edbeb7d --- /dev/null +++ b/include/test/sheet/xprintareas.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_SHEET_XPRINTAREAS_HXX +#define INCLUDED_TEST_SHEET_XPRINTAREAS_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <test/testdllapi.hxx> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XPrintAreas +{ +public: + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + + void testSetAndGetPrintTitleColumns(); //getter and setter in one test case + void testSetAndGetPrintTitleRows(); + + void testGetPrintAreas(); // returns a sequence containing all print areas of the sheet. + void testSetPrintAreas(); // sets the print areas of the sheet. + void testGetTitleColumns(); // returns the range that is specified as title columns range. + void testSetTitleColumns(); // specifies a range of columns as title columns range. + void testGetTitleRows(); // returns the range that is specified as title rows range. + void testSetTitleRows(); // specifies a range of rows as title rows range. + +protected: + ~XPrintAreas() {} +}; + +} + +#endif // INCLUDED_TEST_SHEET_XPRINTAREAS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xrecentfunctions.hxx b/include/test/sheet/xrecentfunctions.hxx new file mode 100644 index 000000000..8f7ac55a2 --- /dev/null +++ b/include/test/sheet/xrecentfunctions.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_SHEET_XRECENTFUNCTIONS_HXX +#define INCLUDED_TEST_SHEET_XRECENTFUNCTIONS_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 XRecentFunctions +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetRecentFunctionIds(); + void testSetRecentFunctionIds(); + void testGetMaxRecentFunctions(); + +protected: + ~XRecentFunctions() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XRECENTFUNCTIONS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xscenario.hxx b/include/test/sheet/xscenario.hxx new file mode 100644 index 000000000..8892d26c1 --- /dev/null +++ b/include/test/sheet/xscenario.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_SHEET_XSCENARIO_HXX +#define INCLUDED_TEST_SHEET_XSCENARIO_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 XScenario +{ +public: + virtual css::uno::Reference<css::uno::XInterface> getScenarioSpreadsheet() = 0; + + void testScenario(); + +protected: + ~XScenario() {} +}; +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XSCENARIO_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xscenarioenhanced.hxx b/include/test/sheet/xscenarioenhanced.hxx new file mode 100644 index 000000000..ff5261f31 --- /dev/null +++ b/include/test/sheet/xscenarioenhanced.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_SHEET_XSCENARIOENHANCED_HXX +#define INCLUDED_TEST_SHEET_XSCENARIOENHANCED_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 XScenarioEnhanced +{ +public: + virtual css::uno::Reference<css::uno::XInterface> getScenarioSpreadsheet() = 0; + + void testGetRanges(); + +protected: + ~XScenarioEnhanced() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSCENARIOENHANCED_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xscenarios.hxx b/include/test/sheet/xscenarios.hxx new file mode 100644 index 000000000..f890a5030 --- /dev/null +++ b/include/test/sheet/xscenarios.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_SHEET_XSCENARIOS_HXX +#define INCLUDED_TEST_SHEET_XSCENARIOS_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 XScenarios +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testAddNewByName(); + void testRemoveByName(); + +protected: + ~XScenarios() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSCENARIOS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xscenariossupplier.hxx b/include/test/sheet/xscenariossupplier.hxx new file mode 100644 index 000000000..e4a6eea11 --- /dev/null +++ b/include/test/sheet/xscenariossupplier.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_SHEET_XSCENARIOSSUPPLIER_HXX +#define INCLUDED_TEST_SHEET_XSCENARIOSSUPPLIER_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 XScenariosSupplier +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetScenarios(); + +protected: + ~XScenariosSupplier() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSCENARIOSSUPPLIER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetannotation.hxx b/include/test/sheet/xsheetannotation.hxx new file mode 100644 index 000000000..0003d8b11 --- /dev/null +++ b/include/test/sheet/xsheetannotation.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_SHEET_XSHEETANNOTATION_HXX +#define INCLUDED_TEST_SHEET_XSHEETANNOTATION_HXX + +#include <com/sun/star/sheet/XSheetAnnotation.hpp> +#include <test/testdllapi.hxx> + +#include <com/sun/star/table/CellAddress.hpp> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSheetAnnotation +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + // XSheetAnnotation + void testGetPosition(); + void testGetAuthor(); + void testGetDate(); + void testGetIsVisible(); + void testSetIsVisible(); + +protected: + ~XSheetAnnotation() {} + + virtual css::uno::Reference<css::sheet::XSheetAnnotation> + getAnnotation(css::table::CellAddress&) = 0; +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETANNOTATION_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetannotationanchor.hxx b/include/test/sheet/xsheetannotationanchor.hxx new file mode 100644 index 000000000..a0c6fc58d --- /dev/null +++ b/include/test/sheet/xsheetannotationanchor.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_SHEET_XSHEETANNOTATIONANCHOR_HXX +#define INCLUDED_TEST_SHEET_XSHEETANNOTATIONANCHOR_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 XSheetAnnotationAnchor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetAnnotation(); + +protected: + ~XSheetAnnotationAnchor() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETANNOTATIONANCHOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetannotations.hxx b/include/test/sheet/xsheetannotations.hxx new file mode 100644 index 000000000..f9b92968f --- /dev/null +++ b/include/test/sheet/xsheetannotations.hxx @@ -0,0 +1,43 @@ +/* -*- 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_SHEET_XSHEETANNOTATIONS_HXX +#define INCLUDED_TEST_SHEET_XSHEETANNOTATIONS_HXX + +#include <com/sun/star/sheet/XSheetAnnotations.hpp> +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> +#include <tools/long.hxx> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XSheetAnnotations +{ +public: + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + virtual css::uno::Reference< css::sheet::XSheetAnnotations> getAnnotations(tools::Long nIndex) = 0; + + // XSheetAnnotations + void testIndex(); + void testInsertNew(); + void testRemoveByIndex(); + void testCount(); + +protected: + ~XSheetAnnotations() {} +}; + +} + +#endif // INCLUDED_TEST_SHEET_XSHEETANNOTATIONS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetannotationshapesupplier.hxx b/include/test/sheet/xsheetannotationshapesupplier.hxx new file mode 100644 index 000000000..72600c1aa --- /dev/null +++ b/include/test/sheet/xsheetannotationshapesupplier.hxx @@ -0,0 +1,32 @@ +/* -*- 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_SHEET_XSHEETANNOTATIONSHAPESUPPLIER_HXX +#define INCLUDED_TEST_SHEET_XSHEETANNOTATIONSHAPESUPPLIER_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 XSheetAnnotationShapeSupplier +{ +public: + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + virtual ~XSheetAnnotationShapeSupplier(){} + + void testGetAnnotationShape(); +}; + +} + +#endif // INCLUDED_TEST_SHEET_XSHEETANNOTATIONSHAPESUPPLIER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetannotationssupplier.hxx b/include/test/sheet/xsheetannotationssupplier.hxx new file mode 100644 index 000000000..cc9e008ec --- /dev/null +++ b/include/test/sheet/xsheetannotationssupplier.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_SHEET_XSHEETANNOTATIONSSUPPLIER_HXX +#define INCLUDED_TEST_SHEET_XSHEETANNOTATIONSSUPPLIER_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 XSheetAnnotationsSupplier +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetAnnotations(); + +protected: + ~XSheetAnnotationsSupplier() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETANNOTATIONSSUPPLIER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetauditing.hxx b/include/test/sheet/xsheetauditing.hxx new file mode 100644 index 000000000..44c1ddd5c --- /dev/null +++ b/include/test/sheet/xsheetauditing.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_SHEET_XSHEETAUDITING_HXX +#define INCLUDED_TEST_SHEET_XSHEETAUDITING_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 XSheetAuditing +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testShowHideDependents(); + void testShowHidePrecedents(); + void testShowErrors(); + void testShowInvalid(); + void testClearArrows(); + +protected: + ~XSheetAuditing() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETAUDITING_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetcellcursor.hxx b/include/test/sheet/xsheetcellcursor.hxx new file mode 100644 index 000000000..3686ac521 --- /dev/null +++ b/include/test/sheet/xsheetcellcursor.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_SHEET_XSHEETCELLCURSOR_HXX +#define INCLUDED_TEST_SHEET_XSHEETCELLCURSOR_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 XSheetCellCursor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testCollapseToCurrentArray(); + void testCollapseToCurrentRegion(); + void testCollapseToMergedArea(); + void testCollapseToSize(); + void testExpandToEntireColumns(); + void testExpandToEntireRows(); + +protected: + ~XSheetCellCursor() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETCELLCURSOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetcellrange.hxx b/include/test/sheet/xsheetcellrange.hxx new file mode 100644 index 000000000..42ce2d094 --- /dev/null +++ b/include/test/sheet/xsheetcellrange.hxx @@ -0,0 +1,34 @@ +/* -*- 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_SHEET_XSHEETCELLRANGE_HXX +#define INCLUDED_TEST_SHEET_XSHEETCELLRANGE_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 XSheetCellRange +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSpreadsheet(); + +protected: + ~XSheetCellRange() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETCELLRANGE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetcellrangecontainer.hxx b/include/test/sheet/xsheetcellrangecontainer.hxx new file mode 100644 index 000000000..734c2c4e2 --- /dev/null +++ b/include/test/sheet/xsheetcellrangecontainer.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_SHEET_XSHEETCELLRANGECONTAINER_HXX +#define INCLUDED_TEST_SHEET_XSHEETCELLRANGECONTAINER_HXX + +#include <com/sun/star/table/CellRangeAddress.hpp> + +#include <com/sun/star/uno/XInterface.hpp> +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/Sequence.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSheetCellRangeContainer +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testAddRemoveRangeAddress(); + void testAddRemoveRangeAddresses(); + +protected: + ~XSheetCellRangeContainer() {} + static css::uno::Sequence<com::sun::star::table::CellRangeAddress> createCellRangeAddresses(); +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETCELLRANGECONTAINER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetcellranges.hxx b/include/test/sheet/xsheetcellranges.hxx new file mode 100644 index 000000000..4f21f446c --- /dev/null +++ b/include/test/sheet/xsheetcellranges.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_SHEET_XSHEETCELLRANGES_HXX +#define INCLUDED_TEST_SHEET_XSHEETCELLRANGES_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 XSheetCellRanges +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetCells(); + void testGetRangeAddresses(); + void testGetRangeAddressesAsString(); + +protected: + ~XSheetCellRanges() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETCELLRANGES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetcondition.hxx b/include/test/sheet/xsheetcondition.hxx new file mode 100644 index 000000000..c69625f44 --- /dev/null +++ b/include/test/sheet/xsheetcondition.hxx @@ -0,0 +1,37 @@ +/* -*- 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_SHEET_XSHEETCONDITION_HXX +#define INCLUDED_TEST_SHEET_XSHEETCONDITION_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 XSheetCondition +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetFormula1(); + void testGetSetFormula2(); + void testGetSetOperator(); + void testGetSetSourcePosition(); + +protected: + ~XSheetCondition() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETCONDITION_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetconditionalentries.hxx b/include/test/sheet/xsheetconditionalentries.hxx new file mode 100644 index 000000000..673e7ceb1 --- /dev/null +++ b/include/test/sheet/xsheetconditionalentries.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_SHEET_XSHEETCONDITIONALENTRIES_HXX +#define INCLUDED_TEST_SHEET_XSHEETCONDITIONALENTRIES_HXX + +#include <com/sun/star/beans/PropertyValue.hpp> +#include <com/sun/star/uno/XInterface.hpp> + +#include <com/sun/star/uno/Sequence.hxx> +#include <com/sun/star/uno/Reference.hxx> + +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSheetConditionalEntries +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Sequence<com::sun::star::beans::PropertyValue> + createCondition(const sal_Int32 nr) = 0; + + void testAddNew(); + void testClear(); + void testRemoveByIndex(); + +protected: + ~XSheetConditionalEntries() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETCONDITIONALENTRIES_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetconditionalentry.hxx b/include/test/sheet/xsheetconditionalentry.hxx new file mode 100644 index 000000000..d143f7843 --- /dev/null +++ b/include/test/sheet/xsheetconditionalentry.hxx @@ -0,0 +1,34 @@ +/* -*- 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_SHEET_XSHEETCONDITIONALENTRY_HXX +#define INCLUDED_TEST_SHEET_XSHEETCONDITIONALENTRY_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 XSheetConditionalEntry +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetStyleName(); + +protected: + ~XSheetConditionalEntry() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETCONDITIONALENTRY_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetfilterable.hxx b/include/test/sheet/xsheetfilterable.hxx new file mode 100644 index 000000000..a46b10b07 --- /dev/null +++ b/include/test/sheet/xsheetfilterable.hxx @@ -0,0 +1,38 @@ +/* -*- 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_SHEET_XSHEETFILTERABLE_HXX +#define INCLUDED_TEST_SHEET_XSHEETFILTERABLE_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 XSheetFilterable +{ +public: + virtual css::uno::Reference< css::uno::XInterface > init() =0; + virtual css::uno::Reference< css::uno::XInterface > getXSpreadsheet() =0; + + void testCreateFilterDescriptor(); + void testFilter(); + +protected: + ~XSheetFilterable() {} +}; + +} + +#endif // INCLUDED_TEST_SHEET_XSHEETFILTERABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetfilterableex.hxx b/include/test/sheet/xsheetfilterableex.hxx new file mode 100644 index 000000000..71be889a3 --- /dev/null +++ b/include/test/sheet/xsheetfilterableex.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_SHEET_XSHEETFILTERABLEEX_HXX +#define INCLUDED_TEST_SHEET_XSHEETFILTERABLEEX_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 XSheetFilterableEx +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0; + + void testCreateFilterDescriptorByObject(); + +protected: + ~XSheetFilterableEx() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETFILTERABLEEX_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetfilterdescriptor.hxx b/include/test/sheet/xsheetfilterdescriptor.hxx new file mode 100644 index 000000000..65620f0f0 --- /dev/null +++ b/include/test/sheet/xsheetfilterdescriptor.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_SHEET_XSHEETFILTERDESCRIPTOR_HXX +#define INCLUDED_TEST_SHEET_XSHEETFILTERDESCRIPTOR_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 XSheetFilterDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetFilterFields(); + +protected: + ~XSheetFilterDescriptor() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XSHEETFILTERDESCRIPTOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetfilterdescriptor2.hxx b/include/test/sheet/xsheetfilterdescriptor2.hxx new file mode 100644 index 000000000..7555c65cb --- /dev/null +++ b/include/test/sheet/xsheetfilterdescriptor2.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_SHEET_XSHEETFILTERDESCRIPTOR2_HXX +#define INCLUDED_TEST_SHEET_XSHEETFILTERDESCRIPTOR2_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 XSheetFilterDescriptor2 +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetFilterFields2(); + +protected: + ~XSheetFilterDescriptor2() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XSHEETFILTERDESCRIPTOR2_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetfilterdescriptor3.hxx b/include/test/sheet/xsheetfilterdescriptor3.hxx new file mode 100644 index 000000000..1d8f94087 --- /dev/null +++ b/include/test/sheet/xsheetfilterdescriptor3.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_SHEET_XSHEETFILTERDESCRIPTOR3_HXX +#define INCLUDED_TEST_SHEET_XSHEETFILTERDESCRIPTOR3_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 XSheetFilterDescriptor3 +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetFilterFields3(); + +protected: + ~XSheetFilterDescriptor3() {} +}; + +} // namespace apitest + +#endif // INCLUDED_TEST_SHEET_XSHEETFILTERDESCRIPTOR3_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsheetlinkable.hxx b/include/test/sheet/xsheetlinkable.hxx new file mode 100644 index 000000000..fc239fb7b --- /dev/null +++ b/include/test/sheet/xsheetlinkable.hxx @@ -0,0 +1,35 @@ +/* -*- 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_SHEET_XSHEETLINKABLE_HXX +#define INCLUDED_TEST_SHEET_XSHEETLINKABLE_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 XSheetLinkable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual OUString getFileURL() = 0; + + void testSheetLinkable(); + +protected: + ~XSheetLinkable() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETLINKABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetoperation.hxx b/include/test/sheet/xsheetoperation.hxx new file mode 100644 index 000000000..ea436ce38 --- /dev/null +++ b/include/test/sheet/xsheetoperation.hxx @@ -0,0 +1,35 @@ +/* -*- 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_SHEET_XSHEETOPERATION_HXX +#define INCLUDED_TEST_SHEET_XSHEETOPERATION_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 XSheetOperation +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testComputeFunction(); + void testClearContents(); + +protected: + ~XSheetOperation() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETOPERATION_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetoutline.hxx b/include/test/sheet/xsheetoutline.hxx new file mode 100644 index 000000000..0210e6214 --- /dev/null +++ b/include/test/sheet/xsheetoutline.hxx @@ -0,0 +1,38 @@ +/* -*- 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_SHEET_XSHEETOUTLINE_HXX +#define INCLUDED_TEST_SHEET_XSHEETOUTLINE_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSheetOutline +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + // XSheetOutline + void testHideDetail(); + void testShowDetail(); + void testShowLevel(); + void testUngroup(); + void testGroup(); + void testClearOutline(); + +protected: + ~XSheetOutline() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETOUTLINE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xsheetpagebreak.hxx b/include/test/sheet/xsheetpagebreak.hxx new file mode 100644 index 000000000..e7a47628d --- /dev/null +++ b/include/test/sheet/xsheetpagebreak.hxx @@ -0,0 +1,34 @@ +/* -*- 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_SHEET_XSHEETPAGEBREAK_HXX +#define INCLUDED_TEST_SHEET_XSHEETPAGEBREAK_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSheetPageBreak +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetColumnPageBreaks(); + void testGetRowPageBreaks(); + void testRemoveAllManualPageBreaks(); + +protected: + ~XSheetPageBreak() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSHEETPAGEBREAK_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xspreadsheet.hxx b/include/test/sheet/xspreadsheet.hxx new file mode 100644 index 000000000..8033b8e55 --- /dev/null +++ b/include/test/sheet/xspreadsheet.hxx @@ -0,0 +1,34 @@ +/* -*- 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_SHEET_XSPREADSHEET_HXX +#define INCLUDED_TEST_SHEET_XSPREADSHEET_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 XSpreadsheet +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testCreateCursor(); + void testCreateCursorByRange(); + +protected: + ~XSpreadsheet() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSPREADSHEET_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xspreadsheetdocument.hxx b/include/test/sheet/xspreadsheetdocument.hxx new file mode 100644 index 000000000..8f5662489 --- /dev/null +++ b/include/test/sheet/xspreadsheetdocument.hxx @@ -0,0 +1,37 @@ +/* -*- 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_SHEET_XSPREADSHEETDOCUMENT_HXX +#define INCLUDED_TEST_SHEET_XSPREADSHEETDOCUMENT_HXX + +#include <com/sun/star/uno/Reference.hxx> + +namespace apitest { + +class XSpreadsheetDocument +{ +public: + XSpreadsheetDocument(sal_Int32 nSheets) : mnSheets(nSheets) {} + + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + + void testGetSheets(); + +protected: + ~XSpreadsheetDocument() {} + +private: + sal_Int32 mnSheets; +}; + +} + +#endif // INCLUDED_TEST_SHEET_XSPREADSHEETDOCUMENT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xspreadsheets.hxx b/include/test/sheet/xspreadsheets.hxx new file mode 100644 index 000000000..2ec471db6 --- /dev/null +++ b/include/test/sheet/xspreadsheets.hxx @@ -0,0 +1,34 @@ +/* -*- 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_SHEET_XSPREADSHEETS_HXX +#define INCLUDED_TEST_SHEET_XSPREADSHEETS_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 XSpreadsheets +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual ~XSpreadsheets() {} + + void testInsertNewByName(); + void testInsertNewByNameBadName(); + void testMoveByName(); + void testCopyByName(); +}; +} + +#endif // INCLUDED_TEST_SHEET_XSPREADSHEETS_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xspreadsheets2.hxx b/include/test/sheet/xspreadsheets2.hxx new file mode 100644 index 000000000..e96367d94 --- /dev/null +++ b/include/test/sheet/xspreadsheets2.hxx @@ -0,0 +1,64 @@ +/* -*- 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_SHEET_XSPREADSHEETS2_HXX +#define INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX + +#include <test/testdllapi.hxx> + +#include <com/sun/star/sheet/XSpreadsheetDocument.hpp> +#include <com/sun/star/sheet/XSpreadsheet.hpp> +#include <com/sun/star/sheet/XNamedRanges.hpp> +#include <com/sun/star/lang/XComponent.hpp> + +namespace apitest { + +class OOO_DLLPUBLIC_TEST XSpreadsheets2 +{ +public: + XSpreadsheets2(); + virtual ~XSpreadsheets2(); + + // XSpreadsheets2 + void testImportedSheetNameAndIndex(); + void testImportString(); + void testImportValue(); + void testImportFormulaBasicMath(); + void testImportFormulaWithNamedRange(); + void testImportOverExistingNamedRange(); + void testImportNamedRangeDefinedInSource(); + void testImportNamedRangeRedefinedInSource(); + void testImportNewNamedRange(); + void testImportCellStyle(); + void testLastAfterInsertCopy(); + + virtual css::uno::Reference< css::lang::XComponent > getComponent() = 0; + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + virtual css::uno::Reference< css::lang::XComponent > loadFromDesktop(const OUString&) = 0; + virtual void createFileURL(const OUString&, OUString&) = 0; + +protected: + css::uno::Reference< css::sheet::XSpreadsheetDocument> xDocument; + +private: + css::uno::Reference< css::sheet::XSpreadsheetDocument> getDoc(const OUString&); + static css::uno::Reference< css::sheet::XNamedRanges> getNamedRanges(css::uno::Reference< css::sheet::XSpreadsheetDocument > const &); + void importSheetToCopy(); + static bool isExternalReference(const OUString& aDestContent, std::u16string_view aSrcContent ); + + css::uno::Reference< css::sheet::XSpreadsheetDocument> xDestDoc; + css::uno::Reference< css::sheet::XSpreadsheet > xDestSheet; + css::uno::Reference< css::sheet::XSpreadsheet > xSrcSheet; +}; + +} + +#endif // INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xspreadsheetview.hxx b/include/test/sheet/xspreadsheetview.hxx new file mode 100644 index 000000000..144b54ac1 --- /dev/null +++ b/include/test/sheet/xspreadsheetview.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/. + */ + +#ifndef INCLUDED_TEST_SHEET_XSPREADSHEETVIEW_HXX +#define INCLUDED_TEST_SHEET_XSPREADSHEETVIEW_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 XSpreadsheetView +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetActiveSheet(); + +protected: + ~XSpreadsheetView() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XSPREADSHEETVIEW_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsubtotalcalculatable.hxx b/include/test/sheet/xsubtotalcalculatable.hxx new file mode 100644 index 000000000..2160816d3 --- /dev/null +++ b/include/test/sheet/xsubtotalcalculatable.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_SHEET_XSUBTOTALCALCULATABLE_HXX +#define INCLUDED_TEST_SHEET_XSUBTOTALCALCULATABLE_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/XInterface.hpp> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSubTotalCalculatable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0; + + void testCreateSubTotalDescriptor(); + void testApplyRemoveSubTotals(); + +protected: + ~XSubTotalCalculatable() {} +}; +} +#endif // INCLUDED_TEST_SHEET_XSUBTOTALCALCULATABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsubtotaldescriptor.hxx b/include/test/sheet/xsubtotaldescriptor.hxx new file mode 100644 index 000000000..dc570c181 --- /dev/null +++ b/include/test/sheet/xsubtotaldescriptor.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/. + */ + +#ifndef INCLUDED_TEST_SHEET_XSUBTOTALDESCRIPTOR_HXX +#define INCLUDED_TEST_SHEET_XSUBTOTALDESCRIPTOR_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/XInterface.hpp> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSubTotalDescriptor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testAddNew(); + void testClear(); + +protected: + ~XSubTotalDescriptor() {} +}; +} +#endif // INCLUDED_TEST_SHEET_XSUBTOTALDESCRIPTOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xsubtotalfield.hxx b/include/test/sheet/xsubtotalfield.hxx new file mode 100644 index 000000000..c5925ee6c --- /dev/null +++ b/include/test/sheet/xsubtotalfield.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/. + */ + +#ifndef INCLUDED_TEST_SHEET_XSUBTOTALFIELD_HXX +#define INCLUDED_TEST_SHEET_XSUBTOTALFIELD_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/XInterface.hpp> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XSubTotalField +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testGetSetGroupColumn(); + void testGetSetTotalColumns(); + +protected: + ~XSubTotalField() {} +}; +} +#endif // INCLUDED_TEST_SHEET_XSUBTOTALFIELD_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xuniquecellformatrangessupplier.hxx b/include/test/sheet/xuniquecellformatrangessupplier.hxx new file mode 100644 index 000000000..f3adcc216 --- /dev/null +++ b/include/test/sheet/xuniquecellformatrangessupplier.hxx @@ -0,0 +1,34 @@ +/* -*- 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_SHEET_XUNIQUECELLFORMATRANGESSUPPLIER_HXX +#define INCLUDED_TEST_SHEET_XUNIQUECELLFORMATRANGESSUPPLIER_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 XUniqueCellFormatRangesSupplier +{ +public: + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + + void testGetUniqueCellFormatRanges(); + +protected: + ~XUniqueCellFormatRangesSupplier() {} +}; + +} + +#endif // INCLUDED_TEST_SHEET_XUNIQUECELLFORMATRANGESSUPPLIER_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xusedareacursor.hxx b/include/test/sheet/xusedareacursor.hxx new file mode 100644 index 000000000..95b4fe402 --- /dev/null +++ b/include/test/sheet/xusedareacursor.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/. + */ + +#ifndef INCLUDED_TEST_SHEET_XUSEDAREACURSOR_HXX +#define INCLUDED_TEST_SHEET_XUSEDAREACURSOR_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 XUsedAreaCursor +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0; + virtual ~XUsedAreaCursor() {} + + void testGotoStartOfUsedArea(); + void testGotoEndOfUsedArea(); +}; +} + +#endif // INCLUDED_TEST_SHEET_XUSEDAREACURSOR_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xviewfreezable.hxx b/include/test/sheet/xviewfreezable.hxx new file mode 100644 index 000000000..642e2eaf0 --- /dev/null +++ b/include/test/sheet/xviewfreezable.hxx @@ -0,0 +1,31 @@ +/* -*- 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_SHEET_XVIEWFREEZABLE_HXX +#define INCLUDED_TEST_SHEET_XVIEWFREEZABLE_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 XViewFreezable +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual ~XViewFreezable() {} + + void testFreeze(); +}; +} + +#endif // INCLUDED_TEST_SHEET_XVIEWFREEZABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ diff --git a/include/test/sheet/xviewpane.hxx b/include/test/sheet/xviewpane.hxx new file mode 100644 index 000000000..ba0689bd2 --- /dev/null +++ b/include/test/sheet/xviewpane.hxx @@ -0,0 +1,35 @@ +/* -*- 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_SHEET_XVIEWPANE_HXX +#define INCLUDED_TEST_SHEET_XVIEWPANE_HXX + +#include <com/sun/star/uno/Reference.hxx> +#include <com/sun/star/uno/XInterface.hpp> +#include <test/testdllapi.hxx> + +namespace apitest +{ +class OOO_DLLPUBLIC_TEST XViewPane +{ +public: + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + + void testFirstVisibleColumn(); + void testFirstVisibleRow(); + void testVisibleRange(); + +protected: + virtual ~XViewPane() {} +}; +} + +#endif // INCLUDED_TEST_SHEET_XVIEWPANE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/test/sheet/xviewsplitable.hxx b/include/test/sheet/xviewsplitable.hxx new file mode 100644 index 000000000..36956d375 --- /dev/null +++ b/include/test/sheet/xviewsplitable.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/. + */ + +#ifndef INCLUDED_TEST_SHEET_XVIEWSPLITABLE_HXX +#define INCLUDED_TEST_SHEET_XVIEWSPLITABLE_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 XViewSplitable +{ + +public: + virtual css::uno::Reference< css::uno::XInterface > init() = 0; + virtual ~XViewSplitable(){} + + void testSplit(); +}; + +} + +#endif // INCLUDED_TEST_SHEET_XVIEWSPLITABLE_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */ |