LCOV - code coverage report
Current view: top level - include/drawinglayer/primitive2d - clippedborderlineprimitive2d.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 1 0.0 %
Date: 2014-04-14 Functions: 0 2 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             : #ifndef INCLUDED_DRAWINGLAYER_PRIMITIVE2D_CLIPPEDBORDERLINEPRIMITIVE2D_HXX
      11             : #define INCLUDED_DRAWINGLAYER_PRIMITIVE2D_CLIPPEDBORDERLINEPRIMITIVE2D_HXX
      12             : 
      13             : #include <drawinglayer/drawinglayerdllapi.h>
      14             : 
      15             : #include <drawinglayer/primitive2d/borderlineprimitive2d.hxx>
      16             : #include <basegfx/polygon/b2dpolypolygon.hxx>
      17             : #include <basegfx/polygon/b2dpolygon.hxx>
      18             : 
      19             : 
      20             : namespace drawinglayer
      21             : {
      22             :     namespace primitive2d
      23             :     {
      24             :         /** BorderLinePrimitive2D clipped by the intersection with a provided
      25             :             polygon.
      26             :          */
      27           0 :         class DRAWINGLAYER_DLLPUBLIC ClippedBorderLinePrimitive2D : public BorderLinePrimitive2D
      28             :         {
      29             :         private:
      30             :             const basegfx::B2DPolygon maIntersection;
      31             : 
      32             :         protected:
      33             :             virtual basegfx::B2DPolyPolygon getClipPolygon(
      34             :                     const geometry::ViewInformation2D& rViewInformation) const SAL_OVERRIDE;
      35             : 
      36             :         public:
      37             :             /// constructor
      38             :             ClippedBorderLinePrimitive2D(
      39             :                 const basegfx::B2DPoint& rStart,
      40             :                 const basegfx::B2DPoint& rEnd,
      41             :                 double fLeftWidth,
      42             :                 double fDistance,
      43             :                 double fRightWidth,
      44             :                 const basegfx::B2DPolygon& rIntersection,
      45             :                 const basegfx::BColor& rRGBColorRight,
      46             :                 const basegfx::BColor& rRGBColorLeft,
      47             :                 const basegfx::BColor& rRGBColorGap,
      48             :                 bool bHasGapColor,
      49             :                 const short nStyle,
      50             :                 double fPatternScale = 1.0 );
      51             : 
      52             :             /// compare operator
      53             :             virtual bool operator==(const BasePrimitive2D& rPrimitive) const SAL_OVERRIDE;
      54             : 
      55             :             /// provide unique ID
      56             :             DeclPrimitive2DIDBlock()
      57             :         };
      58             :     } // end of namespace primitive2d
      59             : } // end of namespace drawinglayer
      60             : 
      61             : 
      62             : #endif //INCLUDED_DRAWINGLAYER_PRIMITIVE2D_CLIPPEDBORDERLINEPRIMITIVE2D_HXX
      63             : 
      64             : 
      65             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10