Version 7.6.3.2-android, tag libreoffice-7.6.3.2-android
[LibreOffice.git] / sw / source / uibase / inc / uiobject.hxx
blob8911ef2a87e4d6b4ab170548747441a0d06647a2
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
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/.
8 */
10 #ifndef SW_SOURCE_UIBASE_INC_UIOBJECT_HXX
11 #define SW_SOURCE_UIBASE_INC_UIOBJECT_HXX
13 #include <memory>
14 #include <vcl/uitest/uiobject.hxx>
16 #include "edtwin.hxx"
17 #include "PageBreakWin.hxx"
19 #include <AnnotationWin.hxx>
21 class SwEditWinUIObject final : public WindowUIObject
23 public:
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;
36 private:
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;
47 public:
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);
58 private:
60 OUString get_name() const override;
64 class PageBreakUIObject final : public WindowUIObject
66 public:
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);
75 private:
77 virtual OUString get_name() const override;
79 VclPtr<SwBreakDashedLine> mxPageBreakUIObject;
83 #endif
85 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */