diff options
Diffstat (limited to 'oox/source/shape/ShapeContextHandler.cxx')
-rw-r--r-- | oox/source/shape/ShapeContextHandler.cxx | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/oox/source/shape/ShapeContextHandler.cxx b/oox/source/shape/ShapeContextHandler.cxx index 5ceb101d7bd5..32342380e2f6 100644 --- a/oox/source/shape/ShapeContextHandler.cxx +++ b/oox/source/shape/ShapeContextHandler.cxx @@ -30,7 +30,6 @@ #include "oox/vml/vmldrawingfragment.hxx" #include "oox/vml/vmlshape.hxx" #include "oox/vml/vmlshapecontainer.hxx" -#include "oox/drawingml/diagram/diagram.hxx" namespace oox { namespace shape { @@ -121,19 +120,6 @@ ShapeContextHandler::getDrawingShapeContext() } uno::Reference<xml::sax::XFastContextHandler> -ShapeContextHandler::getDiagramShapeContext() -{ - if (!mxDiagramShapeContext.is()) - { - FragmentHandlerRef rFragmentHandler(new ShapeFragmentHandler(*mxFilterBase, msRelationFragmentPath)); - mpShape.reset(new Shape()); - mxDiagramShapeContext.set(new DiagramGraphicDataContext(*rFragmentHandler, mpShape)); - } - - return mxDiagramShapeContext; -} - -uno::Reference<xml::sax::XFastContextHandler> ShapeContextHandler::getContextHandler() { uno::Reference<xml::sax::XFastContextHandler> xResult; @@ -144,9 +130,6 @@ ShapeContextHandler::getContextHandler() case NMSP_vml: xResult.set(getDrawingShapeContext()); break; - case NMSP_dmlDiagram: - xResult.set(getDiagramShapeContext()); - break; default: xResult.set(getGraphicShapeContext(mnStartToken)); break; @@ -171,9 +154,6 @@ void SAL_CALL ShapeContextHandler::startFastElement mpThemePtr.reset(new Theme()); - if (Element == DGM_TOKEN(relIds)) - createFastChildContext(Element, Attribs); - uno::Reference<XFastContextHandler> xContextHandler(getContextHandler()); if (xContextHandler.is()) @@ -267,12 +247,6 @@ ShapeContextHandler::getShape() throw (uno::RuntimeException) if( const ::oox::vml::ShapeBase* pShape = mpDrawing->getShapes().takeLastShape() ) xResult = pShape->convertAndInsert( xShapes ); } - else if (getContextHandler() == getDiagramShapeContext()) - { - basegfx::B2DHomMatrix aMatrix; - mpShape->addShape( *mxFilterBase, mpThemePtr.get(), xShapes, aMatrix ); - xResult = mpShape->getXShape(); - } else if (mpShape.get() != NULL) { basegfx::B2DHomMatrix aTransformation; |