Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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 : */
9 :
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"
15 :
16 : using namespace ::oox::core;
17 : using namespace ::com::sun::star::uno;
18 : using namespace ::com::sun::star::xml::sax;
19 :
20 : // CT_EffectProperties
21 :
22 : namespace oox { namespace drawingml {
23 :
24 :
25 0 : EffectPropertiesContext::EffectPropertiesContext( ContextHandler2Helper& rParent,
26 : EffectProperties& rEffectProperties ) throw()
27 : : ContextHandler2( rParent )
28 0 : , mrEffectProperties( rEffectProperties )
29 : {
30 0 : }
31 :
32 0 : EffectPropertiesContext::~EffectPropertiesContext()
33 : {
34 0 : }
35 :
36 0 : ContextHandlerRef EffectPropertiesContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )
37 : {
38 0 : switch( nElement )
39 : {
40 : case A_TOKEN( outerShdw ):
41 : {
42 0 : mrEffectProperties.maShadow.moShadowDist = rAttribs.getInteger( XML_dist, 0 );
43 0 : mrEffectProperties.maShadow.moShadowDir = rAttribs.getInteger( XML_dir, 0 );
44 0 : return new ColorContext( *this, mrEffectProperties.maShadow.moShadowColor );
45 : }
46 : break;
47 : }
48 :
49 0 : return 0;
50 : }
51 :
52 : } }
53 :
54 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|