diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-02-14 10:51:39 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-02-14 15:36:23 +0100 |
commit | 17231d0b94ef47f602db2a40875e7274d938b15b (patch) | |
tree | 3ab42d16d6775ecb77d82ab29ce27b31532ae54c /svx | |
parent | 54acab919e7c7c5d60fc697bda54278861ac250e (diff) |
split StringToMetric and TextToValue into fieldvalue.hxx
Change-Id: I5d1102f7a50a7a246df9f6de8b7a6df6557eb54d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88682
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/dialog/svxruler.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/svxruler.cxx b/svx/source/dialog/svxruler.cxx index 84792e8058c6..3a0e28473148 100644 --- a/svx/source/dialog/svxruler.cxx +++ b/svx/source/dialog/svxruler.cxx @@ -23,7 +23,7 @@ #include <vcl/builder.hxx> #include <vcl/commandevent.hxx> #include <vcl/event.hxx> -#include <vcl/field.hxx> +#include <vcl/fieldvalues.hxx> #include <vcl/image.hxx> #include <vcl/settings.hxx> #include <vcl/virdev.hxx> @@ -3253,7 +3253,7 @@ void SvxRuler::Notify(SfxBroadcaster&, const SfxHint& rHint) IMPL_LINK( SvxRuler, MenuSelect, Menu *, pMenu, bool ) { /* Handler of the context menus for switching the unit of measurement */ - SetUnit(MetricFormatter::StringToMetric(OUString::fromUtf8(pMenu->GetCurItemIdent()))); + SetUnit(vcl::StringToMetric(OUString::fromUtf8(pMenu->GetCurItemIdent()))); return false; } @@ -3332,7 +3332,7 @@ void SvxRuler::Command( const CommandEvent& rCommandEvent ) { sal_uInt16 nId = aMenu->GetItemId(i - 1); OString sIdent = aMenu->GetItemIdent(nId); - FieldUnit eMenuUnit = MetricFormatter::StringToMetric(OUString::fromUtf8(sIdent)); + FieldUnit eMenuUnit = vcl::StringToMetric(OUString::fromUtf8(sIdent)); aMenu->CheckItem(nId, eMenuUnit == eUnit); if( bReduceMetric ) { |