LibreOffice Module test (master) 1
xnamedranges.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_XNAMEDRANGES_HXX
11#define INCLUDED_TEST_SHEET_XNAMEDRANGES_HXX
12
13#include <com/sun/star/sheet/XSpreadsheet.hpp>
14
15#include <com/sun/star/uno/Reference.hxx>
16
17#include <rtl/ustring.hxx>
18#include <sal/types.h>
19#include <test/testdllapi.hxx>
20#include <utility>
21
22namespace apitest
23{
25{
26public:
27 // remove default entry
29 : maNameToRemove("initial1")
30 {
31 }
32
33 // removes given entry
34 XNamedRanges(OUString aNameToRemove)
35 : maNameToRemove(std::move(aNameToRemove))
36 {
37 }
38
39 virtual css::uno::Reference<css::uno::XInterface> init() = 0;
40 virtual css::uno::Reference<css::uno::XInterface> getXNamedRanges(sal_Int32 nSheet = 0) = 0;
41
42 // XNamedRanges
43 void testAddNewByName();
44 void testAddNewFromTitles();
45 void testRemoveByName();
46 void testOutputList();
47
48protected:
50 css::uno::Reference<css::sheet::XSpreadsheet> xSheet;
51
52private:
54};
55
56} // namespace apitest
57
58#endif // INCLUDED_TEST_SHEET_XNAMEDRANGES_HXX
59
60/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual css::uno::Reference< css::uno::XInterface > getXNamedRanges(sal_Int32 nSheet=0)=0
XNamedRanges(OUString aNameToRemove)
css::uno::Reference< css::sheet::XSpreadsheet > xSheet
virtual css::uno::Reference< css::uno::XInterface > init()=0
#define OOO_DLLPUBLIC_TEST
Definition: testdllapi.hxx:28