fdo#74697 Add Bluez 5 support for impress remote.
[LibreOffice.git] / oox / source / drawingml / effectpropertiescontext.cxx
blob7da597157314462480816f6404f04a7dfa599207
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( ContextHandler& rParent,
26 EffectProperties& rEffectProperties ) throw()
27 : ContextHandler( rParent )
28 , mrEffectProperties( rEffectProperties )
32 EffectPropertiesContext::~EffectPropertiesContext()
36 Reference< XFastContextHandler > EffectPropertiesContext::createFastChildContext( sal_Int32 nElement, const Reference< XFastAttributeList >& xAttribs ) throw (SAXException, RuntimeException)
38 AttributeList aAttribs( xAttribs );
39 switch( nElement )
41 case A_TOKEN( outerShdw ):
43 mrEffectProperties.maShadow.moShadowDist = aAttribs.getInteger( XML_dist, 0 );
44 mrEffectProperties.maShadow.moShadowDir = aAttribs.getInteger( XML_dir, 0 );
45 return new ColorContext( *this, mrEffectProperties.maShadow.moShadowColor );
47 break;
50 return 0;
53 } }
55 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */