diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-06 10:59:19 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-06 18:17:02 +0100 |
commit | 97a5da96159f28de0b846de7dd94d2880251e8b3 (patch) | |
tree | 091f4334ff184047376240a4deb5bfb9b0da5b1e /sd/source/ui/app | |
parent | bf2f1adfd2e4725518147657c6b57eb5697a29d5 (diff) |
weld SvxMetricField
split off SdPagesField as its not really a MetricSpinButton and can
be a SpinButton with a custom output function.
while I'm at it use ngettext to provide better plurals for the output.
Change-Id: Idc9ce0513c9fce60c8713c7361fd40f0dbd01f64
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88100
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui/app')
-rw-r--r-- | sd/source/ui/app/sdmod.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sd/source/ui/app/sdmod.cxx b/sd/source/ui/app/sdmod.cxx index 0a10c237501f..077ab4b259bd 100644 --- a/sd/source/ui/app/sdmod.cxx +++ b/sd/source/ui/app/sdmod.cxx @@ -85,6 +85,11 @@ OUString SdResId(const char* pId) return Translate::get(pId, SD_MOD()->GetResLocale()); } +OUString SdResId(const char* pId, int nCardinality) +{ + return Translate::nget(pId, nCardinality, SD_MOD()->GetResLocale()); +} + // Dtor SdModule::~SdModule() { |