diff options
author | Jens Carl <j.carl43@gmx.de> | 2019-01-25 22:58:02 +0000 |
---|---|---|
committer | Jens Carl <j.carl43@gmx.de> | 2019-01-26 02:12:24 +0100 |
commit | 412fbb6f017a12b423ae7e98fb7a56971084185e (patch) | |
tree | 0827655b0e564d75fa2838b74b23be1768154ff5 /include/test/sheet | |
parent | 3424004cca7cb61043800f0ff0acc9de64768276 (diff) |
tdf#45904 Move XEnumerationAccess Java test to C++
Move XEnumerationAccess Java test to C++ for ScNamedRangesObj.
Change-Id: Ia19281b8e481eda2535eb6f26c60dedc65f1beec
Reviewed-on: https://gerrit.libreoffice.org/66933
Tested-by: Jenkins
Reviewed-by: Jens Carl <j.carl43@gmx.de>
Diffstat (limited to 'include/test/sheet')
-rw-r--r-- | include/test/sheet/xnamedranges.hxx | 31 |
1 files changed, 21 insertions, 10 deletions
diff --git a/include/test/sheet/xnamedranges.hxx b/include/test/sheet/xnamedranges.hxx index 9e750c333f45..3ce90f8f3401 100644 --- a/include/test/sheet/xnamedranges.hxx +++ b/include/test/sheet/xnamedranges.hxx @@ -10,23 +10,33 @@ #ifndef INCLUDED_TEST_SHEET_XNAMEDRANGES_HXX #define INCLUDED_TEST_SHEET_XNAMEDRANGES_HXX -#include <com/sun/star/uno/Reference.hxx> #include <com/sun/star/sheet/XSpreadsheet.hpp> -#include <test/testdllapi.hxx> -namespace apitest { +#include <com/sun/star/uno/Reference.hxx> + +#include <rtl/ustring.hxx> +#include <sal/types.h> +#include <test/testdllapi.hxx> +namespace apitest +{ class OOO_DLLPUBLIC_TEST XNamedRanges { public: // remove default entry - XNamedRanges(); - // removes given entry - XNamedRanges(const OUString& rNameToRemove); + XNamedRanges() + : maNameToRemove("initial1") + { + } - virtual ~XNamedRanges(); + // removes given entry + XNamedRanges(const OUString& rNameToRemove) + : maNameToRemove(rNameToRemove) + { + } - virtual css::uno::Reference< css::uno::XInterface > init(sal_Int32 nSheets = 0) = 0; + virtual css::uno::Reference<css::uno::XInterface> init() = 0; + virtual css::uno::Reference<css::uno::XInterface> getXNamedRanges(sal_Int32 nSheet = 0) = 0; // XNamedRanges void testAddNewByName(); @@ -35,13 +45,14 @@ public: void testOutputList(); protected: - css::uno::Reference< css::sheet::XSpreadsheet > xSheet; + ~XNamedRanges(){}; + css::uno::Reference<css::sheet::XSpreadsheet> xSheet; private: OUString const maNameToRemove; }; -} +} // namespace apitest #endif // INCLUDED_TEST_SHEET_XNAMEDRANGES_HXX |