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 
20 namespace apitest {
21 
23 {
24 public:
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::lang::XComponent > getComponent() = 0;
42  virtual css::uno::Reference< css::uno::XInterface > init() = 0;
43  virtual css::uno::Reference< css::lang::XComponent > loadFromDesktop(const OUString&) = 0;
44  virtual void createFileURL(const OUString&, OUString&) = 0;
45 
46 protected:
47  css::uno::Reference< css::sheet::XSpreadsheetDocument> xDocument;
48 
49 private:
50  css::uno::Reference< css::sheet::XSpreadsheetDocument> getDoc(const OUString&);
51  static css::uno::Reference< css::sheet::XNamedRanges> getNamedRanges(css::uno::Reference< css::sheet::XSpreadsheetDocument > const &);
52  void importSheetToCopy();
53  static bool isExternalReference(const OUString& aDestContent, std::u16string_view aSrcContent );
54 
55  css::uno::Reference< css::sheet::XSpreadsheetDocument> xDestDoc;
56  css::uno::Reference< css::sheet::XSpreadsheet > xDestSheet;
57  css::uno::Reference< css::sheet::XSpreadsheet > xSrcSheet;
58 };
59 
60 }
61 
62 #endif // INCLUDED_TEST_SHEET_XSPREADSHEETS2_HXX
63 
64 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
css::uno::Reference< css::sheet::XSpreadsheetDocument > xDocument
css::uno::Reference< css::sheet::XSpreadsheet > xSrcSheet
FILE * init(int, char **)
css::uno::Reference< css::sheet::XSpreadsheetDocument > xDestDoc
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28
css::uno::Reference< css::sheet::XSpreadsheet > xDestSheet