LCOV - code coverage report
Current view: top level - libreoffice/svx/inc/svx/sdr/overlay - overlayhatchrect.hxx (source / functions) Hit Total Coverage
Test: libreoffice_filtered.info Lines: 0 6 0.0 %
Date: 2012-12-17 Functions: 0 7 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 _SDR_OVERLAY_OVERLAYHATCHRECT_HXX
      21             : #define _SDR_OVERLAY_OVERLAYHATCHRECT_HXX
      22             : 
      23             : #include <svx/sdr/overlay/overlayobject.hxx>
      24             : #include <vcl/hatch.hxx>
      25             : #include <tools/gen.hxx>
      26             : 
      27             : //////////////////////////////////////////////////////////////////////////////
      28             : 
      29             : class PolyPolygon;
      30             : 
      31             : namespace sdr
      32             : {
      33             :     namespace overlay
      34             :     {
      35           0 :         class OverlayHatchRect : public OverlayObjectWithBasePosition
      36             :         {
      37             :             // geometric definitions
      38             :             basegfx::B2DPoint               maSecondPosition;
      39             :             const double                    mfDiscreteGrow;
      40             :             const double                    mfDiscreteShrink;
      41             :             const double                    mfHatchRotation;
      42             :             const double                    mfRotation;
      43             : 
      44             :             // geometry creation for OverlayObject
      45             :             virtual drawinglayer::primitive2d::Primitive2DSequence createOverlayObjectPrimitive2DSequence();
      46             : 
      47             :         public:
      48             :             OverlayHatchRect(
      49             :                 const basegfx::B2DPoint& rBasePosition,
      50             :                 const basegfx::B2DPoint& rSecondPosition,
      51             :                 const Color& rHatchColor,
      52             :                 double fDiscreteGrow,
      53             :                 double fDiscreteShrink,
      54             :                 double fHatchRotation,
      55             :                 double fRotation);
      56             : 
      57           0 :             const basegfx::B2DPoint& getSecondPosition() const { return maSecondPosition; }
      58             : 
      59             :             // data read access
      60           0 :             double getDiscreteGrow() const { return mfDiscreteGrow; }
      61           0 :             double getDiscreteShrink() const { return mfDiscreteShrink; }
      62           0 :             double getHatchRotation() const { return mfHatchRotation; }
      63           0 :             double getRotation() const { return mfRotation; }
      64             :         };
      65             :     } // end of namespace overlay
      66             : } // end of namespace sdr
      67             : 
      68             : //////////////////////////////////////////////////////////////////////////////
      69             : 
      70             : #endif //_SDR_OVERLAY_OVERLAYHATCHRECT_HXX
      71             : 
      72             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10