summaryrefslogtreecommitdiff
path: root/oox
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-05-29 17:49:17 +0200
committerLuboš Luňák <l.lunak@suse.cz>2012-05-29 17:51:16 +0200
commit099198a4224778fe6e43f5dc13b5b9b1b4dc828c (patch)
treef8198bb980cce081bc12e01a6d873d54db6811e3 /oox
parent2f378a6a611030ca64ce918a1f7fcd584deefea6 (diff)
Revert "oox: initial smartart text is imported into Writer"
This causes a test failure with sw's n747461.docx , since one shape is apparently not loaded. In this patch, it seems the "if (Element == DGM_TOKEN(relIds))" part is the problem. Reverting the whole change until this is fixed. This reverts commit 8c6fb76c2cc24c336a28702b5f7f31cb5964129a.
Diffstat (limited to 'oox')
-rw-r--r--oox/source/shape/ShapeContextHandler.cxx26
-rw-r--r--oox/source/shape/ShapeContextHandler.hxx2
2 files changed, 0 insertions, 28 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;
diff --git a/oox/source/shape/ShapeContextHandler.hxx b/oox/source/shape/ShapeContextHandler.hxx
index 95aee66b0564..df9c3987a2c9 100644
--- a/oox/source/shape/ShapeContextHandler.hxx
+++ b/oox/source/shape/ShapeContextHandler.hxx
@@ -159,7 +159,6 @@ private:
GraphicShapeContextPtr;
css::uno::Reference<XFastContextHandler> mxDrawingFragmentHandler;
css::uno::Reference<XFastContextHandler> mxGraphicShapeContext;
- css::uno::Reference<XFastContextHandler> mxDiagramShapeContext;
core::XmlFilterRef mxFilterBase;
drawingml::ThemePtr mpThemePtr;
@@ -169,7 +168,6 @@ private:
css::uno::Reference<XFastContextHandler> getGraphicShapeContext(::sal_Int32 Element);
css::uno::Reference<XFastContextHandler> getDrawingShapeContext();
- css::uno::Reference<XFastContextHandler> getDiagramShapeContext();
css::uno::Reference<XFastContextHandler> getContextHandler();
};