diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-12-24 10:05:02 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-12-24 10:05:55 +0100 |
commit | 8a6d84fc1a926147884a9cbf234f86c6fb6f8583 (patch) | |
tree | a9dec6ac26a5f7cbce10ff2239899849663321f8 /oox/source | |
parent | 75e7d6f12e914b63e66968890533b2a56d0b1a7e (diff) |
oox: whitespace fixes in WpgContext
Change-Id: I4b4a3f9c4ec2c49c178d2e6a175b3dc307295e97
Diffstat (limited to 'oox/source')
-rw-r--r-- | oox/source/shape/WpgContext.cxx | 54 | ||||
-rw-r--r-- | oox/source/shape/WpgContext.hxx | 8 |
2 files changed, 35 insertions, 27 deletions
diff --git a/oox/source/shape/WpgContext.cxx b/oox/source/shape/WpgContext.cxx index c8ca50508664..39bb4709b6a6 100644 --- a/oox/source/shape/WpgContext.cxx +++ b/oox/source/shape/WpgContext.cxx @@ -13,10 +13,13 @@ using namespace com::sun::star; -namespace oox { namespace shape { +namespace oox +{ +namespace shape +{ WpgContext::WpgContext(ContextHandler2Helper& rParent) -: ContextHandler2(rParent) + : ContextHandler2(rParent) { mpShape.reset(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape")); } @@ -34,32 +37,33 @@ oox::core::ContextHandlerRef WpgContext::onCreateContext(sal_Int32 nElementToken { switch (getBaseToken(nElementToken)) { - case XML_wgp: - break; - case XML_cNvGrpSpPr: - break; - case XML_grpSpPr: - return new oox::drawingml::ShapePropertiesContext(*this, *mpShape); - break; - case XML_wsp: - { - oox::drawingml::ShapePtr pShape(new oox::drawingml::Shape("com.sun.star.drawing.CustomShape")); - return new oox::drawingml::ShapeContext(*this, mpShape, pShape); - } - break; - case XML_grpSp: - { - oox::drawingml::ShapePtr pShape(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape")); - return new oox::drawingml::ShapeGroupContext(*this, mpShape, pShape); - } - break; - default: - SAL_WARN("oox", "WpgContext::createFastChildContext: unhandled element: " << getBaseToken(nElementToken)); - break; + case XML_wgp: + break; + case XML_cNvGrpSpPr: + break; + case XML_grpSpPr: + return new oox::drawingml::ShapePropertiesContext(*this, *mpShape); + break; + case XML_wsp: + { + oox::drawingml::ShapePtr pShape(new oox::drawingml::Shape("com.sun.star.drawing.CustomShape")); + return new oox::drawingml::ShapeContext(*this, mpShape, pShape); + } + break; + case XML_grpSp: + { + oox::drawingml::ShapePtr pShape(new oox::drawingml::Shape("com.sun.star.drawing.GroupShape")); + return new oox::drawingml::ShapeGroupContext(*this, mpShape, pShape); + } + break; + default: + SAL_WARN("oox", "WpgContext::createFastChildContext: unhandled element: " << getBaseToken(nElementToken)); + break; } return 0; } -} } +} +} /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/oox/source/shape/WpgContext.hxx b/oox/source/shape/WpgContext.hxx index 3a609860012e..444efe48331a 100644 --- a/oox/source/shape/WpgContext.hxx +++ b/oox/source/shape/WpgContext.hxx @@ -13,7 +13,10 @@ #include "oox/core/contexthandler2.hxx" #include "oox/drawingml/shape.hxx" -namespace oox { namespace shape { +namespace oox +{ +namespace shape +{ /// Wpg is the drawingML equivalent of v:group. class WpgContext : public oox::core::ContextHandler2 @@ -31,7 +34,8 @@ protected: }; -} } +} +} #endif |