1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 #ifndef SW_SOURCE_UIBASE_INC_UIOBJECT_HXX
11 #define SW_SOURCE_UIBASE_INC_UIOBJECT_HXX
14 #include <vcl/uitest/uiobject.hxx>
17 #include "PageBreakWin.hxx"
19 #include <AnnotationWin.hxx>
21 class SwEditWinUIObject final
: public WindowUIObject
25 SwEditWinUIObject(const VclPtr
<SwEditWin
>& xEditWin
);
27 virtual StringMap
get_state() override
;
29 virtual void execute(const OUString
& rAction
,
30 const StringMap
& rParameters
) override
;
32 static std::unique_ptr
<UIObject
> create(vcl::Window
* pWindow
);
34 virtual OUString
get_name() const override
;
38 VclPtr
<SwEditWin
> mxEditWin
;
42 // This class handles the Comments as a UIObject to be used in UITest Framework
43 class CommentUIObject final
: public WindowUIObject
45 VclPtr
<sw::annotation::SwAnnotationWin
> mxCommentUIObject
;
49 CommentUIObject(const VclPtr
<sw::annotation::SwAnnotationWin
>& xCommentUIObject
);
51 virtual StringMap
get_state() override
;
53 virtual void execute(const OUString
& rAction
,
54 const StringMap
& rParameters
) override
;
56 static std::unique_ptr
<UIObject
> create(vcl::Window
* pWindow
);
60 OUString
get_name() const override
;
64 class PageBreakUIObject final
: public WindowUIObject
68 PageBreakUIObject(const VclPtr
<SwBreakDashedLine
>& xEditWin
);
70 virtual void execute(const OUString
& rAction
,
71 const StringMap
& rParameters
) override
;
73 static std::unique_ptr
<UIObject
> create(vcl::Window
* pWindow
);
77 virtual OUString
get_name() const override
;
79 VclPtr
<SwBreakDashedLine
> mxPageBreakUIObject
;
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */