From 8a6d84fc1a926147884a9cbf234f86c6fb6f8583 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Tue, 24 Dec 2013 10:05:02 +0100 Subject: oox: whitespace fixes in WpgContext Change-Id: I4b4a3f9c4ec2c49c178d2e6a175b3dc307295e97 --- oox/source/shape/WpgContext.cxx | 54 ++++++++++++++++++++++------------------- oox/source/shape/WpgContext.hxx | 8 ++++-- 2 files changed, 35 insertions(+), 27 deletions(-) (limited to 'oox') 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 -- cgit alue='distro/collabora/cp-5.1'>distro/collabora/cp-5.1 LibreOffice 核心代码仓库文档基金会
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2006-11-01 17:18:23 +0000
committerVladimir Glazounov <vg@openoffice.org>2006-11-01 17:18:23 +0000
commit145373af83db002c29a2c01b60ab96ba02e55290 (patch)
treeb1fa0193c3ae02d765ea2ddea5451e18ea2cc7c3
parent0366f3a47138ceb14a4fb8cf2f10394dc9902c08 (diff)
INTEGRATION: CWS inplaceobjects (1.3.250); FILE MERGED
2006/09/28 19:30:48 mba 1.3.250.3: RESYNC: (1.3-1.4); FILE MERGED 2006/07/03 15:12:24 mba 1.3.250.2: #i66239#: need means to change border size 2006/06/14 10:57:13 mba 1.3.250.1: #i66239#: new API for inplace active objects