diff options
author | Henry Castro <hcastro@collabora.com> | 2020-05-06 14:06:27 -0400 |
---|---|---|
committer | Henry Castro <hcastro@collabora.com> | 2020-05-09 14:39:28 +0200 |
commit | 3e325cfd1fa58b63ee2606de792b2560eaa43b24 (patch) | |
tree | de6513de190a4c4d80a0ab5ca82e1a1a4c812853 /include | |
parent | fe36f2133981fe7dc7b75873b3880f57ffdad574 (diff) |
lok: add FormattedFieldUIObject class
Required by mobile device to set "VALUE" number
Change-Id: Ie18fa3c58b8ba107917a8b12a7b98c74a385975c
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/93777
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-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 de1a090036f7..b1801e3c0310 100644 --- a/include/vcl/fmtfield.hxx +++ b/include/vcl/fmtfield.hxx @@ -117,6 +117,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); @@ -233,6 +235,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 5cc345a7fa7a..c7ab3d51af93 100644 --- a/include/vcl/uitest/uiobject.hxx +++ b/include/vcl/uitest/uiobject.hxx @@ -402,6 +402,24 @@ protected: virtual OUString get_name() const override; }; +class UITEST_DLLPUBLIC 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 UITEST_DLLPUBLIC TabControlUIObject : public WindowUIObject { private: |