summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--chart2/source/view/main/DummyXShape.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index da83f7304b50..c514424154a3 100644
--- a/chart2/source/view/main/DummyXShape.cxx
+++ b/chart2/source/view/main/DummyXShape.cxx
@@ -132,6 +132,7 @@ OUString DummyXShape::getShapeType()
{
return OUString("dummy shape");
}
+
uno::Reference< beans::XPropertySetInfo > DummyXShape::getPropertySetInfo()
throw(uno::RuntimeException)
{
@@ -896,9 +897,15 @@ DummyChart* DummyChart::getRootShape()
if( rType == ::getCppuType((const uno::Reference< xint >*)0) ) \
aAny <<= uno::Reference< xint >(this)
+#define QUERY_INTERFACE( xint ) \
+ if( rType == ::getCppuType((const uno::Reference< xint >*)0 ) ) \
+ return uno::makeAny(uno::Reference<xint>(this));
+
uno::Any DummyXShapes::queryInterface( const uno::Type& rType )
throw(uno::RuntimeException)
{
+ QUERY_INTERFACE( drawing::XShapes );
+ QUERY_INTERFACE( container::XIndexAccess );
return DummyXShape::queryInterface(rType);
}