diff options
author | Henry Castro <hcastro@collabora.com> | 2020-05-07 18:45:28 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-05-10 18:34:23 +0200 |
commit | 701f62c023e7a8febe3f9d7294d0ca2bec8a13bc (patch) | |
tree | 9f9a7a9db6c62813e03be60a788bb51e13d857a7 /include | |
parent | 0784df709d5d8d39e2ba3778702466e57e1270d4 (diff) |
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 <hcastro@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/field.hxx | 1 | ||||
-rw-r--r-- | include/vcl/uitest/metricfielduiobject.hxx | 2 |
2 files changed, 3 insertions, 0 deletions
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<UIObject> create(vcl::Window* pWindow); protected: |