summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-14 10:51:39 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-14 15:36:23 +0100
commit17231d0b94ef47f602db2a40875e7274d938b15b (patch)
tree3ab42d16d6775ecb77d82ab29ce27b31532ae54c /include
parent54acab919e7c7c5d60fc697bda54278861ac250e (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 'include')
-rw-r--r--include/vcl/field.hxx3
-rw-r--r--include/vcl/fieldvalues.hxx8
2 files changed, 8 insertions, 3 deletions
diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx
index c011132f4c81..7cb371a25e4a 100644
--- a/include/vcl/field.hxx
+++ b/include/vcl/field.hxx
@@ -219,9 +219,6 @@ public:
virtual OUString CreateFieldText( sal_Int64 nValue ) const override;
sal_Int64 GetCorrectedValue( FieldUnit eOutUnit ) const;
- static FieldUnit StringToMetric(const OUString &rMetricString);
- static bool TextToValue(const OUString& rStr, double& rValue, sal_Int64 nBaseValue, sal_uInt16 nDecDigits, const LocaleDataWrapper& rLocaleDataWrapper, FieldUnit eUnit);
-
protected:
FieldUnit meUnit;
diff --git a/include/vcl/fieldvalues.hxx b/include/vcl/fieldvalues.hxx
index e36b0590ae71..e8f78bd5e119 100644
--- a/include/vcl/fieldvalues.hxx
+++ b/include/vcl/fieldvalues.hxx
@@ -21,11 +21,19 @@
#define INCLUDED_VCL_FIELDVALUES_HXX
#include <vcl/dllapi.h>
+#include <rtl/ustring.hxx>
#include <tools/fldunit.hxx>
#include <tools/mapunit.hxx>
+class LocaleDataWrapper;
+
namespace vcl
{
+VCL_DLLPUBLIC FieldUnit StringToMetric(const OUString& rMetricString);
+VCL_DLLPUBLIC bool TextToValue(const OUString& rStr, double& rValue, sal_Int64 nBaseValue,
+ sal_uInt16 nDecDigits, const LocaleDataWrapper& rLocaleDataWrapper,
+ FieldUnit eUnit);
+
VCL_DLLPUBLIC sal_Int64 ConvertValue(sal_Int64 nValue, sal_Int64 mnBaseValue, sal_uInt16 nDecDigits,
FieldUnit eInUnit, FieldUnit eOutUnit);
VCL_DLLPUBLIC sal_Int64 ConvertValue(sal_Int64 nValue, sal_uInt16 nDecDigits, MapUnit eInUnit,