29#include <bitmaps.hlst>
32using namespace css::uno;
62 return pToolBoxLineStyleControl;
69 const uno::Reference<css::frame::XFrame>& rxFrame)
70:
PanelLayout(pParent,
"LinePropertyPanel",
"svx/ui/sidebarline.ui"),
71 mxTBColor(m_xBuilder->weld_toolbar(
"color")),
73 mxLineStyleTB(m_xBuilder->weld_toolbar(
"linestyle")),
76 mxFTWidth(m_xBuilder->weld_label(
"widthlabel")),
77 mxTBWidth(m_xBuilder->weld_toolbar(
"width")),
78 mxFTTransparency(m_xBuilder->weld_label(
"translabel")),
79 mxMFTransparent(m_xBuilder->weld_metric_spin_button(
"linetransparency",
FieldUnit::
PERCENT)),
80 mxFTEdgeStyle(m_xBuilder->weld_label(
"cornerlabel")),
81 mxLBEdgeStyle(m_xBuilder->weld_combo_box(
"edgestyle")),
82 mxFTCapStyle(m_xBuilder->weld_label(
"caplabel")),
83 mxLBCapStyle(m_xBuilder->weld_combo_box(
"linecapstyle")),
84 mxGridLineProps(m_xBuilder->weld_widget(
"lineproperties")),
85 mxBoxArrowProps(m_xBuilder->weld_widget(
"arrowproperties")),
90 maIMGNone(BMP_NONE_ICON),
91 mbWidthValuable(true),
92 mbArrowSupported(true),
93 mbNoneLineStyle(false)
219 sal_Int32 nEntryPos(0);
221 switch(pItem->GetValue())
223 case drawing::LineJoint_ROUND:
228 case drawing::LineJoint_NONE:
233 case drawing::LineJoint_MIDDLE:
234 case drawing::LineJoint_MITER:
239 case drawing::LineJoint_BEVEL:
270 sal_Int32 nEntryPos(0);
272 switch(pItem->GetValue())
274 case drawing::LineCap_BUTT:
279 case drawing::LineCap_ROUND:
284 case drawing::LineCap_SQUARE:
307 const sal_Int32
nPos(mxLBEdgeStyle->get_active());
309 if (
nPos == -1 || !mxLBEdgeStyle->get_value_changed_from_saved())
312 std::unique_ptr<XLineJointItem> pItem;
338 setLineJoint(pItem.get());
343 const sal_Int32
nPos(mxLBCapStyle->get_active());
345 if (!(
nPos != -1 && mxLBCapStyle->get_value_changed_from_saved()))
348 std::unique_ptr<XLineCapItem> pItem;
369 setLineCap(pItem.get());
384 sal_uInt16 nVal =
static_cast<sal_uInt16
>(mxMFTransparent->get_value(FieldUnit::PERCENT));
387 setLineTransparency(aItem);
constexpr OUStringLiteral SELECTWIDTH
css::uno::Reference< css::graphic::XGraphic > GetXGraphic() const
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
static BitmapEx CreateBitmapForXDash(const XDash *pDash, double fLineThickness)
#define LINK(Instance, Class, Member)
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
Reference< XController > xController
constexpr OUStringLiteral PERCENT(u"Percent")