LCOV - code coverage report
Current view: top level - libreoffice/solver/unxlngi6.pro/inc/vcl - cvtsvm.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 1 1 100.0 %
Date: 2012-12-27 Functions: 1 1 100.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 _SV_CVTMTF_HXX
      21             : #define _SV_CVTMTF_HXX
      22             : 
      23             : #include <stack>
      24             : #include <vcl/dllapi.h>
      25             : #include <vcl/metaact.hxx>
      26             : #include <vcl/gdimtf.hxx>
      27             : 
      28             : // -----------
      29             : // - Defines -
      30             : // -----------
      31             : 
      32             : #define CONVERT_TO_SVM1                 0x00000001UL
      33             : #define CONVERT_FROM_SVM1               0x00000002UL
      34             : 
      35             : #define GDI_PIXEL_ACTION                1
      36             : #define GDI_POINT_ACTION                2
      37             : #define GDI_LINE_ACTION                 3
      38             : #define GDI_RECT_ACTION                 4
      39             : #define GDI_ELLIPSE_ACTION              5
      40             : #define GDI_ARC_ACTION                  6
      41             : #define GDI_PIE_ACTION                  7
      42             : #define GDI_INVERTRECT_ACTION           8
      43             : #define GDI_HIGHLIGHTRECT_ACTION        9
      44             : #define GDI_POLYLINE_ACTION             10
      45             : #define GDI_POLYGON_ACTION              11
      46             : #define GDI_POLYPOLYGON_ACTION          12
      47             : #define GDI_TEXT_ACTION                 13
      48             : #define GDI_TEXTARRAY_ACTION            14
      49             : #define GDI_STRETCHTEXT_ACTION          15
      50             : #define GDI_ICON_ACTION                 16
      51             : #define GDI_BITMAP_ACTION               17
      52             : #define GDI_BITMAPSCALE_ACTION          18
      53             : #define GDI_PEN_ACTION                  19
      54             : #define GDI_FONT_ACTION                 20
      55             : #define GDI_BACKBRUSH_ACTION            21
      56             : #define GDI_FILLBRUSH_ACTION            22
      57             : #define GDI_MAPMODE_ACTION              23
      58             : #define GDI_CLIPREGION_ACTION           24
      59             : #define GDI_RASTEROP_ACTION             25
      60             : #define GDI_PUSH_ACTION                 26
      61             : #define GDI_POP_ACTION                  27
      62             : #define GDI_MOVECLIPREGION_ACTION       28
      63             : #define GDI_ISECTCLIPREGION_ACTION      29
      64             : #define GDI_MTF_ACTION                  30
      65             : #define GDI_BITMAPSCALEPART_ACTION      32
      66             : #define GDI_GRADIENT_ACTION             33
      67             : 
      68             : #define GDI_TRANSPARENT_COMMENT         1024
      69             : #define GDI_HATCH_COMMENT               1025
      70             : #define GDI_REFPOINT_COMMENT            1026
      71             : #define GDI_TEXTLINECOLOR_COMMENT       1027
      72             : #define GDI_TEXTLINE_COMMENT            1028
      73             : #define GDI_FLOATTRANSPARENT_COMMENT    1029
      74             : #define GDI_GRADIENTEX_COMMENT          1030
      75             : #define GDI_COMMENT_COMMENT             1031
      76             : #define GDI_UNICODE_COMMENT             1032
      77             : 
      78             : #define GDI_LINEJOIN_ACTION             1033
      79             : #define GDI_EXTENDEDPOLYGON_ACTION      1034
      80             : #define GDI_LINEDASHDOT_ACTION          1035
      81             : 
      82             : #define GDI_LINECAP_ACTION              1036
      83             : 
      84             : // ----------------
      85             : // - SVMConverter -
      86             : // ----------------
      87             : 
      88             : class VCL_PLUGIN_PUBLIC SVMConverter
      89             : {
      90             : private:
      91             :     SAL_DLLPRIVATE void             ImplConvertFromSVM1( SvStream& rIStm, GDIMetaFile& rMtf );
      92             :     SAL_DLLPRIVATE void             ImplConvertToSVM1( SvStream& rOStm, GDIMetaFile& rMtf );
      93             :     SAL_DLLPRIVATE sal_uLong            ImplWriteActions( SvStream& rOStm, GDIMetaFile& rMtf,
      94             :                                           VirtualDevice& rSaveVDev, sal_Bool& rRop_0_1,
      95             :                                           Color& rLineCol, ::std::stack<Color*>& rLineColStack,
      96             :                                           rtl_TextEncoding& rActualCharSet );
      97             : 
      98             : public:
      99             :                         SVMConverter( SvStream& rIStm, GDIMetaFile& rMtf, sal_uLong nConvertMode  );
     100           1 :                         ~SVMConverter() {}
     101             : 
     102             : private:
     103             :                         // Not implemented
     104             :                         SVMConverter( const SVMConverter& );
     105             :     SVMConverter&       operator=( const SVMConverter& );
     106             : };
     107             : 
     108             : #endif // _SV_CVTMTF_HXX
     109             : 
     110             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10