29#include <svx/svxids.hrc>
36 :
WeldToolbarPopup(nullptr, pParent,
"modules/scalc/ui/floatinglinestyle.ui",
"FloatingLineStyle")
37 , maToolButton(pParent, rId)
38 , mpDispatcher(pDispatcher)
40 , mxCellLineStyleValueSetWin(new
weld::CustomWeld(*m_xBuilder,
"linestylevalueset", *mxCellLineStyleValueSet))
41 , mxPushButtonMoreOptions(m_xBuilder->weld_button(
"more"))
63 maStr[1] =
ScResId(STR_BORDER_VERY_THIN).replaceFirst(
"%s", rI18nHelper.
GetNum(50, 2));
67 maStr[5] =
ScResId(STR_BORDER_EXTRA_THICK).replaceFirst(
"%s", rI18nHelper.
GetNum(450, 2));
70 maStr[6] =
ScResId(STR_BORDER_DOUBLE_1).replaceFirst(
"%s", rI18nHelper.
GetNum(110, 2));
71 maStr[7] =
ScResId(STR_BORDER_DOUBLE_1).replaceFirst(
"%s", rI18nHelper.
GetNum(235, 2));
72 maStr[8] =
ScResId(STR_BORDER_DOUBLE_2).replaceFirst(
"%s", rI18nHelper.
GetNum(300, 2));
73 maStr[9] =
ScResId(STR_BORDER_DOUBLE_3).replaceFirst(
"%s", rI18nHelper.
GetNum(305, 2));
74 maStr[10] =
ScResId(STR_BORDER_DOUBLE_4).replaceFirst(
"%s", rI18nHelper.
GetNum(450, 2));
101 const sal_uInt16 iPos(mxCellLineStyleValueSet->GetSelectedItemId());
134 nStyle = SvxBorderLineStyle::DOUBLE;
140 nStyle = SvxBorderLineStyle::DOUBLE;
146 nStyle = SvxBorderLineStyle::DOUBLE;
152 nStyle = SvxBorderLineStyle::DOUBLE;
158 nStyle = SvxBorderLineStyle::DOUBLE;
167 mpDispatcher->ExecuteList(
168 SID_FRAME_LINESTYLE, SfxCallMode::RECORD, { &aLineItem });
171 maToolButton.set_inactive();
176 mpDispatcher->Execute(SID_CELL_FORMAT_BORDER, SfxCallMode::ASYNCHRON);
177 maToolButton.set_inactive();
#define CELL_LINE_STYLE_ENTRIES
const vcl::I18nHelper & GetLocaleI18nHelper() const
static const AllSettings & GetSettings()
static const sal_Int16 VeryThin
static const sal_Int16 ExtraThick
static const sal_Int16 Thin
static const sal_Int16 Medium
static const sal_Int16 Hairline
static const sal_Int16 Thick
void SetLine(const editeng::SvxBorderLine *pNew)
void GuessLinesWidths(SvxBorderLineStyle nStyle, sal_uInt16 nOut, sal_uInt16 nIn=0, sal_uInt16 nDist=0)
OUString GetNum(tools::Long nNumber, sal_uInt16 nDecimals, bool bUseThousandSep=true, bool bTrailingZeros=true) const
#define LINK(Instance, Class, Member)
CAUTION! The following defines must be in the same namespace as the respective type.
OUString ScResId(TranslateId aId)
#define WB_NO_DIRECTSELECT