LCOV - code coverage report
Current view: top level - oox/source/drawingml - ThemeOverrideFragmentHandler.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 1 12 8.3 %
Date: 2015-06-13 12:38:46 Functions: 2 6 33.3 %
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 <drawingml/ThemeOverrideFragmentHandler.hxx>
      11             : #include "oox/drawingml/theme.hxx"
      12             : #include "drawingml/themeelementscontext.hxx"
      13             : 
      14             : using namespace ::oox::core;
      15             : 
      16             : namespace oox {
      17             : namespace drawingml {
      18             : 
      19           0 : ThemeOverrideFragmentHandler::ThemeOverrideFragmentHandler( XmlFilterBase& rFilter, const OUString& rFragmentPath, Theme& rTheme ) :
      20             :     FragmentHandler2( rFilter, rFragmentPath ),
      21           0 :     mrTheme( rTheme )
      22             : {
      23           0 : }
      24             : 
      25           0 : ThemeOverrideFragmentHandler::~ThemeOverrideFragmentHandler()
      26             : {
      27           0 : }
      28             : 
      29           0 : ContextHandlerRef ThemeOverrideFragmentHandler::onCreateContext( sal_Int32 nElement, const AttributeList& )
      30             : {
      31             :     // CT_OfficeStyleSheet
      32           0 :     switch( getCurrentElement() )
      33             :     {
      34             :         case XML_ROOT_CONTEXT:
      35           0 :             switch( nElement )
      36             :             {
      37             :                 case A_TOKEN( themeOverride ): // CT_BaseStylesOverride
      38           0 :                     return new ThemeElementsContext( *this, mrTheme );
      39             :             }
      40           0 :         break;
      41             :     }
      42           0 :     return 0;
      43             : }
      44             : 
      45             : } // namespace drawingml
      46         246 : } // namespace oox
      47             : 
      48             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11