sdrformtextattribute.cxx (f6e50924) sdrformtextattribute.cxx (5aaf853b)
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 28 unchanged lines hidden (view full) ---

37#include <svx/xftmrit.hxx>
38#include <svx/xftouit.hxx>
39#include <svx/sdshtitm.hxx>
40#include <svx/xlntrit.hxx>
41#include <svx/sdshcitm.hxx>
42#include <svx/xlnclit.hxx>
43#include <svx/xlnwtit.hxx>
44#include <svx/xlinjoit.hxx>
1/**************************************************************
2 *
3 * Licensed to the Apache Software Foundation (ASF) under one
4 * or more contributor license agreements. See the NOTICE file
5 * distributed with this work for additional information
6 * regarding copyright ownership. The ASF licenses this file
7 * to you under the Apache License, Version 2.0 (the
8 * "License"); you may not use this file except in compliance

--- 28 unchanged lines hidden (view full) ---

37#include <svx/xftmrit.hxx>
38#include <svx/xftouit.hxx>
39#include <svx/sdshtitm.hxx>
40#include <svx/xlntrit.hxx>
41#include <svx/sdshcitm.hxx>
42#include <svx/xlnclit.hxx>
43#include <svx/xlnwtit.hxx>
44#include <svx/xlinjoit.hxx>
45#include <svx/xlncapit.hxx>
45#include <svx/xlineit0.hxx>
46#include <svx/xdash.hxx>
47#include <svx/xlndsit.hxx>
48#include <drawinglayer/attribute/lineattribute.hxx>
49#include <drawinglayer/attribute/strokeattribute.hxx>
50#include <svx/sdr/attribute/sdrformtextoutlineattribute.hxx>
46#include <svx/xlineit0.hxx>
47#include <svx/xdash.hxx>
48#include <svx/xlndsit.hxx>
49#include <drawinglayer/attribute/lineattribute.hxx>
50#include <drawinglayer/attribute/strokeattribute.hxx>
51#include <svx/sdr/attribute/sdrformtextoutlineattribute.hxx>
52#include <com/sun/star/drawing/LineCap.hpp>
51
52//////////////////////////////////////////////////////////////////////////////
53// helper to get line, stroke and transparence attributes from SfxItemSet
54
55namespace
56{
57 basegfx::B2DLineJoin impGetB2DLineJoin(XLineJoint eLineJoint)
58 {

--- 50 unchanged lines hidden (view full) ---

109 else
110 {
111 const Color aLineColor(((XLineColorItem&)(rSet.Get(XATTR_LINECOLOR))).GetColorValue());
112 aColorAttribute = aLineColor.getBColor();
113 }
114
115 const sal_uInt32 nLineWidth = ((const XLineWidthItem&)(rSet.Get(XATTR_LINEWIDTH))).GetValue();
116 const XLineJoint eLineJoint = ((const XLineJointItem&)(rSet.Get(XATTR_LINEJOINT))).GetValue();
53
54//////////////////////////////////////////////////////////////////////////////
55// helper to get line, stroke and transparence attributes from SfxItemSet
56
57namespace
58{
59 basegfx::B2DLineJoin impGetB2DLineJoin(XLineJoint eLineJoint)
60 {

--- 50 unchanged lines hidden (view full) ---

111 else
112 {
113 const Color aLineColor(((XLineColorItem&)(rSet.Get(XATTR_LINECOLOR))).GetColorValue());
114 aColorAttribute = aLineColor.getBColor();
115 }
116
117 const sal_uInt32 nLineWidth = ((const XLineWidthItem&)(rSet.Get(XATTR_LINEWIDTH))).GetValue();
118 const XLineJoint eLineJoint = ((const XLineJointItem&)(rSet.Get(XATTR_LINEJOINT))).GetValue();
119 const com::sun::star::drawing::LineCap eLineCap = ((const XLineCapItem&)(rSet.Get(XATTR_LINECAP))).GetValue();
117
120
118 return drawinglayer::attribute::LineAttribute(aColorAttribute, (double)nLineWidth, impGetB2DLineJoin(eLineJoint));
121 return drawinglayer::attribute::LineAttribute(
122 aColorAttribute,
123 (double)nLineWidth,
124 impGetB2DLineJoin(eLineJoint),
125 eLineCap);
119 }
120
121 drawinglayer::attribute::StrokeAttribute impGetStrokeAttribute(const SfxItemSet& rSet)
122 {
123 const XLineStyle eLineStyle = ((XLineStyleItem&)(rSet.Get(XATTR_LINESTYLE))).GetValue();
124 double fFullDotDashLen(0.0);
125 ::std::vector< double > aDotDashArray;
126

--- 293 unchanged lines hidden ---
126 }
127
128 drawinglayer::attribute::StrokeAttribute impGetStrokeAttribute(const SfxItemSet& rSet)
129 {
130 const XLineStyle eLineStyle = ((XLineStyleItem&)(rSet.Get(XATTR_LINESTYLE))).GetValue();
131 double fFullDotDashLen(0.0);
132 ::std::vector< double > aDotDashArray;
133

--- 293 unchanged lines hidden ---