LCOV - code coverage report
Current view: top level - filter/source/graphicfilter/icgm - cgm.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 0.0 %
Date: 2014-04-14 Functions: 0 2 0.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             :  * 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             : #ifndef INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_CGM_HXX
      21             : #define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_ICGM_CGM_HXX
      22             : 
      23             : #include <com/sun/star/frame/XModel.hpp>
      24             : 
      25             : #undef CGM_USER_BREAKPOINT
      26             : 
      27             : #define CGM_IMPORT_CGM      0x00000001
      28             : #define CGM_EXPORT_IMPRESS  0x00000100
      29             : #define CGM_EXPORT_META     0x00000200
      30             : 
      31             : #include <rtl/ustring.hxx>
      32             : #include <vector>
      33             : #include "cgmtypes.hxx"
      34             : 
      35             : class   Graphic;
      36             : class   SvStream;
      37             : class   CGMChart;
      38             : class   CGMBitmap;
      39             : class   CGMOutAct;
      40             : class   CGMElements;
      41             : class   GDIMetaFile;
      42             : class   VirtualDevice;
      43             : 
      44             : class CGM
      45             : {
      46             :         friend class CGMChart;
      47             :         friend class CGMBitmap;
      48             :         friend class CGMElements;
      49             :         friend class CGMOutAct;
      50             :         friend class CGMImpressOutAct;
      51             : 
      52             :         double              mnOutdx;                // Ausgabe Groesse in 1/100TH mm
      53             :         double              mnOutdy;                // auf das gemappt wird
      54             :         double              mnVDCXadd;
      55             :         double              mnVDCYadd;
      56             :         double              mnVDCXmul;
      57             :         double              mnVDCYmul;
      58             :         double              mnVDCdx;
      59             :         double              mnVDCdy;
      60             :         double              mnXFraction;
      61             :         double              mnYFraction;
      62             :         sal_Bool                mbAngReverse;           // AngularDirection
      63             : 
      64             :         Graphic*            mpGraphic;              // ifdef CGM_EXPORT_META
      65             : 
      66             :         sal_Bool                mbStatus;
      67             :         sal_Bool                mbMetaFile;
      68             :         sal_Bool                mbIsFinished;
      69             :         sal_Bool                mbPicture;
      70             :         sal_Bool                mbPictureBody;
      71             :         sal_Bool                mbFigure;
      72             :         sal_Bool                mbFirstOutPut;
      73             :         sal_uInt32              mnAct4PostReset;
      74             :         CGMBitmap*          mpBitmapInUse;
      75             :         CGMChart*           mpChart;                // if sal_True->"SHWSLIDEREC"
      76             :                                                     //  otherwise "BEGINPIC" commands
      77             :                                                     // controlls page inserting
      78             :         CGMElements*        pElement;
      79             :         CGMElements*        pCopyOfE;
      80             :         CGMOutAct*          mpOutAct;
      81             :         ::std::vector< sal_uInt8 * > maDefRepList;
      82             :         ::std::vector< sal_uInt32  > maDefRepSizeList;
      83             : 
      84             :         sal_uInt8*              mpSource;       // source buffer that is not increased
      85             :                                             // ( instead use mnParaCount to index )
      86             :         sal_uInt32              mnParaSize;     // actual parameter size which has been done so far
      87             :         sal_uInt32              mnActCount;     // increased by each action
      88             :         sal_uInt8*              mpBuf;          // source stream operation -> then this is allocated for
      89             :                                             //                            the temp input buffer
      90             : 
      91             :         sal_uInt32              mnMode;         // source description
      92             :         sal_uInt32              mnEscape;
      93             :         sal_uInt32              mnElementClass;
      94             :         sal_uInt32              mnElementID;
      95             :         sal_uInt32              mnElementSize;  // full parameter size for the latest action
      96             : 
      97             :         void                ImplCGMInit();
      98             :         sal_uInt32          ImplGetUI16( sal_uInt32 nAlign = 0 );
      99             :         sal_uInt8           ImplGetByte( sal_uInt32 nSource, sal_uInt32 nPrecision );
     100             :         long                ImplGetI( sal_uInt32 nPrecision );
     101             :         sal_uInt32          ImplGetUI( sal_uInt32 nPrecision );
     102             :         void                ImplGetSwitch4( sal_uInt8* pSource, sal_uInt8* pDest );
     103             :         void                ImplGetSwitch8( sal_uInt8* pSource, sal_uInt8* pDest );
     104             :         double              ImplGetFloat( RealPrecision, sal_uInt32 nRealSize );
     105             :         sal_uInt32          ImplGetBitmapColor( sal_Bool bDirectColor = sal_False );
     106             :         void                ImplSetMapMode();
     107             :         void                ImplMapDouble( double& );
     108             :         void                ImplMapX( double& );
     109             :         void                ImplMapY( double& );
     110             :         void                ImplMapPoint( FloatPoint& );
     111             :         inline double       ImplGetIY();
     112             :         inline double       ImplGetFY();
     113             :         inline double       ImplGetIX();
     114             :         inline double       ImplGetFX();
     115             :         sal_uInt32              ImplGetPointSize();
     116             :         void                ImplGetPoint( FloatPoint& rFloatPoint, sal_Bool bMap = sal_False );
     117             :         void                ImplGetRectangle( FloatRect&, sal_Bool bMap = sal_False );
     118             :         void                ImplGetRectangleNS( FloatRect& );
     119             :         void                ImplGetVector( double* );
     120             :         double              ImplGetOrientation( FloatPoint& rCenter, FloatPoint& rPoint );
     121             :         void                ImplSwitchStartEndAngle( double& rStartAngle, double& rEndAngle );
     122             :         sal_Bool                ImplGetEllipse( FloatPoint& rCenter, FloatPoint& rRadius, double& rOrientation );
     123             : 
     124             :         void                ImplDefaultReplacement();
     125             :         void                ImplDoClass();
     126             :         void                ImplDoClass0();
     127             :         void                ImplDoClass1();
     128             :         void                ImplDoClass2();
     129             :         void                ImplDoClass3();
     130             :         void                ImplDoClass4();
     131             :         void                ImplDoClass5();
     132             :         void                ImplDoClass6();
     133             :         void                ImplDoClass7();
     134             :         void                ImplDoClass8();
     135             :         void                ImplDoClass9();
     136             :         void                ImplDoClass15();
     137             : 
     138             :     public:
     139             : 
     140             :                             ~CGM();
     141             : 
     142             :                             CGM( sal_uInt32 nMode, ::com::sun::star::uno::Reference< ::com::sun::star::frame::XModel > & rModel );
     143             : #ifdef CGM_EXPORT_META
     144             :         VirtualDevice*      mpVirDev;
     145             :         GDIMetaFile*        mpGDIMetaFile;
     146             : #endif
     147             :         sal_uInt32              GetBackGroundColor();
     148           0 :         sal_Bool                IsValid() const { return mbStatus; };
     149           0 :         sal_Bool                IsFinished() const { return mbIsFinished; };
     150             :         sal_Bool                Write( SvStream& rIStm );
     151             : 
     152             :         friend SvStream& ReadCGM( SvStream& rOStm, CGM& rCGM );
     153             : 
     154             : };
     155             : #endif
     156             : 
     157             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10