20#include <svx/svxids.hrc>
24#include <editeng/editids.hrc>
31 :
WeldToolbarPopup(pControl->getFrameInterface(), pParent,
"svx/ui/textunderlinecontrol.ui",
"TextUnderlineControl")
32 , mxNone(m_xBuilder->weld_button(
"none"))
33 , mxSingle(m_xBuilder->weld_button(
"single"))
34 , mxDouble(m_xBuilder->weld_button(
"double"))
35 , mxBold(m_xBuilder->weld_button(
"bold"))
36 , mxDot(m_xBuilder->weld_button(
"dot"))
37 , mxDotBold(m_xBuilder->weld_button(
"dotbold"))
38 , mxDash(m_xBuilder->weld_button(
"dash"))
39 , mxDashLong(m_xBuilder->weld_button(
"dashlong"))
40 , mxDashDot(m_xBuilder->weld_button(
"dashdot"))
41 , mxDashDotDot(m_xBuilder->weld_button(
"dashdotdot"))
42 , mxWave(m_xBuilder->weld_button(
"wave"))
43 , mxMoreOptions(m_xBuilder->weld_button(
"moreoptions"))
49 mxNone->connect_clicked(aLink);
52 mxBold->connect_clicked(aLink);
53 mxDot->connect_clicked(aLink);
55 mxDash->connect_clicked(aLink);
59 mxWave->connect_clicked(aLink);
78 else if (&rButton ==
mxBold.get())
80 else if (&rButton ==
mxDot.get())
84 else if (&rButton ==
mxDash.get())
92 else if (&rButton ==
mxWave.get())
100Color GetUnderlineColor()
105 pViewFrm->GetBindings().GetDispatcher()->QueryState(SID_ATTR_CHAR_UNDERLINE, pUnderlineItem);
120 if (&rButton == mxMoreOptions.get())
123 pDisp->
Execute(SID_CHAR_DLG_EFFECT, SfxCallMode::ASYNCHRON);
130 aLineItem.
SetColor(GetUnderlineColor());
132 pViewFrm->GetBindings().GetDispatcher()->ExecuteList(SID_ATTR_CHAR_UNDERLINE,
133 SfxCallMode::RECORD, { &aLineItem });
136 mxControl->EndPopupMode();
SfxDispatcher * GetDispatcher() const
const SfxPoolItem * Execute(sal_uInt16 nSlot, SfxCallMode nCall=SfxCallMode::SLOT, const SfxPoolItem **pArgs=nullptr, sal_uInt16 nModi=0, const SfxPoolItem **pInternalArgs=nullptr)
SfxBindings * GetBindings() const
static SAL_WARN_UNUSED_RESULT SfxViewFrame * Current()
const Color & GetColor() const
void SetColor(const Color &rColor)
std::unique_ptr< weld::Button > mxDashDotDot
std::unique_ptr< weld::Button > mxDouble
std::unique_ptr< weld::Button > mxSingle
std::unique_ptr< weld::Button > mxDot
std::unique_ptr< weld::Button > mxBold
FontLineStyle getLineStyle(const weld::Button &rButton) const
std::unique_ptr< weld::Button > mxDash
std::unique_ptr< weld::Button > mxWave
std::unique_ptr< weld::Button > mxDashLong
virtual void GrabFocus() override
std::unique_ptr< weld::Button > mxDashDot
std::unique_ptr< weld::Button > mxDotBold
virtual ~TextUnderlineControl() override
std::unique_ptr< weld::Button > mxNone
TextUnderlineControl(TextUnderlinePopup *pControl, weld::Widget *pParent)
std::unique_ptr< weld::Button > mxMoreOptions
constexpr ::Color COL_AUTO(ColorTransparency, 0xFF, 0xFF, 0xFF, 0xFF)
constexpr OUStringLiteral HID_UNDERLINE_BTN
#define LINK(Instance, Class, Member)
IMPL_LINK(HangulHanjaConversionDialog, ClickByCharacterHdl, weld::Toggleable &, rBox, void)