LCOV - code coverage report
Current view: top level - include/oox/drawingml - lineproperties.hxx (source / functions) Hit Total Coverage
Test: commit c8344322a7af75b84dd3ca8f78b05543a976dfd5 Lines: 2 2 100.0 %
Date: 2015-06-13 12:38:46 Functions: 5 5 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             : 
      20             : #ifndef INCLUDED_OOX_DRAWINGML_LINEPROPERTIES_HXX
      21             : #define INCLUDED_OOX_DRAWINGML_LINEPROPERTIES_HXX
      22             : 
      23             : #include <com/sun/star/drawing/LineJoint.hpp>
      24             : #include <com/sun/star/drawing/LineStyle.hpp>
      25             : #include <oox/drawingml/fillproperties.hxx>
      26             : 
      27             : namespace oox {
      28             : namespace drawingml {
      29             : 
      30       79954 : struct LineArrowProperties
      31             : {
      32             :     OptValue< sal_Int32 > moArrowType;
      33             :     OptValue< sal_Int32 > moArrowWidth;
      34             :     OptValue< sal_Int32 > moArrowLength;
      35             : 
      36             :     /** Overwrites all members that are explicitly set in rSourceProps. */
      37             :     void                assignUsed( const LineArrowProperties& rSourceProps );
      38             : };
      39             : 
      40       84154 : struct OOX_DLLPUBLIC LineProperties
      41             : {
      42             :     typedef ::std::pair< sal_Int32, sal_Int32 > DashStop;
      43             :     typedef ::std::vector< DashStop >           DashStopVector;
      44             : 
      45             :     LineArrowProperties maStartArrow;       /// Start line arrow style.
      46             :     LineArrowProperties maEndArrow;         /// End line arrow style.
      47             :     FillProperties      maLineFill;         /// Line fill (solid, gradient, ...).
      48             :     DashStopVector      maCustomDash;       /// User-defined line dash style.
      49             :     OptValue< sal_Int32 > moLineWidth;      /// Line width (EMUs).
      50             :     OptValue< sal_Int32 > moPresetDash;     /// Preset dash (OOXML token).
      51             :     OptValue< sal_Int32 > moLineCompound;   /// Line compound type (OOXML token).
      52             :     OptValue< sal_Int32 > moLineCap;        /// Line cap (OOXML token).
      53             :     OptValue< sal_Int32 > moLineJoint;      /// Line joint type (OOXML token).
      54             : 
      55             :     /** Overwrites all members that are explicitly set in rSourceProps. */
      56             :     void                assignUsed( const LineProperties& rSourceProps );
      57             : 
      58             :     /** Writes the properties to the passed property map. */
      59             :     void                pushToPropMap(
      60             :                             ShapePropertyMap& rPropMap,
      61             :                             const GraphicHelper& rGraphicHelper,
      62             :                             sal_Int32 nPhClr = API_RGB_TRANSPARENT ) const;
      63             : 
      64             :     /** Calculates the line style attribute from the internal state of the object */
      65             :     ::com::sun::star::drawing::LineStyle  getLineStyle() const;
      66             :     /** Calculates the line joint attribute from the internal state of the object */
      67             :     ::com::sun::star::drawing::LineJoint  getLineJoint() const;
      68             :     /** Calculates the line width attribute from the internal state of the object */
      69             :     sal_Int32           getLineWidth() const;
      70             : };
      71             : 
      72             : } // namespace drawingml
      73             : } // namespace oox
      74             : 
      75             : #endif
      76             : 
      77             : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Generated by: LCOV version 1.11