LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/oox/source/drawingml - effectpropertiescontext.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 10 11 90.9 %
Date: 2013-07-09 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          86 : EffectPropertiesContext::EffectPropertiesContext( ContextHandler2Helper& rParent,
      26             :     EffectProperties& rEffectProperties ) throw()
      27             : : ContextHandler2( rParent )
      28          86 : , mrEffectProperties( rEffectProperties )
      29             : {
      30          86 : }
      31             : 
      32         172 : EffectPropertiesContext::~EffectPropertiesContext()
      33             : {
      34         172 : }
      35             : 
      36          57 : ContextHandlerRef EffectPropertiesContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )
      37             : {
      38          57 :     switch( nElement )
      39             :     {
      40             :         case A_TOKEN( outerShdw ):
      41             :         {
      42          57 :             mrEffectProperties.maShadow.moShadowDist = rAttribs.getInteger( XML_dist, 0 );
      43          57 :             mrEffectProperties.maShadow.moShadowDir = rAttribs.getInteger( XML_dir, 0 );
      44          57 :             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: */

Generated by: LCOV version 1.10