LibreOffice Module test (master)  1
xtablecolumns.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
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_TABLE_XTABLECOLUMNS_HXX
11 #define INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX
12 
13 #include <com/sun/star/sheet/XSpreadsheet.hpp>
14 #include <com/sun/star/table/XCell.hpp>
15 #include <com/sun/star/uno/XInterface.hpp>
16 
17 #include <com/sun/star/uno/Reference.hxx>
18 
19 #include <test/testdllapi.hxx>
20 
21 namespace apitest
22 {
24 {
25 public:
26  virtual css::uno::Reference<css::uno::XInterface> init() = 0;
27 
28  void setXSpreadsheet(const css::uno::Reference<css::sheet::XSpreadsheet>& r_xSheet)
29  {
30  m_xSheet = r_xSheet;
31  }
32 
33  void testInsertByIndex();
34  void testInsertByIndexWithNegativeIndex();
35  // only use with ScTableColumnsObj
36  void testInsertByIndexWithNoColumn();
37  void testInsertByIndexWithOutOfBoundIndex();
38  void testRemoveByIndex();
39  void testRemoveByIndexWithNegativeIndex();
40  // only use with ScTableColumnsObj
41  void testRemoveByIndexWithNoColumn();
42  void testRemoveByIndexWithOutOfBoundIndex();
43 
44 protected:
46 
47 private:
48  css::uno::Reference<css::sheet::XSpreadsheet> m_xSheet;
49 
50  static OUString getCellText(const css::uno::Reference<css::table::XCell>& r_xCell);
51 };
52 
53 } // namespace apitest
54 
55 #endif // INCLUDED_TEST_TABLE_XTABLECOLUMNS_HXX
56 
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
void setXSpreadsheet(const css::uno::Reference< css::sheet::XSpreadsheet > &r_xSheet)
FILE * init(int, char **)
css::uno::Reference< css::sheet::XSpreadsheet > m_xSheet
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28