LibreOffice Module vcl (master) 1
|
#include <logger.hxx>
Public Member Functions | |
UITestLogger () | |
void | logCommand (std::u16string_view rAction, const css::uno::Sequence< css::beans::PropertyValue > &rArgs) |
void | logAction (VclPtr< Control > const &xUIElement, VclEventId nEvent) |
void | logAction (vcl::Window *const &xUIWin, VclEventId nEvent) |
void | log (std::u16string_view rString) |
void | logKeyInput (VclPtr< vcl::Window > const &xUIElement, const KeyEvent &rEvent) |
void | logEvent (const EventDescription &rDescription) |
void | setAppName (OUString name) |
const OUString & | getAppName () const |
Static Public Member Functions | |
static UITestLogger & | getInstance () |
Private Attributes | |
SvFileStream | maStream |
bool | mbValid |
OUString | app_name |
Definition at line 34 of file logger.hxx.
UITestLogger::UITestLogger | ( | ) |
Definition at line 65 of file logger.cxx.
References maStream, mbValid, mbValid, SvFileStream::Open(), and SAL_CONFIGFILE.
|
inline |
Definition at line 63 of file logger.hxx.
Referenced by logEvent().
|
static |
Definition at line 611 of file logger.cxx.
References ImplGetSVData(), ImplSVFrameData::m_pUITestLogger, and ImplSVData::maFrameData.
Referenced by Control::CallEventListeners(), ToolBox::Click(), Dialog::dispose(), ButtonUIObject::get_action(), ImplHandleKey(), Dialog::ImplStartExecute(), and logEvent().
void UITestLogger::log | ( | std::u16string_view | rString | ) |
Definition at line 181 of file logger.cxx.
References maStream, mbValid, OUStringToOString(), and SvStream::WriteLine().
Referenced by Dialog::dispose(), Dialog::ImplStartExecute(), and logEvent().
void UITestLogger::logAction | ( | vcl::Window *const & | xUIWin, |
VclEventId | nEvent | ||
) |
Definition at line 166 of file logger.cxx.
References vcl::Window::get_id(), vcl::Window::GetUITestFactory(), maStream, mbValid, OUStringToOString(), and SvStream::WriteLine().
void UITestLogger::logAction | ( | VclPtr< Control > const & | xUIElement, |
VclEventId | nEvent | ||
) |
Definition at line 147 of file logger.cxx.
References VclPtr< reference_type >::get(), vcl::Window::get_id(), vcl::Window::GetUITestFactory(), vcl::Window::HasFocus(), maStream, mbValid, OUStringToOString(), and SvStream::WriteLine().
Referenced by Control::CallEventListeners(), and ToolBox::Click().
void UITestLogger::logCommand | ( | std::u16string_view | rAction, |
const css::uno::Sequence< css::beans::PropertyValue > & | rArgs | ||
) |
Definition at line 82 of file logger.cxx.
References aBuffer, aCommand, maStream, mbValid, nValue, OUStringToOString(), and SvStream::WriteLine().
void UITestLogger::logEvent | ( | const EventDescription & | rDescription | ) |
Definition at line 372 of file logger.cxx.
References EventDescription::aAction, EventDescription::aID, EventDescription::aKeyWord, EventDescription::aParameters, EventDescription::aParent, from, getAppName(), getInstance(), log(), size, to, and type.
void UITestLogger::logKeyInput | ( | VclPtr< vcl::Window > const & | xUIElement, |
const KeyEvent & | rEvent | ||
) |
Definition at line 192 of file logger.cxx.
References VclPtr< reference_type >::get(), vcl::Window::get_id(), KeyEvent::GetCharCode(), vcl::KeyCode::GetCode(), KeyEvent::GetKeyCode(), vcl::Window::GetParent(), vcl::Window::GetUITestFactory(), vcl::KeyCode::IsMod1(), vcl::KeyCode::IsMod2(), vcl::KeyCode::IsMod3(), vcl::KeyCode::IsShift(), vcl::Window::IsTopWindow(), KEY_BACKSPACE, KEY_DELETE, KEY_DOWN, KEY_END, KEY_ESCAPE, KEY_HOME, KEY_INSERT, KEY_LEFT, KEY_PAGEDOWN, KEY_PAGEUP, KEY_RETURN, KEY_RIGHT, KEY_TAB, KEY_UP, maStream, mbValid, OUStringToOString(), and SvStream::WriteLine().
Referenced by ImplHandleKey().
|
inline |
Definition at line 61 of file logger.hxx.
References name.
Referenced by ButtonUIObject::get_action().
|
private |
Definition at line 41 of file logger.hxx.
|
private |
Definition at line 37 of file logger.hxx.
Referenced by log(), logAction(), logCommand(), logKeyInput(), and UITestLogger().
|
private |
Definition at line 39 of file logger.hxx.
Referenced by log(), logAction(), logCommand(), logKeyInput(), and UITestLogger().