diff options
author | Ahmed ElShreif <aelshreif7@gmail.com> | 2020-08-08 01:04:28 +0200 |
---|---|---|
committer | Ahmed ElShreif <aelshreif7@gmail.com> | 2020-08-12 18:48:32 +0200 |
commit | edd916b47e01ea53f0989bdbb6a703e081e25aea (patch) | |
tree | f4106d521a0cb19e283fb8c77b27eaab3b35d714 /svtools/inc | |
parent | ed8bce1909f658d8e3d950f374931242f91ba811 (diff) |
uitest : Add support for Normal ValueSet
This patch will add support for all the normal valuesets inside any dialog .
for example it will help in "Select Presets and Shadow Styles in borders tab ( format table or format cell )" to test tdf#133641 .
You can use the support by this line:
>> obj_name.executeAction("SELECT", mkPropertyValues({"POS": "4"}))
Change-Id: I35d0608318f1bca4f4e702ebcc258957835ce0db
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100373
Tested-by: Jenkins
Reviewed-by: Markus Mohrhard <markus.mohrhard@googlemail.com>
Diffstat (limited to 'svtools/inc')
-rw-r--r-- | svtools/inc/uiobject.hxx | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/svtools/inc/uiobject.hxx b/svtools/inc/uiobject.hxx new file mode 100644 index 000000000000..a27b6d68fdad --- /dev/null +++ b/svtools/inc/uiobject.hxx @@ -0,0 +1,38 @@ +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ +/* + * This file is part of the LibreOffice project. + * + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ + +#ifndef INCLUDED_SVTOOLS_INC_UIOBJECT_HXX +#define INCLUDED_SVTOOLS_INC_UIOBJECT_HXX + +#include <memory> +#include <vcl/uitest/uiobject.hxx> +#include <svtools/valueset.hxx> + +class ValueSet; + +class ValueSetUIObject final : public WindowUIObject +{ + ValueSet* mpSet; + +public: + ValueSetUIObject(const VclPtr<vcl::Window>& xSetWin, ValueSet* pSet); + + virtual void execute(const OUString& rAction, const StringMap& rParameters) override; + + static std::unique_ptr<UIObject> create(vcl::Window* pWindow); + + virtual StringMap get_state() override; + +private: + OUString get_name() const override; +}; + +#endif // INCLUDED_SVX_INC_UIOBJECT_HXX + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
\ No newline at end of file |