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

Generated by: LCOV version 1.11