diff options
author | Henry Castro <hcastro@collabora.com> | 2020-05-06 14:06:27 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-05-21 00:45:49 +0200 |
commit | a56cbb4fedbb918ab2bc483099c3ffad6c5487b6 (patch) | |
tree | b1c78b2632c4f51fddf70c9a9986fd4f66cdf350 /include | |
parent | f228d4af56769f2d81915a969c95fee0e088235b (diff) |
lok: add FormattedFieldUIObject class
Required by mobile device to set "VALUE" number
Change-Id: Ie18fa3c58b8ba107917a8b12a7b98c74a385975c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93585
Tested-by: Jenkins
Reviewed-by: Henry Castro <hcastro@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/94525
Tested-by: Henry Castro <hcastro@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/fmtfield.hxx | 6 | ||||
-rw-r--r-- | include/vcl/uitest/uiobject.hxx | 18 |
2 files changed, 24 insertions, 0 deletions
diff --git a/include/vcl/fmtfield.hxx b/include/vcl/fmtfield.hxx index f8e5e210416e..8637209add00 100644 --- a/include/vcl/fmtfield.hxx +++ b/include/vcl/fmtfield.hxx @@ -118,6 +118,8 @@ public: void SetTextValue(const OUString& rText); // The String is transformed to a double (with a formatter) and SetValue is called afterwards + // + void SetValueFromString(const OUString& rStr); bool IsEmptyFieldEnabled() const { return m_bEnableEmptyField; } void EnableEmptyField(bool bEnable); @@ -234,6 +236,10 @@ public: void UseInputStringForFormatting(); bool IsUsingInputStringForFormatting() const { return m_bUseInputStringForFormatting;} + virtual boost::property_tree::ptree DumpAsPropertyTree() override; + + virtual FactoryFunction GetUITestFactory() const override; + protected: virtual bool EventNotify(NotifyEvent& rNEvt) override; void impl_Modify(bool makeValueDirty = true); diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx index 03d45ba59051..43035e2fa39e 100644 --- a/include/vcl/uitest/uiobject.hxx +++ b/include/vcl/uitest/uiobject.hxx @@ -404,6 +404,24 @@ protected: virtual OUString get_name() const override; }; +class FormattedFieldUIObject : public SpinFieldUIObject +{ + VclPtr<FormattedField> mxFormattedField; + +public: + FormattedFieldUIObject(const VclPtr<FormattedField>& xEdit); + virtual ~FormattedFieldUIObject() override; + + 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: + virtual OUString get_name() const override; +}; + class TabControlUIObject final : public WindowUIObject { private: |