LibreOffice Module vcl (master)  1
executor.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
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  */
9 
10 #pragma once
11 
12 #include <vcl/dllapi.h>
13 #include <vcl/uitest/uiobject.hxx>
14 #include <vcl/weld.hxx>
15 
17 {
18 public:
19  static void trigger_changed(weld::TextView& rView) { rView.signal_changed(); }
20 
21  static void trigger_changed(weld::Entry& rEdit) { rEdit.signal_changed(); }
22 
23  static void trigger_changed(weld::ComboBox& rComboBox) { rComboBox.signal_changed(); }
24 
25  static void trigger_changed(weld::TreeView& rTreeView) { rTreeView.signal_changed(); }
26 
27  static void trigger_changed(weld::IconView& rIconView) { rIconView.signal_selection_changed(); }
28 
29  static void trigger_toggled(weld::Toggleable& rButton) { rButton.signal_toggled(); }
30 
31  static void trigger_row_activated(weld::TreeView& rTreeView)
32  {
33  rTreeView.signal_row_activated();
34  }
35 
36  static void trigger_item_activated(weld::IconView& rIconView)
37  {
38  rIconView.signal_item_activated();
39  }
40 
41  static void trigger_clicked(weld::Toolbar& rToolbar, const OString& rIdent)
42  {
43  rToolbar.signal_clicked(rIdent);
44  }
45 
46  static void trigger_clicked(weld::Button& rButton) { rButton.signal_clicked(); }
47 
48  static void trigger_click(weld::DrawingArea& rDrawingArea, const Point& rPos)
49  {
50  rDrawingArea.click(rPos);
51  }
52 
53  static void trigger_value_changed(weld::SpinButton& rSpinButton)
54  {
55  rSpinButton.signal_value_changed();
56  }
57 
58  static void trigger_closed(weld::Popover& rPopover) { rPopover.signal_closed(); }
59 };
60 
61 namespace jsdialog
62 {
63 VCL_DLLPUBLIC bool ExecuteAction(sal_uInt64 nWindowId, const OString& rWidget, StringMap& rData);
64 VCL_DLLPUBLIC void SendFullUpdate(sal_uInt64 nWindowId, const OString& rWidget);
65 VCL_DLLPUBLIC StringMap jsonToStringMap(const char* pJSON);
66 };
67 
68 /* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
static void trigger_value_changed(weld::SpinButton &rSpinButton)
Definition: executor.hxx:53
void signal_closed()
Definition: weld.hxx:2350
static void trigger_changed(weld::ComboBox &rComboBox)
Definition: executor.hxx:23
static void trigger_changed(weld::TreeView &rTreeView)
Definition: executor.hxx:25
#define VCL_DLLPUBLIC
Definition: dllapi.h:29
static void trigger_click(weld::DrawingArea &rDrawingArea, const Point &rPos)
Definition: executor.hxx:48
void signal_changed()
Definition: weld.hxx:2114
VCL_DLLPUBLIC void SendFullUpdate(sal_uInt64 nWindowId, const OString &rWidget)
virtual void click(const Point &rPos)=0
static void trigger_row_activated(weld::TreeView &rTreeView)
Definition: executor.hxx:31
void signal_clicked(const OString &rIdent)
Definition: weld.hxx:2367
VCL_DLLPUBLIC bool ExecuteAction(sal_uInt64 nWindowId, const OString &rWidget, StringMap &rData)
void signal_clicked()
Definition: weld.hxx:1406
static void trigger_changed(weld::TextView &rView)
Definition: executor.hxx:19
static void trigger_toggled(weld::Toggleable &rButton)
Definition: executor.hxx:29
void signal_changed()
Definition: weld.hxx:1628
static void trigger_changed(weld::Entry &rEdit)
Definition: executor.hxx:21
void signal_changed()
Definition: weld.hxx:891
void signal_changed()
Definition: weld.hxx:694
static void trigger_clicked(weld::Toolbar &rToolbar, const OString &rIdent)
Definition: executor.hxx:41
static void trigger_item_activated(weld::IconView &rIconView)
Definition: executor.hxx:36
A widget used to choose from a list of items.
Definition: weld.hxx:676
VCL_DLLPUBLIC StringMap jsonToStringMap(const char *pJSON)
bool signal_row_activated()
Definition: weld.hxx:892
std::map< OUString, OUString > StringMap
bool signal_item_activated()
Definition: weld.hxx:1327
static void trigger_clicked(weld::Button &rButton)
Definition: executor.hxx:46
void signal_toggled()
Definition: weld.hxx:1440
void signal_selection_changed()
Definition: weld.hxx:1326
static void trigger_changed(weld::IconView &rIconView)
Definition: executor.hxx:27
void signal_value_changed()
Definition: weld.hxx:1696
static void trigger_closed(weld::Popover &rPopover)
Definition: executor.hxx:58