LCOV - code coverage report
Current view: top level - filter/source/graphicfilter/idxf - dxftblrd.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 4 0.0 %
Date: 2015-06-13 12:38:46 Functions: 0 4 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_IDXF_DXFTBLRD_HXX
      21             : #define INCLUDED_FILTER_SOURCE_GRAPHICFILTER_IDXF_DXFTBLRD_HXX
      22             : 
      23             : #include <dxfgrprd.hxx>
      24             : #include <dxfvec.hxx>
      25             : 
      26             : 
      27             : 
      28             : //------------------- Line Type ----------------------------------------------
      29             : 
      30             : 
      31             : #define DXF_MAX_DASH_COUNT 32
      32             : 
      33           0 : class DXFLType {
      34             : 
      35             : public:
      36             : 
      37             :     DXFLType * pSucc;
      38             : 
      39             :     OString m_sName;                         //  2
      40             :     long nFlags;                             // 70
      41             :     OString m_sDescription;                  //  3
      42             :     long nDashCount;                         // 73
      43             :     double fPatternLength;                   // 40
      44             :     double fDash[DXF_MAX_DASH_COUNT];        // 49,49,...
      45             : 
      46             :     DXFLType();
      47             :     void Read(DXFGroupReader & rDGR);
      48             : };
      49             : 
      50             : 
      51             : 
      52             : //------------------ Layer ---------------------------------------------------
      53             : 
      54             : 
      55           0 : class DXFLayer {
      56             : 
      57             : public:
      58             : 
      59             :     DXFLayer * pSucc;
      60             : 
      61             :     OString m_sName;                      //  2
      62             :     long nFlags;                          // 70
      63             :     long nColor;                          // 62
      64             :     OString m_sLineType;                  //  6
      65             : 
      66             :     DXFLayer();
      67             :     void Read(DXFGroupReader & rDGR);
      68             : };
      69             : 
      70             : 
      71             : 
      72             : //------------------ Style ---------------------------------------------------
      73             : 
      74             : 
      75           0 : class DXFStyle {
      76             : 
      77             : public:
      78             : 
      79             :     DXFStyle * pSucc;
      80             : 
      81             :     OString m_sName;                          //  2
      82             :     long nFlags;                              // 70
      83             :     double fHeight;                           // 40
      84             :     double fWidthFak;                         // 41
      85             :     double fOblAngle;                         // 50
      86             :     long nTextGenFlags;                       // 71
      87             :     double fLastHeightUsed;                   // 42
      88             :     OString m_sPrimFontFile;                  //  3
      89             :     OString m_sBigFontFile;                   //  4
      90             : 
      91             :     DXFStyle();
      92             :     void Read(DXFGroupReader & rDGR);
      93             : };
      94             : 
      95             : 
      96             : 
      97             : //------------------ VPort ---------------------------------------------------
      98             : 
      99             : 
     100           0 : class DXFVPort {
     101             : 
     102             : public:
     103             : 
     104             :     DXFVPort * pSucc;
     105             : 
     106             :     OString m_sName;                  //  2
     107             :     long nFlags;                      // 70
     108             :     double fMinX;                     // 10
     109             :     double fMinY;                     // 20
     110             :     double fMaxX;                     // 11
     111             :     double fMaxY;                     // 21
     112             :     double fCenterX;                  // 12
     113             :     double fCenterY;                  // 22
     114             :     double fSnapBaseX;                // 13
     115             :     double fSnapBaseY;                // 23
     116             :     double fSnapSapcingX;             // 14
     117             :     double fSnapSpacingY;             // 24
     118             :     double fGridX;                    // 15
     119             :     double fGridY;                    // 25
     120             :     DXFVector aDirection;             // 16,26,36
     121             :     DXFVector aTarget;                // 17,27,37
     122             :     double fHeight;                   // 40
     123             :     double fAspectRatio;              // 41
     124             :     double fLensLength;               // 42
     125             :     double fFrontClipPlane;           // 43
     126             :     double fBackClipPlane;            // 44
     127             :     double fTwistAngle;               // 51
     128             :     long nStatus;                     // 68
     129             :     long nID;                         // 69
     130             :     long nMode;                       // 71
     131             :     long nCircleZoomPercent;          // 72
     132             :     long nFastZoom;                   // 73
     133             :     long nUCSICON;                    // 74
     134             :     long nSnap;                       // 75
     135             :     long nGrid;                       // 76
     136             :     long nSnapStyle;                  // 77
     137             :     long nSnapIsopair;                // 78
     138             : 
     139             :     DXFVPort();
     140             :     void Read(DXFGroupReader & rDGR);
     141             : };
     142             : 
     143             : 
     144             : 
     145             : //------------------ Tabellen ------------------------------------------------
     146             : 
     147             : 
     148             : class DXFTables {
     149             : 
     150             : public:
     151             : 
     152             :     DXFLType * pLTypes; // list of line types
     153             :     DXFLayer * pLayers; // list of layers
     154             :     DXFStyle * pStyles; // list of styles
     155             :     DXFVPort * pVPorts; // list of viewports
     156             : 
     157             :     DXFTables();
     158             :     ~DXFTables();
     159             : 
     160             :     void Read(DXFGroupReader & rDGR);
     161             :         // Reads the table until a ENDSEC oder EOF
     162             :         // (Unknown things/tables will be skipped)
     163             : 
     164             :     void Clear();
     165             : 
     166             :     // look for table entries:
     167             :     DXFLType * SearchLType(OString const& rName) const;
     168             :     DXFLayer * SearchLayer(OString const& rName) const;
     169             :     DXFVPort * SearchVPort(OString const& rName) const;
     170             : 
     171             : };
     172             : 
     173             : #endif
     174             : 
     175             : 
     176             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11