LCOV - code coverage report
Current view: top level - oox/source/ppt - buildlistcontext.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 25 4.0 %
Date: 2012-08-25 Functions: 2 7 28.6 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 2 17 11.8 %

           Branch data     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                 :            :  * This file incorporates work covered by the following license notice:
      10                 :            :  *
      11                 :            :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      12                 :            :  *   contributor license agreements. See the NOTICE file distributed
      13                 :            :  *   with this work for additional information regarding copyright
      14                 :            :  *   ownership. The ASF licenses this file to you under the Apache
      15                 :            :  *   License, Version 2.0 (the "License"); you may not use this file
      16                 :            :  *   except in compliance with the License. You may obtain a copy of
      17                 :            :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      18                 :            :  */
      19                 :            : 
      20                 :            : #include "buildlistcontext.hxx"
      21                 :            : #include <rtl/ustring.hxx>
      22                 :            : #include "oox/helper/attributelist.hxx"
      23                 :            : 
      24                 :            : 
      25                 :            : using namespace ::oox::core;
      26                 :            : using namespace ::com::sun::star::uno;
      27                 :            : using namespace ::com::sun::star::xml::sax;
      28                 :            : using ::rtl::OUString;
      29                 :            : 
      30                 :            : namespace oox { namespace ppt {
      31                 :            : 
      32                 :          0 :     BuildListContext::BuildListContext( FragmentHandler2& rParent,
      33                 :            :                 const Reference< XFastAttributeList >& /*xAttribs*/,
      34                 :            :                 TimeNodePtrList & aTimeNodeList)
      35                 :            :         : FragmentHandler2( rParent )
      36                 :            :         , maTimeNodeList( aTimeNodeList )
      37                 :            :         , mbInBldGraphic( false )
      38                 :          0 :         ,   mbBuildAsOne( false )
      39                 :            :     {
      40                 :          0 :     }
      41                 :            : 
      42                 :          0 :     BuildListContext::~BuildListContext( )
      43                 :            :     {
      44         [ #  # ]:          0 :     }
      45                 :            : 
      46                 :          0 :     void BuildListContext::onEndElement()
      47                 :            :     {
      48         [ #  # ]:          0 :         switch( getCurrentElement() )
      49                 :            :         {
      50                 :            :         case PPT_TOKEN( bldGraphic ):
      51                 :          0 :             mbInBldGraphic = false;
      52                 :          0 :             break;
      53                 :            :         default:
      54                 :          0 :             break;
      55                 :            :         }
      56                 :          0 :     }
      57                 :            : 
      58                 :          0 :     ::oox::core::ContextHandlerRef BuildListContext::onCreateContext( sal_Int32 aElementToken, const AttributeList& rAttribs )
      59                 :            :     {
      60   [ #  #  #  #  :          0 :         switch( aElementToken )
                      # ]
      61                 :            :         {
      62                 :            :         case PPT_TOKEN( bldAsOne ):
      63         [ #  # ]:          0 :             if( mbInBldGraphic )
      64                 :            :             {
      65                 :          0 :                 mbBuildAsOne = true;
      66                 :            :             }
      67                 :          0 :             return this;
      68                 :            :         case PPT_TOKEN( bldSub ):
      69                 :          0 :             if( mbInBldGraphic )
      70                 :            :             {
      71                 :            :             }
      72                 :          0 :             return this;
      73                 :            :         case PPT_TOKEN( bldGraphic ):
      74                 :            :         {
      75                 :          0 :             mbInBldGraphic = true;
      76         [ #  # ]:          0 :             OUString sShapeId = rAttribs.getString( XML_spid, OUString() );
      77                 :            : // TODO
      78                 :            : //      bool uiExpand = rAttribs.getBool( XML_uiExpand, true );
      79                 :            :                 /* this is unsigned */
      80                 :            : //      sal_uInt32 nGroupId =  rAttribs.getUnsignedInteger( XML_grpId, 0 );
      81                 :          0 :         return this;
      82                 :            :         }
      83                 :            :         case A_TOKEN( bldDgm ):
      84                 :            :         case A_TOKEN( bldOleChart ):
      85                 :            :         case A_TOKEN( bldP ):
      86                 :          0 :             return this;
      87                 :            :         default:
      88                 :          0 :             break;
      89                 :            :         }
      90                 :            : 
      91                 :          0 :         return this;
      92                 :            :     }
      93                 :            : 
      94                 :            : 
      95 [ +  - ][ +  - ]:        285 : } }
      96                 :            : 
      97                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10