diff options
-rw-r--r-- | qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv | 2 | ||||
-rw-r--r-- | sc/qa/extras/scsheetlinksobj.cxx | 11 |
2 files changed, 10 insertions, 3 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv index d6a8db0b257b..6a9e3218d0bb 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScSheetLinksObj.csv @@ -3,5 +3,3 @@ "ScSheetLinksObj";"com::sun::star::container::XNameAccess";"hasByName()" "ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getCount()" "ScSheetLinksObj";"com::sun::star::container::XIndexAccess";"getByIndex()" -"ScSheetLinksObj";"com::sun::star::container::XElementAccess";"getElementType()" -"ScSheetLinksObj";"com::sun::star::container::XElementAccess";"hasElements()" diff --git a/sc/qa/extras/scsheetlinksobj.cxx b/sc/qa/extras/scsheetlinksobj.cxx index 2d3b0d714732..2ec4ccf0be6e 100644 --- a/sc/qa/extras/scsheetlinksobj.cxx +++ b/sc/qa/extras/scsheetlinksobj.cxx @@ -8,8 +8,10 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> +#include <cppu/unotype.hxx> #include <rtl/string.hxx> #include <com/sun/star/beans/XPropertySet.hpp> @@ -28,7 +30,9 @@ using namespace css; namespace sc_apitest { -class ScSheetLinksObj : public CalcUnoApiTest, public apitest::XEnumerationAccess +class ScSheetLinksObj : public CalcUnoApiTest, + public apitest::XElementAccess, + public apitest::XEnumerationAccess { public: ScSheetLinksObj(); @@ -39,6 +43,10 @@ public: CPPUNIT_TEST_SUITE(ScSheetLinksObj); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); @@ -50,6 +58,7 @@ private: ScSheetLinksObj::ScSheetLinksObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<beans::XPropertySet>::get()) { } |