summaryrefslogtreecommitdiff
path: root/include/svx
diff options
context:
space:
mode:
authorShiko <aelshreif7@gmail.com>2020-06-07 14:23:37 +0200
committerAhmed ElShreif <aelshreif7@gmail.com>2020-06-10 16:08:33 +0200
commitc36ac492c2413bdd894715dd8c89127d3498e45e (patch)
tree1aaec7e4b97200fbc6b5c6bfe412bad1be9836d0 /include/svx
parent8ca89dc44aa5905d8d189be765ad2a1a613d31f4 (diff)
uitest: Add support for Calc / Format cell / background color selector
- Add wrapper for the color-win set - Add the factory function in the correct class - Add a demo for cell background color and recent color selector - Extend the ability of ComboBoxUIObject to be able to select with text Change-Id: Ie84ba7fff2f84c3fec7f5adbb5b1cdc6c80729f7 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/95667 Tested-by: Jenkins Reviewed-by: Ahmed ElShreif <aelshreif7@gmail.com>
Diffstat (limited to 'include/svx')
-rw-r--r--include/svx/SvxColorValueSet.hxx2
-rw-r--r--include/svx/uiobject.hxx24
2 files changed, 26 insertions, 0 deletions
diff --git a/include/svx/SvxColorValueSet.hxx b/include/svx/SvxColorValueSet.hxx
index 143627ffedb1..82792acf64f4 100644
--- a/include/svx/SvxColorValueSet.hxx
+++ b/include/svx/SvxColorValueSet.hxx
@@ -40,6 +40,8 @@ public:
void addEntriesForColorSet(const std::set<Color>& rColorSet, const OUString& rNamePrefix);
Size layoutAllVisible(sal_uInt32 nEntryCount);
Size layoutToGivenHeight(sal_uInt32 nHeight, sal_uInt32 nEntryCount);
+
+ virtual FactoryFunction GetUITestFactory() const override;
};
#endif // INCLUDED_SVX_SVXCOLORVALUESET_HXX
diff --git a/include/svx/uiobject.hxx b/include/svx/uiobject.hxx
index ea40c2a6b9e7..de47586f74c9 100644
--- a/include/svx/uiobject.hxx
+++ b/include/svx/uiobject.hxx
@@ -12,9 +12,12 @@
#include <svx/svxdllapi.h>
+#include <svx/SvxColorValueSet.hxx>
+
#include <vcl/uitest/uiobject.hxx>
class SdrObject;
+class SvxColorValueSet;
class SVXCORE_DLLPUBLIC SdrUIObject : public UIObject
{
@@ -32,6 +35,27 @@ public:
virtual SdrObject* get_object() = 0;
};
+class SvxColorValueSetUIObject final : public WindowUIObject
+{
+ SvxColorValueSet* mpColorSet;
+
+public:
+
+ SvxColorValueSetUIObject(vcl::Window* xColorSetWin, SvxColorValueSet* pColorSet);
+
+ 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
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */