LCOV - code coverage report
Current view: top level - drawinglayer/source/primitive2d - clippedborderlineprimitive2d.cxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 0 13 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             : 
      10             : #include <drawinglayer/primitive2d/clippedborderlineprimitive2d.hxx>
      11             : #include <drawinglayer/primitive2d/drawinglayer_primitivetypes2d.hxx>
      12             : 
      13             : namespace drawinglayer
      14             : {
      15             :     namespace primitive2d
      16             :     {
      17           0 :         basegfx::B2DPolyPolygon ClippedBorderLinePrimitive2D::getClipPolygon(
      18             :             SAL_UNUSED_PARAMETER geometry::ViewInformation2D const&) const
      19             :         {
      20           0 :             basegfx::B2DPolyPolygon aPolyPolygon;
      21           0 :             aPolyPolygon.append( maIntersection );
      22           0 :             return aPolyPolygon;
      23             :         }
      24             : 
      25           0 :         ClippedBorderLinePrimitive2D::ClippedBorderLinePrimitive2D(
      26             :             const basegfx::B2DPoint& rStart,
      27             :             const basegfx::B2DPoint& rEnd,
      28             :             double fLeftWidth,
      29             :             double fDistance,
      30             :             double fRightWidth,
      31             :             const basegfx::B2DPolygon& rIntersection,
      32             :             const basegfx::BColor& rRGBColorRight,
      33             :             const basegfx::BColor& rRGBColorLeft,
      34             :             const basegfx::BColor& rRGBColorGap,
      35             :             bool bHasGapColor,
      36             :             const short nStyle,
      37             :             double fPatternScale)
      38             :         :   BorderLinePrimitive2D( rStart, rEnd, fLeftWidth,fDistance, fRightWidth,
      39             :                         0.0, 0.0, 0.0, 0.0, rRGBColorRight, rRGBColorLeft,
      40             :                         rRGBColorGap, bHasGapColor, nStyle, fPatternScale),
      41           0 :             maIntersection( rIntersection )
      42             :         {
      43           0 :         }
      44             : 
      45           0 :         bool ClippedBorderLinePrimitive2D::operator==(const BasePrimitive2D& rPrimitive) const
      46             :         {
      47           0 :             if(BorderLinePrimitive2D::operator==(rPrimitive))
      48             :             {
      49           0 :                 const ClippedBorderLinePrimitive2D& rCompare = static_cast<const ClippedBorderLinePrimitive2D&>(rPrimitive);
      50             : 
      51           0 :                 return maIntersection == rCompare.maIntersection;
      52             :             }
      53             : 
      54           0 :             return false;
      55             :         }
      56             : 
      57             :         // provide unique ID
      58           0 :         ImplPrimitive2DIDBlock(ClippedBorderLinePrimitive2D, PRIMITIVE2D_ID_CLIPPEDBORDERLINEPRIMITIVE2D)
      59             : 
      60             : 
      61             :     } // namespace primitive2d
      62             : } // namespace drawinglayer
      63             : 
      64             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11