LCOV - code coverage report
Current view: top level - filter/source/graphicfilter/icgm - class0.cxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 68 0.0 %
Date: 2012-08-25 Functions: 0 1 0.0 %
Legend: Lines: hit not hit | Branches: + taken - not taken # not executed Branches: 0 0 -

           Branch data     Line data    Source code
       1                 :            : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
       2                 :            : /*************************************************************************
       3                 :            :  *
       4                 :            :  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       5                 :            :  *
       6                 :            :  * Copyright 2000, 2010 Oracle and/or its affiliates.
       7                 :            :  *
       8                 :            :  * OpenOffice.org - a multi-platform office productivity suite
       9                 :            :  *
      10                 :            :  * This file is part of OpenOffice.org.
      11                 :            :  *
      12                 :            :  * OpenOffice.org is free software: you can redistribute it and/or modify
      13                 :            :  * it under the terms of the GNU Lesser General Public License version 3
      14                 :            :  * only, as published by the Free Software Foundation.
      15                 :            :  *
      16                 :            :  * OpenOffice.org is distributed in the hope that it will be useful,
      17                 :            :  * but WITHOUT ANY WARRANTY; without even the implied warranty of
      18                 :            :  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
      19                 :            :  * GNU Lesser General Public License version 3 for more details
      20                 :            :  * (a copy is included in the LICENSE file that accompanied this code).
      21                 :            :  *
      22                 :            :  * You should have received a copy of the GNU Lesser General Public License
      23                 :            :  * version 3 along with OpenOffice.org.  If not, see
      24                 :            :  * <http://www.openoffice.org/license.html>
      25                 :            :  * for a copy of the LGPLv3 License.
      26                 :            :  *
      27                 :            :  ************************************************************************/
      28                 :            : 
      29                 :            : #include <main.hxx>
      30                 :            : #include <outact.hxx>
      31                 :            : 
      32                 :            : // ---------------------------------------------------------------
      33                 :            : 
      34                 :          0 : void CGM::ImplDoClass0()
      35                 :            : {
      36                 :          0 :     switch ( mnElementID )
      37                 :            :     {
      38                 :            :         case 0x01 : /*Begin Metafile*/
      39                 :            :         {
      40                 :          0 :             ImplSetMapMode();
      41                 :          0 :             mbMetaFile = sal_True;
      42                 :            :         }
      43                 :          0 :         break;
      44                 :            :         case 0x02 : /*End MetaFile*/
      45                 :            :         {
      46                 :          0 :             if ( mpBitmapInUse )                            // vorhandene grafik verarbeiten,
      47                 :            :             {
      48                 :          0 :                 CGMBitmapDescriptor* pBmpDesc = mpBitmapInUse->GetBitmap();
      49                 :            :                 // irgendetwas mit der Bitmap anfangen
      50                 :          0 :                 mpOutAct->DrawBitmap( pBmpDesc );
      51                 :          0 :                 delete mpBitmapInUse;
      52                 :          0 :                 mpBitmapInUse = NULL;
      53                 :            :             }
      54                 :          0 :             mbIsFinished = sal_True;
      55                 :          0 :             mbPictureBody = sal_False;
      56                 :          0 :             mbMetaFile = sal_False;
      57                 :            :         }
      58                 :          0 :         break;
      59                 :            :         case 0x03 : /*Begin Picture*/
      60                 :            :         {
      61                 :          0 :             ImplDefaultReplacement();
      62                 :          0 :             ImplSetMapMode();
      63                 :          0 :             if ( mbPicture )
      64                 :          0 :                 mbStatus = sal_False;
      65                 :            :             else
      66                 :            :             {
      67                 :          0 :                 *pCopyOfE = *pElement;
      68                 :          0 :                 mbPicture = mbFirstOutPut = sal_True;
      69                 :          0 :                 mbFigure = sal_False;
      70                 :          0 :                 mnAct4PostReset = 0;
      71                 :          0 :                 if ( mpChart == NULL )      // normal CGM Files determines "BeginPic"
      72                 :          0 :                     mpOutAct->InsertPage();     // as the next slide
      73                 :            :             }
      74                 :            :         }
      75                 :          0 :         break;
      76                 :            :         case 0x04 : /*Begin Picture Body*/
      77                 :          0 :             mbPictureBody = sal_True;
      78                 :          0 :         break;
      79                 :            :         case 0x05 : /*  End Picture*/
      80                 :            :         {
      81                 :          0 :             if ( mbPicture )
      82                 :            :             {
      83                 :          0 :                 if ( mpBitmapInUse )                            // vorhandene grafik verarbeiten,
      84                 :            :                 {
      85                 :          0 :                     CGMBitmapDescriptor* pBmpDesc = mpBitmapInUse->GetBitmap();
      86                 :            :                     // irgendetwas mit der Bitmap anfangen
      87                 :          0 :                     mpOutAct->DrawBitmap( pBmpDesc );
      88                 :          0 :                     delete mpBitmapInUse;
      89                 :          0 :                     mpBitmapInUse = NULL;
      90                 :            :                 }
      91                 :          0 :                 mpOutAct->EndFigure();                          // eventuelle figuren schliessen
      92                 :          0 :                 mpOutAct->EndGrouping();                        // eventuelle gruppierungen noch abschliessen
      93                 :          0 :                 *pElement = *pCopyOfE;
      94                 :          0 :                 mbFigure = mbFirstOutPut = mbPicture = mbPictureBody = sal_False;
      95                 :            :             }
      96                 :            :             else
      97                 :          0 :                 mbStatus = sal_False;
      98                 :            :         }
      99                 :          0 :         break;
     100                 :            :         case 0x06 : /*Begin Segment*/
     101                 :          0 :             pElement->bSegmentCount = sal_True;
     102                 :          0 :         break;
     103                 :            :         case 0x07 : /*End Segment*/
     104                 :          0 :             pElement->bSegmentCount = sal_True;
     105                 :          0 :         break;
     106                 :            :         case 0x08 : /*Begin Figure*/
     107                 :          0 :             mbFigure = sal_True;
     108                 :          0 :             mpOutAct->BeginFigure();
     109                 :          0 :         break;
     110                 :            :         case 0x09 : /*End Figure*/
     111                 :          0 :             mpOutAct->EndFigure();
     112                 :          0 :             mbFigure = sal_False;
     113                 :          0 :         break;
     114                 :          0 :         case 0x0d : /*Begin Protection Region */break;
     115                 :          0 :         case 0x0e : /*End Protection Region */break;
     116                 :          0 :         case 0x0f : /*Begin Compound Line */break;
     117                 :          0 :         case 0x10 : /*End Compound Line */break;
     118                 :          0 :         case 0x11 : /*Begin Compound Text Path */break;
     119                 :          0 :         case 0x12 : /*End Compound Text Path */break;
     120                 :          0 :         case 0x13 : /*Begin Tile Array */break;                 // NS
     121                 :          0 :         case 0x14 : /*End Tile Array */break;                   // NS
     122                 :          0 :         case 0xff : /*Filter Setup */break;
     123                 :          0 :         case 0xfe : /*Begin Block Text Region */break;
     124                 :          0 :         case 0xfd : /*End Block Text Region */break;
     125                 :            :         case 0xfc : /*Begin Group*/
     126                 :          0 :             mpOutAct->BeginGroup();
     127                 :          0 :         break;
     128                 :            :         case 0xfb : /*End Group*/
     129                 :          0 :             mpOutAct->EndGroup();
     130                 :          0 :         break;
     131                 :          0 :         case 0xfa : /*Begin Patch */break;
     132                 :          0 :         case 0xf9 : /*Begin Patch */break;
     133                 :          0 :         default: break;
     134                 :            :     }
     135                 :          0 : };
     136                 :            : 
     137                 :            : 
     138                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10