/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ /* * This file is part of the LibreOffice project. * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
oox::core::ContextHandlerRef WpgContext::onCreateContext(sal_Int32 nElementToken, const oox::AttributeList& /*rAttribs*/)
{ switch (getBaseToken(nElementToken))
{ case XML_wgp: case XML_cNvGrpSpPr: case XML_grpSpPr: returnnew oox::drawingml::ShapePropertiesContext(*this, *mpShape); case XML_wsp:
{ if (m_bFullWPGSupport)
{ returnnew oox::shape::WpsContext(*this, uno::Reference<drawing::XShape>(), mpShape,
std::make_shared<oox::drawingml::Shape>(
u"com.sun.star.drawing.CustomShape"_ustr, /*bDefaultHeight=*/false));
}
// Don't set default character height, Writer has its own way to set // the default, and if we don't set it here, editeng properly inherits // it. returnnew oox::drawingml::ShapeContext(
*this, mpShape,
std::make_shared<oox::drawingml::Shape>(u"com.sun.star.drawing.CustomShape"_ustr, /*bDefaultHeight=*/false));
} case XML_pic: returnnew oox::drawingml::GraphicShapeContext(
*this, mpShape,
std::make_shared<oox::drawingml::Shape>(
u"com.sun.star.drawing.GraphicObjectShape"_ustr)); case XML_grpSp:
{ if (m_bFullWPGSupport)
{
rtl::Reference<WpgContext> pWPGShape = new oox::shape::WpgContext(*this, mpShape);
pWPGShape->setFullWPGSupport(m_bFullWPGSupport); return pWPGShape;
}
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.