28 #include <bitmaps.hlst>
61 return pToolBoxLineStyleControl;
66 LinePropertyPanelBase::LinePropertyPanelBase(
68 const uno::Reference<css::frame::XFrame>& rxFrame)
69 :
PanelLayout(pParent,
"LinePropertyPanel",
"svx/ui/sidebarline.ui"),
70 mxTBColor(m_xBuilder->weld_toolbar(
"color")),
72 mxLineStyleTB(m_xBuilder->weld_toolbar(
"linestyle")),
75 mxFTWidth(m_xBuilder->weld_label(
"widthlabel")),
76 mxTBWidth(m_xBuilder->weld_toolbar(
"width")),
77 mxFTTransparency(m_xBuilder->weld_label(
"translabel")),
78 mxMFTransparent(m_xBuilder->weld_metric_spin_button(
"linetransparency",
FieldUnit::
PERCENT)),
79 mxFTEdgeStyle(m_xBuilder->weld_label(
"cornerlabel")),
80 mxLBEdgeStyle(m_xBuilder->weld_combo_box(
"edgestyle")),
81 mxFTCapStyle(m_xBuilder->weld_label(
"caplabel")),
82 mxLBCapStyle(m_xBuilder->weld_combo_box(
"linecapstyle")),
83 mxGridLineProps(m_xBuilder->weld_widget(
"lineproperties")),
84 mxBoxArrowProps(m_xBuilder->weld_widget(
"arrowproperties")),
89 maIMGNone(BMP_NONE_ICON),
90 mbWidthValuable(true),
91 mbArrowSupported(true),
92 mbNoneLineStyle(
false)
186 if (
const XLineWidthItem* pItem = dynamic_cast<const XLineWidthItem*>(pState))
215 if (
const XLineJointItem* pItem = dynamic_cast<const XLineJointItem*>(pState))
217 sal_Int32 nEntryPos(0);
219 switch(pItem->GetValue())
221 case drawing::LineJoint_ROUND:
226 case drawing::LineJoint_NONE:
231 case drawing::LineJoint_MIDDLE:
232 case drawing::LineJoint_MITER:
237 case drawing::LineJoint_BEVEL:
274 if (
const XLineCapItem* pItem = dynamic_cast<const XLineCapItem*>(pState))
276 sal_Int32 nEntryPos(0);
278 switch(pItem->GetValue())
280 case drawing::LineCap_BUTT:
285 case drawing::LineCap_ROUND:
290 case drawing::LineCap_SQUARE:
313 const sal_Int32
nPos(mxLBEdgeStyle->get_active());
315 if (
nPos == -1 || !mxLBEdgeStyle->get_value_changed_from_saved())
318 std::unique_ptr<XLineJointItem> pItem;
344 setLineJoint(pItem.get());
349 const sal_Int32
nPos(mxLBCapStyle->get_active());
351 if (!(
nPos != -1 && mxLBCapStyle->get_value_changed_from_saved()))
354 std::unique_ptr<XLineCapItem> pItem;
375 setLineCap(pItem.get());
390 sal_uInt16 nVal =
static_cast<sal_uInt16
>(mxMFTransparent->get_value(FieldUnit::PERCENT));
393 setLineTransparency(aItem);
css::uno::Reference< css::linguistic2::XProofreadingIterator > get(css::uno::Reference< css::uno::XComponentContext > const &context)
#define LINK(Instance, Class, Member)
SAL_WARN_UNUSED_RESULT Point LogicToLogic(const Point &rPtSource, const MapMode *pMapModeSource, const MapMode *pMapModeDest) const
constexpr OUStringLiteral PERCENT(u"Percent")
Reference< XController > xController
constexpr OStringLiteral SELECTWIDTH
bool m_bDetectedRangeSegmentation false