From 003089c58864d348078130ebe6357b6cdffc26ee Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Fri, 7 Feb 2014 02:18:30 +0100 Subject: first step in supporting XShapeDumper for the DummyShapes Change-Id: I27fcc629854b0a40f47a0008e5cab2f1749197e9 --- chart2/source/view/main/DummyXShape.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'chart2/source') 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(this)); + uno::Any DummyXShapes::queryInterface( const uno::Type& rType ) throw(uno::RuntimeException) { + QUERY_INTERFACE( drawing::XShapes ); + QUERY_INTERFACE( container::XIndexAccess ); return DummyXShape::queryInterface(rType); } -- cgit