LibreOffice Module test (master) 1
xspreadsheets2.hxx
Go to the documentation of this file.
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2/*
3 * This file is part of the LibreOffice project.
4 *
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/.
8 */
9
10#ifndef INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX
11#define INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX
12
13#include <test/testdllapi.hxx>
14
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>
19
20namespace apitest {
21
23{
24public:
26 virtual ~XSpreadsheets2();
27
28 // 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();
40
41 virtual css::uno::Reference< css::uno::XInterface > init() = 0;
42 virtual css::uno::Reference< css::lang::XComponent > loadFromDesktop(const OUString&) = 0;
43
44protected:
45 css::uno::Reference< css::sheet::XSpreadsheetDocument> xDocument;
46
47private:
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 );
52
53 css::uno::Reference< css::sheet::XSpreadsheetDocument> xDestDoc;
54 css::uno::Reference< css::sheet::XSpreadsheet > xDestSheet;
55 css::uno::Reference< css::sheet::XSpreadsheet > xSrcSheet;
56};
57
58}
59
60#endif // INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX
61
62/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::sheet::XSpreadsheet > xSrcSheet
css::uno::Reference< css::sheet::XSpreadsheet > xDestSheet
virtual css::uno::Reference< css::lang::XComponent > loadFromDesktop(const OUString &)=0
virtual css::uno::Reference< css::uno::XInterface > init()=0
css::uno::Reference< css::sheet::XSpreadsheetDocument > xDocument
css::uno::Reference< css::sheet::XSpreadsheetDocument > xDestDoc
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28