summaryrefslogtreecommitdiffstats
path: root/include/vcl/field.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-22 10:36:24 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-23 07:17:50 +0000
commit29a9e97db65bcf5914aed9bf8cb8e8f38c3c5fc0 (patch)
treed4c30fc0519eb34bf27c47515a28908bf426a999 /include/vcl/field.hxx
parentUpdated core (diff)
downloadcore-29a9e97db65bcf5914aed9bf8cb8e8f38c3c5fc0.tar.gz
core-29a9e97db65bcf5914aed9bf8cb8e8f38c3c5fc0.zip
loplugin field-can-be-private in include/vcl..xmlscript
Change-Id: Ia03f7cccb256d825daa4dc6f4c0598448e46e6cf Reviewed-on: https://gerrit.libreoffice.org/31069 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include/vcl/field.hxx')
-rw-r--r--include/vcl/field.hxx91
1 files changed, 46 insertions, 45 deletions
diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx
index 68c90d91bb81..bca7e4e8fd8a 100644
--- a/include/vcl/field.hxx
+++ b/include/vcl/field.hxx
@@ -122,38 +122,6 @@ public:
class VCL_DLLPUBLIC NumericFormatter : public FormatterBase
{
-private:
- SAL_DLLPRIVATE void ImplInit();
-
-protected:
- sal_Int64 mnFieldValue;
- sal_Int64 mnLastValue;
- sal_Int64 mnMin;
- sal_Int64 mnMax;
- sal_uInt16 mnType;
- sal_uInt16 mnDecimalDigits;
- bool mbThousandSep;
- bool mbShowTrailingZeros;
- bool mbWrapOnLimits;
-
- // the members below are used in all derivatives of NumericFormatter
- // not in NumericFormatter itself.
- sal_Int64 mnSpinSize;
- sal_Int64 mnFirst;
- sal_Int64 mnLast;
-
-protected:
- NumericFormatter();
-
- void FieldUp();
- void FieldDown();
- void FieldFirst();
- void FieldLast();
-
- SAL_DLLPRIVATE bool ImplNumericReformat( const OUString& rStr, sal_Int64& rValue, OUString& rOutStr );
- SAL_DLLPRIVATE void ImplNewFieldValue( sal_Int64 nNewValue );
- SAL_DLLPRIVATE void ImplSetUserValue( sal_Int64 nNewValue, Selection* pNewSelection = nullptr );
-
public:
virtual ~NumericFormatter() override;
@@ -191,26 +159,44 @@ public:
sal_Int64 Normalize( sal_Int64 nValue ) const;
sal_Int64 Denormalize( sal_Int64 nValue ) const;
-};
+protected:
+ sal_Int64 mnFieldValue;
+ sal_Int64 mnLastValue;
+ sal_Int64 mnMin;
+ sal_Int64 mnMax;
+ sal_uInt16 mnType;
+ bool mbWrapOnLimits;
+
+ // the members below are used in all derivatives of NumericFormatter
+ // not in NumericFormatter itself.
+ sal_Int64 mnSpinSize;
+ sal_Int64 mnFirst;
+ sal_Int64 mnLast;
+
+ NumericFormatter();
+
+ void FieldUp();
+ void FieldDown();
+ void FieldFirst();
+ void FieldLast();
+
+ SAL_DLLPRIVATE bool ImplNumericReformat( const OUString& rStr, sal_Int64& rValue, OUString& rOutStr );
+ SAL_DLLPRIVATE void ImplNewFieldValue( sal_Int64 nNewValue );
+ SAL_DLLPRIVATE void ImplSetUserValue( sal_Int64 nNewValue, Selection* pNewSelection = nullptr );
-class VCL_DLLPUBLIC MetricFormatter : public NumericFormatter
-{
private:
- SAL_DLLPRIVATE void ImplInit();
+ SAL_DLLPRIVATE void ImplInit();
-protected:
- OUString maCustomUnitText;
- OUString maCurUnitText;
- sal_Int64 mnBaseValue;
- FieldUnit meUnit;
- Link<MetricFormatter&,void> maCustomConvertLink;
+ sal_uInt16 mnDecimalDigits;
+ bool mbThousandSep;
+ bool mbShowTrailingZeros;
-protected:
- MetricFormatter();
+};
- SAL_DLLPRIVATE bool ImplMetricReformat( const OUString& rStr, double& rValue, OUString& rOutStr );
+class VCL_DLLPUBLIC MetricFormatter : public NumericFormatter
+{
public:
virtual ~MetricFormatter() override;
@@ -244,6 +230,21 @@ public:
sal_Int64 GetCorrectedValue( FieldUnit eOutUnit ) const;
void SetCustomConvertHdl( const Link<MetricFormatter&,void>& rLink ) { maCustomConvertLink = rLink; }
+
+protected:
+ sal_Int64 mnBaseValue;
+ FieldUnit meUnit;
+ Link<MetricFormatter&,void> maCustomConvertLink;
+
+ MetricFormatter();
+
+ SAL_DLLPRIVATE bool ImplMetricReformat( const OUString& rStr, double& rValue, OUString& rOutStr );
+
+private:
+ SAL_DLLPRIVATE void ImplInit();
+
+ OUString maCustomUnitText;
+ OUString maCurUnitText;
};