LCOV - code coverage report
Current view: top level - oox/source/drawingml - effectpropertiescontext.cxx (source / functions) Hit Total Coverage
Test: commit 0e63ca4fde4e446f346e35849c756a30ca294aab Lines: 11 11 100.0 %
Date: 2014-04-11 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        2946 : EffectPropertiesContext::EffectPropertiesContext( ContextHandler2Helper& rParent,
      26             :     EffectProperties& rEffectProperties ) throw()
      27             : : ContextHandler2( rParent )
      28        2946 : , mrEffectProperties( rEffectProperties )
      29             : {
      30        2946 : }
      31             : 
      32        5892 : EffectPropertiesContext::~EffectPropertiesContext()
      33             : {
      34        5892 : }
      35             : 
      36        2427 : ContextHandlerRef EffectPropertiesContext::onCreateContext( sal_Int32 nElement, const AttributeList& rAttribs )
      37             : {
      38        2427 :     switch( nElement )
      39             :     {
      40             :         case A_TOKEN( outerShdw ):
      41             :         {
      42        2418 :             mrEffectProperties.maShadow.moShadowDist = rAttribs.getInteger( XML_dist, 0 );
      43        2418 :             mrEffectProperties.maShadow.moShadowDir = rAttribs.getInteger( XML_dir, 0 );
      44        2418 :             return new ColorContext( *this, mrEffectProperties.maShadow.moShadowColor );
      45             :         }
      46             :         break;
      47             :     }
      48             : 
      49           9 :     return 0;
      50             : }
      51             : 
      52             : } }
      53             : 
      54             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10