From 401d3bcf8b0aa4bdea4f83baa495241a4d4b7029 Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Thu, 7 Jan 2016 01:34:52 +0100 Subject: 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 --- include/vcl/uitest/uiobject.hxx | 18 ------------------ vcl/inc/uitest/uiobject_impl.hxx | 30 ++++++++++++++++++++++++++++++ vcl/source/uitest/uiobject.cxx | 2 +- 3 files changed, 31 insertions(+), 19 deletions(-) create mode 100644 vcl/inc/uitest/uiobject_impl.hxx 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 get_child(const OUString& rID); }; -class WindowUIObject : public UIObject -{ - VclPtr mxWindow; - -public: - - WindowUIObject(VclPtr 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 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 + +class WindowUIObject : public UIObject +{ + VclPtr mxWindow; + +public: + + WindowUIObject(VclPtr 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 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 +#include "uitest/uiobject_impl.hxx" #include -- cgit