diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-03-29 15:32:33 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:01:49 +0200 |
commit | 6f1c82f2a08231d716a1a2acace350f3a4987f9e (patch) | |
tree | 61dae10b9cd59b05e92db732398eb50ebaa8ca6e /sfx2/inc | |
parent | 971b76d95a8e2c19be04c38319299cf0a20bd98c (diff) |
uitest: work on supporting ui objects in sfx2 for uitesting
Change-Id: I693fe9cf697701a8cde5b78c382982c852ae7dfa
Diffstat (limited to 'sfx2/inc')
-rw-r--r-- | sfx2/inc/uitest/sfx_uiobject.hxx | 37 | ||||
-rw-r--r-- | sfx2/inc/uitest/uitest_factory.hxx | 21 |
2 files changed, 58 insertions, 0 deletions
diff --git a/sfx2/inc/uitest/sfx_uiobject.hxx b/sfx2/inc/uitest/sfx_uiobject.hxx new file mode 100644 index 000000000000..6d77a5dcc3dd --- /dev/null +++ b/sfx2/inc/uitest/sfx_uiobject.hxx @@ -0,0 +1,37 @@ +/* -*- 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/. + */ + +#include <vcl/uitest/uiobject.hxx> +#include <memory> + +class SfxTabDialog; + +class SfxTabDialogUIObject : public UIObject +{ +private: + + VclPtr<SfxTabDialog> mxTabDialog; + +public: + + SfxTabDialogUIObject(VclPtr<SfxTabDialog> xTabDialog); + + virtual ~SfxTabDialogUIObject(); + + virtual StringMap get_state() override; + + virtual void execute(const OUString& rAction, + const StringMap& rParameters) override; + + virtual UIObjectType get_type() const override; + + static std::unique_ptr<UIObject> create(vcl::Window* pWindow); +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/inc/uitest/uitest_factory.hxx b/sfx2/inc/uitest/uitest_factory.hxx new file mode 100644 index 000000000000..b2d298f5a6eb --- /dev/null +++ b/sfx2/inc/uitest/uitest_factory.hxx @@ -0,0 +1,21 @@ +/* -*- 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/. + */ + +#include <vcl/uitest/factory.hxx> + +class SfxUITestFactory +{ +public: + + static void registerSfxTabDialog(); + + static void registerSfxTabPage(); +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |