From 17231d0b94ef47f602db2a40875e7274d938b15b Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Fri, 14 Feb 2020 10:51:39 +0000 Subject: split StringToMetric and TextToValue into fieldvalue.hxx MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I5d1102f7a50a7a246df9f6de8b7a6df6557eb54d Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88682 Tested-by: Jenkins Reviewed-by: Caolán McNamara --- svx/source/dialog/svxruler.cxx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'svx') 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 #include #include -#include +#include #include #include #include @@ -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 ) { -- cgit