diff options
-rw-r--r-- | qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv | 2 | ||||
-rw-r--r-- | sc/qa/extras/scdatabaserangesobj.cxx | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv index 769a68a75970..704ef56f4819 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScDatabaseRangesObj.csv @@ -1,5 +1,3 @@ "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getByName()" "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"getElementNames()" "ScDatabaseRangesObj";"com::sun::star::container::XNameAccess";"hasByName()" -"ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"getElementType()" -"ScDatabaseRangesObj";"com::sun::star::container::XElementAccess";"hasElements()" diff --git a/sc/qa/extras/scdatabaserangesobj.cxx b/sc/qa/extras/scdatabaserangesobj.cxx index a8b81191cd84..a4c3b698300c 100644 --- a/sc/qa/extras/scdatabaserangesobj.cxx +++ b/sc/qa/extras/scdatabaserangesobj.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/xdatabaseranges.hxx> #include <com/sun/star/beans/XPropertySet.hpp> #include <com/sun/star/lang/XComponent.hpp> +#include <com/sun/star/sheet/XDatabaseRange.hpp> #include <com/sun/star/sheet/XDatabaseRanges.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; @@ -29,6 +33,7 @@ namespace sc_apitest { class ScDatabaseRangesObj : public CalcUnoApiTest, public apitest::XDatabaseRanges, + public apitest::XElementAccess, public apitest::XEnumerationAccess, public apitest::XIndexAccess { @@ -44,6 +49,10 @@ public: // XDatabaseRanges CPPUNIT_TEST(testAddRemoveDbRanges); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); @@ -59,6 +68,7 @@ private: ScDatabaseRangesObj::ScDatabaseRangesObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<sheet::XDatabaseRange>::get()) , XIndexAccess(1) { } |