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 #include <test/testdllapi.hxx>
12 #include <com/sun/star/sheet/XSpreadsheetDocument.hpp>
13 #include <com/sun/star/sheet/XSpreadsheet.hpp>
14 #include <com/sun/star/sheet/XNamedRanges.hpp>
15 #include <com/sun/star/lang/XComponent.hpp>
19 class OOO_DLLPUBLIC_TEST XSpreadsheets2
23 virtual ~XSpreadsheets2();
26 void testImportedSheetNameAndIndex();
27 void testImportString();
28 void testImportValue();
29 void testImportFormulaBasicMath();
30 void testImportFormulaWithNamedRange();
31 void testImportOverExistingNamedRange();
32 void testImportNamedRangeDefinedInSource();
33 void testImportNamedRangeRedefinedInSource();
34 void testImportNewNamedRange();
35 void testImportCellStyle();
37 virtual css::uno::Reference
< css::lang::XComponent
> getComponent() = 0;
38 virtual css::uno::Reference
< css::uno::XInterface
> init() = 0;
39 virtual css::uno::Reference
< css::lang::XComponent
> loadFromDesktop(const OUString
&) = 0;
40 virtual void createFileURL(const OUString
&, OUString
&) = 0;
43 css::uno::Reference
< css::sheet::XSpreadsheetDocument
> xDocument
;
46 css::uno::Reference
< css::sheet::XSpreadsheetDocument
> getDoc(const OUString
&, css::uno::Reference
< css::lang::XComponent
>&);
47 css::uno::Reference
< css::sheet::XNamedRanges
> getNamedRanges(css::uno::Reference
< css::sheet::XSpreadsheetDocument
>);
48 void importSheetToCopy();
49 bool isExternalReference(const OUString
& aDestContent
, const OUString
& aSrcContent
);
51 css::uno::Reference
< css::sheet::XSpreadsheetDocument
> xDestDoc
;
52 css::uno::Reference
< css::sheet::XSpreadsheet
> xDestSheet
;
53 css::uno::Reference
< css::sheet::XSpreadsheet
> xSrcSheet
;
54 OUString aSrcSheetName
;
55 OUString aSrcFileName
;
56 OUString aDestFileBase
;
61 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */