1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX
11 #define INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX
13 #include <test/testdllapi.hxx>
15 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
16 #include <com/sun/star/sheet/XSpreadsheet.hpp>
17 #include <com/sun/star/sheet/XNamedRanges.hpp>
18 #include <com/sun/star/lang/XComponent.hpp>
22 class OOO_DLLPUBLIC_TEST XSpreadsheets2
26 virtual ~XSpreadsheets2();
29 void testImportedSheetNameAndIndex();
30 void testImportString();
31 void testImportValue();
32 void testImportFormulaBasicMath();
33 void testImportFormulaWithNamedRange();
34 void testImportOverExistingNamedRange();
35 void testImportNamedRangeDefinedInSource();
36 void testImportNamedRangeRedefinedInSource();
37 void testImportNewNamedRange();
38 void testImportCellStyle();
39 void testLastAfterInsertCopy();
41 virtual css::uno::Reference
< css::uno::XInterface
> init() = 0;
42 virtual css::uno::Reference
< css::lang::XComponent
> loadFromDesktop(const OUString
&) = 0;
45 css::uno::Reference
< css::sheet::XSpreadsheetDocument
> xDocument
;
48 css::uno::Reference
< css::sheet::XSpreadsheetDocument
> getDoc(const OUString
&);
49 static css::uno::Reference
< css::sheet::XNamedRanges
> getNamedRanges(css::uno::Reference
< css::sheet::XSpreadsheetDocument
> const &);
50 void importSheetToCopy();
51 static bool isExternalReference(std::u16string_view aDestContent
, std::u16string_view aSrcContent
);
53 css::uno::Reference
< css::sheet::XSpreadsheetDocument
> xDestDoc
;
54 css::uno::Reference
< css::sheet::XSpreadsheet
> xDestSheet
;
55 css::uno::Reference
< css::sheet::XSpreadsheet
> xSrcSheet
;
60 #endif // INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX
62 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */