[Libreoffice-commits] core.git: chart2/source

Markus Mohrhard markus.mohrhard at googlemail.com
Thu Feb 6 17:20:24 PST 2014


 chart2/source/view/main/DummyXShape.cxx |    7 +++++++
 1 file changed, 7 insertions(+)

New commits:
commit 003089c58864d348078130ebe6357b6cdffc26ee
Author: Markus Mohrhard <markus.mohrhard at googlemail.com>
Date:   Fri Feb 7 02:18:30 2014 +0100

    first step in supporting XShapeDumper for the DummyShapes
    
    Change-Id: I27fcc629854b0a40f47a0008e5cab2f1749197e9

diff --git a/chart2/source/view/main/DummyXShape.cxx b/chart2/source/view/main/DummyXShape.cxx
index da83f73..c514424 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);
 }
 


More information about the Libreoffice-commits mailing list