39 const measurement* pResources;
43 pResources = RID_SVXSTRARY_SPACING_INCH;
47 pResources = RID_SVXSTRARY_MARGINS_INCH;
51 pResources = RID_SVXSTRARY_SPACING_CM;
57 pResources = RID_SVXSTRARY_MARGINS_CM;
61 while (pResources->key)
63 OUString sMeasurement = rLocaleData.
getNum(pResources->human, 2,
true,
false) +
sSuffix;
64 OUString
aStr =
SvxResId(pResources->key).replaceFirst(
"%1", sMeasurement);
65 sal_uInt32 nData = pResources->twips;
66 rComboBox.
append(OUString::number(nData),
aStr);
const LocaleDataWrapper & GetLocaleDataWrapper() const
static const AllSettings & GetSettings()
OUString getNum(sal_Int64 nNumber, sal_uInt16 nDecimals, bool bUseThousandSep=true, bool bTrailingZeros=true) const
void append(const weld::ComboBoxEntry &rItem)
virtual void set_active(int pos)=0
virtual int get_active() const=0
OUString SvxResId(TranslateId aId)
Custom Widget ListBox to hold entries for Spacing & Margin settings of Header/Footer.
void Fill(SpacingType eType, weld::ComboBox &rComboBox)