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 INCLUDED_VCL_UITEST_LOGGER_HXX
11 #define INCLUDED_VCL_UITEST_LOGGER_HXX
13 #include <vcl/dllapi.h>
15 #include <tools/stream.hxx>
16 #include <vcl/vclevent.hxx>
39 template <class E
> class Sequence
;
45 struct EventDescription
;
49 class UITEST_DLLPUBLIC UITestLogger
52 SvFileStream maStream
;
61 void logCommand(const OUString
& rAction
,
62 const css::uno::Sequence
<css::beans::PropertyValue
>& rArgs
);
64 void logAction(VclPtr
<Control
> const& xUIElement
, VclEventId nEvent
);
66 void log(const OUString
& rString
);
68 void logKeyInput(VclPtr
<vcl::Window
> const& xUIElement
, const KeyEvent
& rEvent
);
70 void logEvent(const EventDescription
& rDescription
);
72 static UITestLogger
& getInstance();
74 void setAppName(OUString name
) { app_name
= name
; }
76 OUString
getAppName() const { return app_name
; }
81 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */