LCOV - code coverage report
Current view: top level - sw/inc - fillattributes.hxx (source / functions) Hit Total Coverage
Test: commit e02a6cb2c3e2b23b203b422e4e0680877f232636 Lines: 0 2 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             :  * 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 FILLATTRIBUTES_HXX
      21             : #define FILLATTRIBUTES_HXX
      22             : 
      23             : #include <drawinglayer/attribute/fillgradientattribute.hxx>
      24             : #include <drawinglayer/attribute/sdrfillattribute.hxx>
      25             : #include <drawinglayer/primitive2d/baseprimitive2d.hxx>
      26             : #include <boost/shared_ptr.hpp>
      27             : 
      28             : //////////////////////////////////////////////////////////////////////////////
      29             : 
      30             : class Color;
      31             : class SfxItemSet;
      32             : class FillAttributes
      33             : {
      34             : private:
      35             :     basegfx::B2DRange                                                   maLastPaintRange;
      36             :     basegfx::B2DRange                                                   maLastDefineRange;
      37             :     boost::shared_ptr< drawinglayer::attribute::SdrFillAttribute >      maFillAttribute;
      38             :     boost::shared_ptr< drawinglayer::attribute::FillGradientAttribute > maFillGradientAttribute;
      39             :     drawinglayer::primitive2d::Primitive2DSequence                      maPrimitives;
      40             : 
      41             :     void createPrimitive2DSequence(
      42             :         const basegfx::B2DRange& rPaintRange,
      43             :         const basegfx::B2DRange& rDefineRange);
      44             : 
      45             : protected:
      46             : public:
      47             :     FillAttributes();
      48             :     FillAttributes(const Color& rColor);
      49             :     FillAttributes(const SfxItemSet& rSet);
      50             :     ~FillAttributes();
      51             : 
      52             :     bool isUsed() const;
      53           0 :     bool hasSdrFillAttribute() const { return maFillAttribute.get(); }
      54           0 :     bool hasFillGradientAttribute() const { return maFillGradientAttribute.get(); }
      55             :     bool isTransparent() const;
      56             : 
      57             :     const drawinglayer::attribute::SdrFillAttribute& getFillAttribute() const;
      58             :     const drawinglayer::attribute::FillGradientAttribute& getFillGradientAttribute() const;
      59             :     const drawinglayer::primitive2d::Primitive2DSequence& getPrimitive2DSequence(
      60             :         const basegfx::B2DRange& rPaintRange,
      61             :         const basegfx::B2DRange& rDefineRange) const;
      62             : };
      63             : 
      64             : //////////////////////////////////////////////////////////////////////////////
      65             : 
      66             : typedef boost::shared_ptr< FillAttributes > FillAttributesPtr;
      67             : 
      68             : //////////////////////////////////////////////////////////////////////////////
      69             : 
      70             : #endif // FILLATTRIBUTES_HXX
      71             : 
      72             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.10