From 701f62c023e7a8febe3f9d7294d0ca2bec8a13bc Mon Sep 17 00:00:00 2001 From: Henry Castro Date: Thu, 7 May 2020 18:45:28 -0400 Subject: lok: override get_state of the MetricFieldObject class used for unit testing Change-Id: I7d8ed976837b488bfb22d865583b8d4f1f0978ec Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93688 Tested-by: Jenkins Reviewed-by: Henry Castro --- include/vcl/field.hxx | 1 + include/vcl/uitest/metricfielduiobject.hxx | 2 ++ 2 files changed, 3 insertions(+) (limited to 'include') diff --git a/include/vcl/field.hxx b/include/vcl/field.hxx index beb3a30c356f..a8620f876ffd 100644 --- a/include/vcl/field.hxx +++ b/include/vcl/field.hxx @@ -150,6 +150,7 @@ public: sal_Int64 Normalize( sal_Int64 nValue ) const; sal_Int64 Denormalize( sal_Int64 nValue ) const; + OUString GetValueString() const; virtual void SetValueFromString(const OUString& rStr); protected: diff --git a/include/vcl/uitest/metricfielduiobject.hxx b/include/vcl/uitest/metricfielduiobject.hxx index a23c555225a0..21ff7ac88d11 100644 --- a/include/vcl/uitest/metricfielduiobject.hxx +++ b/include/vcl/uitest/metricfielduiobject.hxx @@ -24,6 +24,8 @@ public: virtual void execute(const OUString& rAction, const StringMap& rParameters) override; + virtual StringMap get_state() override; + static std::unique_ptr create(vcl::Window* pWindow); protected: -- cgit