LCOV - code coverage report
Current view: top level - usr/local/src/libreoffice/drawinglayer/source/processor2d - objectinfoextractor2d.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 13 0.0 %
Date: 2013-07-09 Functions: 0 4 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /*
       2             :  * This file is part of the LibreOffice project.
       3             :  *
       4             :  * This Source Code Form is subject to the terms of the Mozilla Public
       5             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       6             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
       7             :  *
       8             :  * This file incorporates work covered by the following license notice:
       9             :  *
      10             :  *   Licensed to the Apache Software Foundation (ASF) under one or more
      11             :  *   contributor license agreements. See the NOTICE file distributed
      12             :  *   with this work for additional information regarding copyright
      13             :  *   ownership. The ASF licenses this file to you under the Apache
      14             :  *   License, Version 2.0 (the "License"); you may not use this file
      15             :  *   except in compliance with the License. You may obtain a copy of
      16             :  *   the License at http://www.apache.org/licenses/LICENSE-2.0 .
      17             :  */
      18             : 
      19             : #include <drawinglayer/processor2d/objectinfoextractor2d.hxx>
      20             : #include <drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx>
      21             : #include <drawinglayer/primitive2d/objectinfoprimitive2d.hxx>
      22             : 
      23             : //////////////////////////////////////////////////////////////////////////////
      24             : 
      25             : using namespace com::sun::star;
      26             : 
      27             : //////////////////////////////////////////////////////////////////////////////
      28             : 
      29             : namespace drawinglayer
      30             : {
      31             :     namespace processor2d
      32             :     {
      33           0 :         void ObjectInfoPrimitiveExtractor2D::processBasePrimitive2D(const primitive2d::BasePrimitive2D& rCandidate)
      34             :         {
      35           0 :             if(!mpFound)
      36             :             {
      37           0 :                 switch(rCandidate.getPrimitive2DID())
      38             :                 {
      39             :                     case PRIMITIVE2D_ID_OBJECTINFOPRIMITIVE2D :
      40             :                     {
      41           0 :                         mpFound = dynamic_cast< const primitive2d::ObjectInfoPrimitive2D* >(&rCandidate);
      42           0 :                         break;
      43             :                     }
      44             :                     default :
      45             :                     {
      46             :                         // process recursively
      47           0 :                         process(rCandidate.get2DDecomposition(getViewInformation2D()));
      48           0 :                         break;
      49             :                     }
      50             :                 }
      51             :             }
      52           0 :         }
      53             : 
      54           0 :         ObjectInfoPrimitiveExtractor2D::ObjectInfoPrimitiveExtractor2D(const geometry::ViewInformation2D& rViewInformation)
      55             :         :   BaseProcessor2D(rViewInformation),
      56           0 :             mpFound(0)
      57             :         {
      58           0 :         }
      59             : 
      60           0 :         ObjectInfoPrimitiveExtractor2D::~ObjectInfoPrimitiveExtractor2D()
      61             :         {
      62           0 :         }
      63             :     } // end of namespace processor2d
      64             : } // end of namespace drawinglayer
      65             : 
      66             : //////////////////////////////////////////////////////////////////////////////
      67             : // eof

Generated by: LCOV version 1.10