diff options
-rw-r--r-- | qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv | 2 | ||||
-rw-r--r-- | sc/qa/extras/scchartsobj.cxx | 12 |
2 files changed, 11 insertions, 3 deletions
diff --git a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv index 7376ac76cbf7..149d92e110da 100644 --- a/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv +++ b/qadevOOo/objdsc/sc/com.sun.star.comp.office.ScChartsObj.csv @@ -5,5 +5,3 @@ "ScChartsObj";"com::sun::star::container::XIndexAccess";"getByIndex()" "ScChartsObj";"com::sun::star::table::XTableCharts";"addNewByName()" "ScChartsObj";"com::sun::star::table::XTableCharts";"removeByName()" -"ScChartsObj";"com::sun::star::container::XElementAccess";"getElementType()" -"ScChartsObj";"com::sun::star::container::XElementAccess";"hasElements()" diff --git a/sc/qa/extras/scchartsobj.cxx b/sc/qa/extras/scchartsobj.cxx index ae7426cb965d..df40621aa6a2 100644 --- a/sc/qa/extras/scchartsobj.cxx +++ b/sc/qa/extras/scchartsobj.cxx @@ -8,7 +8,9 @@ */ #include <test/calc_unoapi_test.hxx> +#include <test/container/xelementaccess.hxx> #include <test/container/xenumerationaccess.hxx> +#include <cppu/unotype.hxx> #include <com/sun/star/awt/Rectangle.hpp> #include <com/sun/star/container/XIndexAccess.hpp> @@ -20,6 +22,7 @@ #include <com/sun/star/table/CellRangeAddress.hpp> #include <com/sun/star/table/XCell.hpp> #include <com/sun/star/table/XCellRange.hpp> +#include <com/sun/star/table/XTableChart.hpp> #include <com/sun/star/table/XTableCharts.hpp> #include <com/sun/star/table/XTableChartsSupplier.hpp> #include <com/sun/star/uno/XInterface.hpp> @@ -31,7 +34,9 @@ using namespace css; namespace sc_apitest { -class ScChartsObj : public CalcUnoApiTest, public apitest::XEnumerationAccess +class ScChartsObj : public CalcUnoApiTest, + public apitest::XEnumerationAccess, + public apitest::XElementAccess { public: ScChartsObj(); @@ -45,6 +50,10 @@ public: // XEnumerationAccess CPPUNIT_TEST(testCreateEnumeration); + // XElementAccess + CPPUNIT_TEST(testGetElementType); + CPPUNIT_TEST(testHasElements); + CPPUNIT_TEST_SUITE_END(); private: @@ -53,6 +62,7 @@ private: ScChartsObj::ScChartsObj() : CalcUnoApiTest("/sc/qa/extras/testdocuments") + , XElementAccess(cppu::UnoType<table::XTableChart>::get()) { } |