LCOV - code coverage report
Current view: top level - filter/source/graphicfilter/icgm - bundles.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 26 0.0 %
Date: 2012-08-25 Functions: 0 32 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                 :            : #ifndef CGM_BUNDLES_HXX_
      30                 :            : #define CGM_BUNDLES_HXX_
      31                 :            : 
      32                 :            : #include <sal/types.h>
      33                 :            : #include "cgmtypes.hxx"
      34                 :            : #include <vcl/salbtype.hxx>
      35                 :            : #include <vector>
      36                 :            : 
      37                 :            : // ---------------------------------------------------------------
      38                 :            : 
      39                 :          0 : class Bundle
      40                 :            : {
      41                 :            : 
      42                 :            :     long                mnBundleIndex;
      43                 :            :     sal_uInt32          mnColor;
      44                 :            : 
      45                 :            : public:
      46                 :            :     void                SetColor( sal_uInt32 nColor ) ;
      47                 :            :     sal_uInt32              GetColor() const;
      48                 :          0 :     long                GetIndex() const { return mnBundleIndex; } ;
      49                 :          0 :     void                SetIndex( long nBundleIndex ) { mnBundleIndex = nBundleIndex; } ;
      50                 :            : 
      51                 :          0 :                         Bundle() {};
      52                 :          0 :     virtual Bundle*     Clone() { return new Bundle( *this ); };
      53                 :            :             Bundle&     operator=( Bundle& rBundle );
      54                 :            : 
      55                 :          0 :     virtual             ~Bundle() {} ;
      56                 :            : };
      57                 :            : 
      58                 :            : // ---------------------------------------------------------------
      59                 :            : 
      60                 :          0 : class LineBundle : public Bundle
      61                 :            : {
      62                 :            : public:
      63                 :            : 
      64                 :            :     LineType            eLineType;
      65                 :            :     double              nLineWidth;
      66                 :            : 
      67                 :          0 :                         LineBundle() {};
      68                 :          0 :     virtual Bundle*     Clone() { return new LineBundle( *this ); };
      69                 :            :             LineBundle& operator=( LineBundle& rLineBundle );
      70                 :          0 :     virtual             ~LineBundle() {};
      71                 :            : };
      72                 :            : 
      73                 :            : // ---------------------------------------------------------------
      74                 :            : 
      75                 :          0 : class MarkerBundle : public Bundle
      76                 :            : {
      77                 :            : public:
      78                 :            : 
      79                 :            :     MarkerType          eMarkerType;
      80                 :            :     double              nMarkerSize;
      81                 :            : 
      82                 :          0 :                         MarkerBundle() {};
      83                 :          0 :     virtual Bundle*     Clone() { return new MarkerBundle( *this ); } ;
      84                 :            :             MarkerBundle&   operator=( MarkerBundle& rMarkerBundle );
      85                 :          0 :     virtual             ~MarkerBundle() {};
      86                 :            : };
      87                 :            : 
      88                 :            : // ---------------------------------------------------------------
      89                 :            : 
      90                 :          0 : class EdgeBundle : public Bundle
      91                 :            : {
      92                 :            : public:
      93                 :            : 
      94                 :            :     EdgeType            eEdgeType;
      95                 :            :     double              nEdgeWidth;
      96                 :            : 
      97                 :          0 :                         EdgeBundle() {};
      98                 :          0 :     virtual Bundle*     Clone() { return new EdgeBundle( *this ); } ;
      99                 :            :             EdgeBundle& operator=( EdgeBundle& rEdgeBundle );
     100                 :          0 :     virtual             ~EdgeBundle() {};
     101                 :            : };
     102                 :            : 
     103                 :            : // ---------------------------------------------------------------
     104                 :            : 
     105                 :          0 : class TextBundle : public Bundle
     106                 :            : {
     107                 :            : public:
     108                 :            : 
     109                 :            :     sal_uInt32              nTextFontIndex;
     110                 :            :     TextPrecision       eTextPrecision;
     111                 :            :     double              nCharacterExpansion;
     112                 :            :     double              nCharacterSpacing;
     113                 :            : 
     114                 :          0 :                         TextBundle() {};
     115                 :          0 :     virtual Bundle*     Clone() { return new TextBundle( *this ); } ;
     116                 :            :             TextBundle& operator=( TextBundle& rTextBundle );
     117                 :          0 :     virtual             ~TextBundle() {};
     118                 :            : };
     119                 :            : 
     120                 :            : // ---------------------------------------------------------------
     121                 :            : 
     122                 :          0 : class FillBundle : public Bundle
     123                 :            : {
     124                 :            : public:
     125                 :            : 
     126                 :            :     FillInteriorStyle   eFillInteriorStyle;
     127                 :            :     long                nFillPatternIndex;
     128                 :            :     long                nFillHatchIndex;
     129                 :            : 
     130                 :          0 :                         FillBundle() {};
     131                 :          0 :     virtual Bundle*     Clone() { return new FillBundle( *this ); } ;
     132                 :            :             FillBundle& operator=( FillBundle& rFillBundle );
     133                 :          0 :     virtual             ~FillBundle() {};
     134                 :            : };
     135                 :            : 
     136                 :            : 
     137                 :            : // ---------------------------------------------------------------
     138                 :            : 
     139                 :            : class FontEntry
     140                 :            : {
     141                 :            : public:
     142                 :            :     sal_Int8*               pFontName;
     143                 :            :     CharSetType         eCharSetType;
     144                 :            :     sal_Int8*               pCharSetValue;
     145                 :            :     sal_uInt32              nFontType;          // bit 0 = 1 -> Italic,
     146                 :            :                                             // bit 1 = 1 -> Bold
     147                 :            : 
     148                 :            :                         FontEntry();
     149                 :            :     FontEntry*          Clone() { return new FontEntry( *this ); } ;
     150                 :            :                         ~FontEntry();
     151                 :            : };
     152                 :            : 
     153                 :            : // ---------------------------------------------------------------
     154                 :            : 
     155                 :            : typedef ::std::vector< FontEntry* > FontEntryList;
     156                 :            : 
     157                 :            : class CGMFList
     158                 :            : {
     159                 :            :     sal_uInt32      nFontNameCount;
     160                 :            :     sal_uInt32      nCharSetCount;
     161                 :            :     FontEntryList   aFontEntryList;
     162                 :            :     void            ImplDeleteList();
     163                 :            : 
     164                 :            : public:
     165                 :            :                     CGMFList();
     166                 :            :                     ~CGMFList();
     167                 :            : 
     168                 :            :     sal_uInt32      nFontsAvailable;
     169                 :            :     FontEntry*      GetFontEntry( sal_uInt32 );
     170                 :            :     void            InsertName( sal_uInt8* pSource, sal_uInt32 nSize );
     171                 :            :     void            InsertCharSet( CharSetType, sal_uInt8* pSource, sal_uInt32 nSize );
     172                 :            :     CGMFList&       operator=( CGMFList& rFontList );
     173                 :            : };
     174                 :            : 
     175                 :            : #endif
     176                 :            : 
     177                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10