LibreOffice Module oox (master)  1
lineproperties.hxx
Go to the documentation of this file.
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_INC_DRAWINGML_LINEPROPERTIES_HXX
21 #define INCLUDED_OOX_INC_DRAWINGML_LINEPROPERTIES_HXX
22 
23 #include <utility>
24 #include <vector>
25 
26 #include <com/sun/star/drawing/LineCap.hpp>
27 #include <com/sun/star/drawing/LineJoint.hpp>
28 #include <com/sun/star/drawing/LineStyle.hpp>
29 #include <oox/helper/helper.hxx>
30 #include <sal/types.h>
31 
33 
34 namespace oox { class GraphicHelper; }
35 
36 namespace oox::drawingml {
37 
38 class ShapePropertyMap;
39 
41 {
45 
47  void assignUsed( const LineArrowProperties& rSourceProps );
48 };
49 
51 {
52  typedef ::std::pair< sal_Int32, sal_Int32 > DashStop;
53  typedef ::std::vector< DashStop > DashStopVector;
54 
58  DashStopVector maCustomDash;
64 
66  void assignUsed( const LineProperties& rSourceProps );
67 
69  void pushToPropMap(
70  ShapePropertyMap& rPropMap,
71  const GraphicHelper& rGraphicHelper,
72  ::Color nPhClr = API_RGB_TRANSPARENT ) const;
73 
75  css::drawing::LineStyle getLineStyle() const;
77  css::drawing::LineCap getLineCap() const;
79  css::drawing::LineJoint getLineJoint() const;
81  sal_Int32 getLineWidth() const;
82 };
83 
84 } // namespace oox::drawingml
85 
86 #endif
87 
88 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
Provides helper functions for colors, device measurement conversion, graphics, and graphic objects ha...
const ::Color API_RGB_TRANSPARENT(ColorTransparency, 0xffffffff)
Transparent color for API calls.
::std::pair< sal_Int32, sal_Int32 > DashStop
OptValue< sal_Int32 > moLineCompound
Preset dash (OOXML token).
sal_Int32 getLineWidth() const
Calculates the line width attribute from the internal state of the object.
OptValue< sal_Int32 > moPresetDash
Line width (EMUs).
css::drawing::LineJoint getLineJoint() const
Calculates the line joint attribute from the internal state of the object.
OptValue< sal_Int32 > moLineCap
Line compound type (OOXML token).
void assignUsed(const LineArrowProperties &rSourceProps)
Overwrites all members that are explicitly set in rSourceProps.
LineArrowProperties maStartArrow
LineArrowProperties maEndArrow
Start line arrow style.
OptValue< sal_Int32 > moLineJoint
Line cap (OOXML token).
css::drawing::LineStyle getLineStyle() const
Calculates the line style attribute from the internal state of the object.
void pushToPropMap(ShapePropertyMap &rPropMap, const GraphicHelper &rGraphicHelper,::Color nPhClr=API_RGB_TRANSPARENT) const
Writes the properties to the passed property map.
::std::vector< DashStop > DashStopVector
FillProperties maLineFill
End line arrow style.
css::drawing::LineCap getLineCap() const
Calculates the line cap attribute from the internal state of the object.
void assignUsed(const LineProperties &rSourceProps)
Line joint type (OOXML token).
OptValue< sal_Int32 > moLineWidth
User-defined line dash style.
DashStopVector maCustomDash
Line fill (solid, gradient, ...).