28 :
WeldToolbarPopup(rFrame, pParent,
"svx/ui/floatingareastyle.ui",
"FloatingAreaStyle")
29 , mrAreaPropertyPanel(rPanel)
30 , mxCenterGrid(m_xBuilder->weld_widget(
"centergrid"))
31 , mxAngleGrid(m_xBuilder->weld_widget(
"anglegrid"))
32 , mxMtrTrgrCenterX(m_xBuilder->weld_metric_spin_button(
"centerx",
FieldUnit::
PERCENT))
33 , mxMtrTrgrCenterY(m_xBuilder->weld_metric_spin_button(
"centery",
FieldUnit::
PERCENT))
34 , mxMtrTrgrAngle(m_xBuilder->weld_metric_spin_button(
"angle",
FieldUnit::
DEGREE))
35 , mxBtnLeft45(m_xBuilder->weld_toolbar(
"lefttoolbox"))
36 , mxBtnRight45(m_xBuilder->weld_toolbar(
"righttoolbox"))
37 , mxMtrTrgrStartValue(m_xBuilder->weld_metric_spin_button(
"start",
FieldUnit::
PERCENT))
38 , mxMtrTrgrEndValue(m_xBuilder->weld_metric_spin_button(
"end",
FieldUnit::
PERCENT))
39 , mxMtrTrgrBorder(m_xBuilder->weld_metric_spin_button(
"border",
FieldUnit::
PERCENT))
67 &&
static_cast<sal_uInt16
>(((
static_cast<sal_uInt16
>(aStart.
GetRed()) + 1) * 100) / 255)
69 &&
static_cast<sal_uInt16
>(((
static_cast<sal_uInt16
>(aEnd.
GetRed()) + 1) * 100) / 255)
77 aGradient = rGradient;
84 mxMtrTrgrStartValue->set_value(
static_cast<sal_uInt16
>(((
static_cast<sal_uInt16
>(aStart.
GetRed()) + 1) * 100) / 255), FieldUnit::PERCENT);
85 mxMtrTrgrEndValue->set_value(
static_cast<sal_uInt16
>(((
static_cast<sal_uInt16
>(aEnd.
GetRed()) + 1) * 100) / 255), FieldUnit::PERCENT);
105 case css::awt::GradientStyle_LINEAR:
106 case css::awt::GradientStyle_AXIAL:
110 case css::awt::GradientStyle_RADIAL:
114 case css::awt::GradientStyle_ELLIPTICAL:
115 case css::awt::GradientStyle_SQUARE:
116 case css::awt::GradientStyle_RECT:
128 sal_Int16 aMtrValue =
static_cast<sal_Int16
>(
mxMtrTrgrAngle->get_value(FieldUnit::DEGREE));
131 sal_uInt16 nVal = aMtrValue/360;
132 nVal = aMtrValue - nVal*360;
138 aStartBColor.
clamp();
150 aColorStops.emplace_back(0.0, aStartBColor);
151 aColorStops.emplace_back(1.0, aEndBColor);
160 static_cast<sal_uInt16
>(
mxMtrTrgrBorder->get_value(FieldUnit::PERCENT)),
172 ExecuteValueModify();
177 sal_uInt16 nTemp =
static_cast<sal_uInt16
>(mxMtrTrgrAngle->get_value(FieldUnit::DEGREE));
181 mxMtrTrgrAngle->set_value(nTemp, FieldUnit::DEGREE);
182 ExecuteValueModify();
187 sal_uInt16 nTemp =
static_cast<sal_uInt16
>(mxMtrTrgrAngle->get_value(FieldUnit::DEGREE));
191 mxMtrTrgrAngle->set_value(nTemp, FieldUnit::DEGREE);
192 ExecuteValueModify();
const basegfx::BGradient & GetGradientValue() const
sal_uInt16 GetBorder() const
sal_uInt16 GetXOffset() const
const basegfx::BColorStops & GetColorStops() const
Degree10 GetAngle() const
css::awt::GradientStyle GetGradientStyle() const
sal_uInt16 GetYOffset() const
#define LINK(Instance, Class, Member)
constexpr OUStringLiteral PERCENT(u"Percent")