diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-07 02:18:30 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2014-02-07 02:19:48 +0100 |
commit | 003089c58864d348078130ebe6357b6cdffc26ee (patch) | |
tree | 2e0257369689d740bdd8229a2f1bf1c4410a0bf4 /chart2 | |
parent | 9dbe5a576330b7fadd8838249d07aafe548a4ee2 (diff) |
first step in supporting XShapeDumper for the DummyShapes
Change-Id: I27fcc629854b0a40f47a0008e5cab2f1749197e9
Diffstat (limited to 'chart2')
-rw-r--r-- | chart2/source/view/main/DummyXShape.cxx | 7 |
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); } |