LCOV - code coverage report
Current view: top level - tools/inc - poly.h (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 4 4 100.0 %
Date: 2012-08-25 Functions: 2 2 100.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                 :            :  * 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                 :            : #ifndef _POLY_H
      20                 :            : #define _POLY_H
      21                 :            : 
      22                 :            : #include <tools/gen.hxx>
      23                 :            : 
      24                 :    1354630 : class ImplPolygonData
      25                 :            : {
      26                 :            : public:
      27                 :            :     Point*          mpPointAry;
      28                 :            :     sal_uInt8*           mpFlagAry;
      29                 :            :     sal_uInt16          mnPoints;
      30                 :            :     sal_uIntPtr           mnRefCount;
      31                 :            : };
      32                 :            : 
      33                 :            : class ImplPolygon  : public ImplPolygonData
      34                 :            : {
      35                 :            : public:
      36                 :            :                     ImplPolygon( sal_uInt16 nInitSize, sal_Bool bFlags = sal_False );
      37                 :            :                     ImplPolygon( sal_uInt16 nPoints, const Point* pPtAry, const sal_uInt8* pInitFlags = NULL );
      38                 :            :                     ImplPolygon( const ImplPolygon& rImplPoly );
      39                 :            :                     ~ImplPolygon();
      40                 :            : 
      41                 :            :     void            ImplSetSize( sal_uInt16 nSize, sal_Bool bResize = sal_True );
      42                 :            :     void            ImplCreateFlagArray();
      43                 :            :     void            ImplSplit( sal_uInt16 nPos, sal_uInt16 nSpace, ImplPolygon* pInitPoly = NULL );
      44                 :            : };
      45                 :            : 
      46                 :            : #define MAX_POLYGONS        ((sal_uInt16)0x3FF0)
      47                 :            : 
      48                 :            : class Polygon;
      49                 :            : typedef Polygon* SVPPOLYGON;
      50                 :            : 
      51                 :            : class ImplPolyPolygon
      52                 :            : {
      53                 :            : public:
      54                 :            :     SVPPOLYGON*     mpPolyAry;
      55                 :            :     sal_uIntPtr           mnRefCount;
      56                 :            :     sal_uInt16          mnCount;
      57                 :            :     sal_uInt16          mnSize;
      58                 :            :     sal_uInt16          mnResize;
      59                 :            : 
      60                 :      34999 :                     ImplPolyPolygon( sal_uInt16 nInitSize, sal_uInt16 nResize )
      61                 :      34999 :                         { mpPolyAry = NULL; mnCount = 0; mnRefCount = 1;
      62                 :      34999 :                           mnSize = nInitSize; mnResize = nResize; }
      63                 :            :                     ImplPolyPolygon( sal_uInt16 nInitSize );
      64                 :            :                     ImplPolyPolygon( const ImplPolyPolygon& rImplPolyPoly );
      65                 :            :                     ~ImplPolyPolygon();
      66                 :            : };
      67                 :            : 
      68                 :            : #endif
      69                 :            : 
      70                 :            : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10