Kaydet (Commit) 8a6d84fc authored tarafından Miklos Vajna's avatar Miklos Vajna

oox: whitespace fixes in WpgContext

Change-Id: I4b4a3f9c4ec2c49c178d2e6a175b3dc307295e97
üst 75e7d6f1
...@@ -13,10 +13,13 @@ ...@@ -13,10 +13,13 @@
using namespace com::sun::star; using namespace com::sun::star;
namespace oox { namespace shape { namespace oox
{
namespace shape
{
WpgContext::WpgContext(ContextHandler2Helper& rParent) WpgContext::WpgContext(ContextHandler2Helper& rParent)
: ContextHandler2(rParent) : ContextHandler2(rParent)
{ {
mpShape.reset(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape")); mpShape.reset(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape"));
} }
...@@ -34,32 +37,33 @@ oox::core::ContextHandlerRef WpgContext::onCreateContext(sal_Int32 nElementToken ...@@ -34,32 +37,33 @@ oox::core::ContextHandlerRef WpgContext::onCreateContext(sal_Int32 nElementToken
{ {
switch (getBaseToken(nElementToken)) switch (getBaseToken(nElementToken))
{ {
case XML_wgp: case XML_wgp:
break; break;
case XML_cNvGrpSpPr: case XML_cNvGrpSpPr:
break; break;
case XML_grpSpPr: case XML_grpSpPr:
return new oox::drawingml::ShapePropertiesContext(*this, *mpShape); return new oox::drawingml::ShapePropertiesContext(*this, *mpShape);
break; break;
case XML_wsp: case XML_wsp:
{ {
oox::drawingml::ShapePtr pShape(new oox::drawingml::Shape("com.sun.star.drawing.CustomShape")); oox::drawingml::ShapePtr pShape(new oox::drawingml::Shape("com.sun.star.drawing.CustomShape"));
return new oox::drawingml::ShapeContext(*this, mpShape, pShape); return new oox::drawingml::ShapeContext(*this, mpShape, pShape);
} }
break; break;
case XML_grpSp: case XML_grpSp:
{ {
oox::drawingml::ShapePtr pShape(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape")); oox::drawingml::ShapePtr pShape(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape"));
return new oox::drawingml::ShapeGroupContext(*this, mpShape, pShape); return new oox::drawingml::ShapeGroupContext(*this, mpShape, pShape);
} }
break; break;
default: default:
SAL_WARN("oox", "WpgContext::createFastChildContext: unhandled element: " << getBaseToken(nElementToken)); SAL_WARN("oox", "WpgContext::createFastChildContext: unhandled element: " << getBaseToken(nElementToken));
break; break;
} }
return 0; return 0;
} }
} } }
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
...@@ -13,7 +13,10 @@ ...@@ -13,7 +13,10 @@
#include "oox/core/contexthandler2.hxx" #include "oox/core/contexthandler2.hxx"
#include "oox/drawingml/shape.hxx" #include "oox/drawingml/shape.hxx"
namespace oox { namespace shape { namespace oox
{
namespace shape
{
/// Wpg is the drawingML equivalent of v:group. /// Wpg is the drawingML equivalent of v:group.
class WpgContext : public oox::core::ContextHandler2 class WpgContext : public oox::core::ContextHandler2
...@@ -31,7 +34,8 @@ protected: ...@@ -31,7 +34,8 @@ protected:
}; };
} } }
}
#endif #endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment