GPU-Calc: remove Alloc_Host_Ptr for clmem of NAN vector
[LibreOffice.git] / oox / source / drawingml / effectpropertiescontext.cxx
blob2364ee64757ffcab6ae27cdee53ffd71b25b8d26
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8 */
10 #include "oox/drawingml/effectpropertiescontext.hxx"
11 #include "oox/drawingml/drawingmltypes.hxx"
12 #include "oox/drawingml/fillpropertiesgroupcontext.hxx"
13 #include "oox/drawingml/effectproperties.hxx"
14 #include "oox/helper/attributelist.hxx"
16 using namespace ::oox::core;
17 using namespace ::com::sun::star::uno;
18 using namespace ::com::sun::star::xml::sax;
20 // CT_EffectProperties
22 namespace oox { namespace drawingml {
23 // ---------------------------------------------------------------------
25 EffectPropertiesContext::EffectPropertiesContext( ContextHandler2Helper& rParent,
26 EffectProperties& rEffectProperties ) throw()
27 : ContextHandler2( rParent )
28 , mrEffectProperties( rEffectProperties )
32 EffectPropertiesContext::~EffectPropertiesContext()
36 ContextHandlerRef EffectPropertiesContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )
38 switch( nElement )
40 case A_TOKEN( outerShdw ):
42 mrEffectProperties.maShadow.moShadowDist = rAttribs.getInteger( XML_dist, 0 );
43 mrEffectProperties.maShadow.moShadowDir = rAttribs.getInteger( XML_dir, 0 );
44 return new ColorContext( *this, mrEffectProperties.maShadow.moShadowColor );
46 break;
49 return 0;
52 } }
54 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */