LibreOffice Module test (master)  1
xformulaquery.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_SHEET_XFORMULAQUERY_HXX
11 #define INCLUDED_TEST_SHEET_XFORMULAQUERY_HXX
12 
13 #include <com/sun/star/table/XCell.hpp>
14 #include <com/sun/star/table/CellRangeAddress.hpp>
15 #include <com/sun/star/uno/XInterface.hpp>
16 #include <com/sun/star/uno/Reference.hxx>
17 
18 #include <test/testdllapi.hxx>
19 
20 namespace apitest
21 {
23 {
24 public:
25  XFormulaQuery(css::table::CellRangeAddress aCellRangeAddressDependents,
26  css::table::CellRangeAddress aCellRangeAddressPrecedents,
27  unsigned int nIdxDependents = 1, unsigned int nIdxPrecedents = 1)
28  : m_aCellRangeAddressDependents(aCellRangeAddressDependents)
29  , m_aCellRangeAddressPrecedents(aCellRangeAddressPrecedents)
30  , m_nIdxDependents(nIdxDependents)
31  , m_nIdxPrecedents(nIdxPrecedents)
32  {
33  }
34 
35  virtual css::uno::Reference<css::uno::XInterface> init() = 0;
36  virtual css::uno::Reference<css::uno::XInterface> getXSpreadsheet() = 0;
37  void setXCell(css::uno::Reference<css::table::XCell> xCell) { m_xCell = xCell; }
38  css::uno::Reference<css::table::XCell> const& getXCell() const { return m_xCell; }
39 
40  void testQueryDependents();
41  void testQueryPrecedents();
42 
43 protected:
45 
46 private:
47  css::uno::Reference<css::table::XCell> m_xCell;
48  css::table::CellRangeAddress m_aCellRangeAddressDependents;
49  css::table::CellRangeAddress m_aCellRangeAddressPrecedents;
50  unsigned int m_nIdxDependents;
51  unsigned int m_nIdxPrecedents;
52 };
53 } // namespace apitest
54 
55 #endif // INCLUDED_TEST_SHEET_XFORMULAQUERY_HXX
56 
57 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
XFormulaQuery(css::table::CellRangeAddress aCellRangeAddressDependents, css::table::CellRangeAddress aCellRangeAddressPrecedents, unsigned int nIdxDependents=1, unsigned int nIdxPrecedents=1)
css::table::CellRangeAddress m_aCellRangeAddressPrecedents
void setXCell(css::uno::Reference< css::table::XCell > xCell)
unsigned int m_nIdxPrecedents
css::uno::Reference< css::table::XCell > const & getXCell() const
css::table::CellRangeAddress m_aCellRangeAddressDependents
unsigned int m_nIdxDependents
FILE * init(int, char **)
css::uno::Reference< css::table::XCell > m_xCell
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28