diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-01-07 01:34:52 +0100 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2016-06-18 17:01:21 +0200 |
commit | 401d3bcf8b0aa4bdea4f83baa495241a4d4b7029 (patch) | |
tree | 79cc4a21dbb69e16c49cdd3e5d39d51712435642 | |
parent | 60d175de5b8bf90cc546d2177e66497f2ecaae15 (diff) |
uitest: let us use the include/vcl/uitest purely for the interface
All the actual implementations don't need to be exposed to the outside
world.
Change-Id: If92469b99e6c39493767de947434c6d78ae3804c
-rw-r--r-- | include/vcl/uitest/uiobject.hxx | 18 | ||||
-rw-r--r-- | vcl/inc/uitest/uiobject_impl.hxx | 30 | ||||
-rw-r--r-- | vcl/source/uitest/uiobject.cxx | 2 |
3 files changed, 31 insertions, 19 deletions
diff --git a/include/vcl/uitest/uiobject.hxx b/include/vcl/uitest/uiobject.hxx index a7c8b813a108..1b0afb1373f4 100644 --- a/include/vcl/uitest/uiobject.hxx +++ b/include/vcl/uitest/uiobject.hxx @@ -52,22 +52,4 @@ public: virtual std::unique_ptr<UIObject> get_child(const OUString& rID); }; -class WindowUIObject : public UIObject -{ - VclPtr<vcl::Window> mxWindow; - -public: - - WindowUIObject(VclPtr<vcl::Window> xWindow); - - virtual StringMap get_state() override; - - virtual void execute(const OUString& rAction, - const StringMap& rParameters) override; - - virtual UIObjectType getType() const override; - - virtual std::unique_ptr<UIObject> get_child(const OUString& rID); -}; - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/inc/uitest/uiobject_impl.hxx b/vcl/inc/uitest/uiobject_impl.hxx new file mode 100644 index 000000000000..0108a4524e08 --- /dev/null +++ b/vcl/inc/uitest/uiobject_impl.hxx @@ -0,0 +1,30 @@ +/* -*- 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> + +class WindowUIObject : public UIObject +{ + VclPtr<vcl::Window> mxWindow; + +public: + + WindowUIObject(VclPtr<vcl::Window> xWindow); + + virtual StringMap get_state() override; + + virtual void execute(const OUString& rAction, + const StringMap& rParameters) override; + + virtual UIObjectType getType() const override; + + virtual std::unique_ptr<UIObject> get_child(const OUString& rID); +}; + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/vcl/source/uitest/uiobject.cxx b/vcl/source/uitest/uiobject.cxx index 493127f01922..76fc1f7d52fc 100644 --- a/vcl/source/uitest/uiobject.cxx +++ b/vcl/source/uitest/uiobject.cxx @@ -7,7 +7,7 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ -#include <vcl/uitest/uiobject.hxx> +#include "uitest/uiobject_impl.hxx" #include <iostream> |