diff options
Diffstat (limited to 'sc')
-rw-r--r-- | sc/qa/extras/sclabelrangesobj.cxx | 10 | ||||
-rw-r--r-- | sc/qa/unoapi/sc_6.sce | 1 |
2 files changed, 10 insertions, 1 deletions
diff --git a/sc/qa/extras/sclabelrangesobj.cxx b/sc/qa/extras/sclabelrangesobj.cxx index fefba462d117..9f720eeaadf7 100644 --- a/sc/qa/extras/sclabelrangesobj.cxx +++ b/sc/qa/extras/sclabelrangesobj.cxx @@ -8,12 +8,14 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> #include <test/container/xindexaccess.hxx> #include <test/sheet/xlabelranges.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/lang/XComponent.hpp> +#include <com/sun/star/sheet/XLabelRange.hpp> #include <com/sun/star/sheet/XLabelRanges.hpp> #include <com/sun/star/sheet/XSpreadsheetDocument.hpp> #include <com/sun/star/table/CellRangeAddress.hpp> @@ -21,6 +23,8 @@ #include <com/sun/star/uno/Reference.hxx> +#include <cppu/unotype.hxx> + using namespace css; using namespace css::uno; using namespace com::sun::star; @@ -28,6 +32,7 @@ using namespace com::sun::star; namespace sc_apitest { class ScLabelRangesObj : public CalcUnoApiTest, + public apitest::XElementAccess, public apitest::XEnumerationAccess, public apitest::XIndexAccess, public apitest::XLabelRanges @@ -41,6 +46,10 @@ public: CPPUNIT_TEST_SUITE(ScLabelRangesObj); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); @@ -60,6 +69,7 @@ private: ScLabelRangesObj::ScLabelRangesObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<sheet::XLabelRange>::get()) , XIndexAccess(1) { } diff --git a/sc/qa/unoapi/sc_6.sce b/sc/qa/unoapi/sc_6.sce index ae64fae00d92..c264f0ab4eda 100644 --- a/sc/qa/unoapi/sc_6.sce +++ b/sc/qa/unoapi/sc_6.sce @@ -15,7 +15,6 @@ # except in compliance with the License. You may obtain a copy of # the License at http://www.apache.org/licenses/LICENSE-2.0 . # --o sc.ScLabelRangesObj -o sc.ScModelObj -o sc.ScNamedRangesObj # -o sc.ScScenariosObj |