LCOV - code coverage report
Current view: top level - libreoffice/oox/source/drawingml - effectpropertiescontext.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 11 12 91.7 %
Date: 2012-12-27 Functions: 4 4 100.0 %
Legend: Lines: hit not hit

          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          41 : EffectPropertiesContext::EffectPropertiesContext( ContextHandler& rParent,
      26             :     EffectProperties& rEffectProperties ) throw()
      27             : : ContextHandler( rParent )
      28          41 : , mrEffectProperties( rEffectProperties )
      29             : {
      30          41 : }
      31             : 
      32          82 : EffectPropertiesContext::~EffectPropertiesContext()
      33             : {
      34          82 : }
      35             : 
      36          29 : Reference< XFastContextHandler > EffectPropertiesContext::createFastChildContext( sal_Int32 nElement, const Reference< XFastAttributeList >& xAttribs ) throw (SAXException, RuntimeException)
      37             : {
      38          29 :     AttributeList aAttribs( xAttribs );
      39          29 :     switch( nElement )
      40             :     {
      41             :         case A_TOKEN( outerShdw ):
      42             :         {
      43          29 :             mrEffectProperties.maShadow.moShadowDist = aAttribs.getInteger( XML_dist, 0 );
      44          29 :             mrEffectProperties.maShadow.moShadowDir = aAttribs.getInteger( XML_dir, 0 );
      45          29 :             return new ColorContext( *this, mrEffectProperties.maShadow.moShadowColor );
      46             :         }
      47             :         break;
      48             :     }
      49             : 
      50           0 :     return 0;
      51             : }
      52             : 
      53             : } }
      54             : 
      55             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10