2020-07-02 11:01:54 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
|
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <vcl/dllapi.h>
|
|
|
|
#include <vcl/uitest/uiobject.hxx>
|
|
|
|
#include <vcl/weld.hxx>
|
|
|
|
|
|
|
|
class LOKTrigger
|
|
|
|
{
|
|
|
|
public:
|
2020-07-02 14:44:24 +02:00
|
|
|
static void trigger_changed(weld::TextView& rView) { rView.signal_changed(); }
|
|
|
|
|
2020-07-02 11:01:54 +02:00
|
|
|
static void trigger_changed(weld::Entry& rEdit) { rEdit.signal_changed(); }
|
|
|
|
|
|
|
|
static void trigger_changed(weld::ComboBox& rComboBox) { rComboBox.signal_changed(); }
|
|
|
|
|
2021-01-11 09:47:33 +01:00
|
|
|
static void trigger_changed(weld::TreeView& rTreeView) { rTreeView.signal_changed(); }
|
|
|
|
|
|
|
|
static void trigger_changed(weld::IconView& rIconView) { rIconView.signal_selection_changed(); }
|
|
|
|
|
2021-05-20 17:27:49 +01:00
|
|
|
static void trigger_toggled(weld::Toggleable& rButton) { rButton.signal_toggled(); }
|
2020-11-02 12:24:49 +01:00
|
|
|
|
2020-10-30 10:51:08 +01:00
|
|
|
static void trigger_row_activated(weld::TreeView& rTreeView)
|
|
|
|
{
|
|
|
|
rTreeView.signal_row_activated();
|
|
|
|
}
|
|
|
|
|
2021-01-11 09:47:33 +01:00
|
|
|
static void trigger_item_activated(weld::IconView& rIconView)
|
|
|
|
{
|
|
|
|
rIconView.signal_item_activated();
|
|
|
|
}
|
2020-11-20 12:23:45 +01:00
|
|
|
|
2020-07-02 11:01:54 +02:00
|
|
|
static void trigger_clicked(weld::Toolbar& rToolbar, const OString& rIdent)
|
|
|
|
{
|
|
|
|
rToolbar.signal_clicked(rIdent);
|
|
|
|
}
|
|
|
|
|
2020-12-15 15:59:36 +01:00
|
|
|
static void trigger_clicked(weld::Button& rButton) { rButton.signal_clicked(); }
|
|
|
|
|
2020-07-02 11:01:54 +02:00
|
|
|
static void trigger_click(weld::DrawingArea& rDrawingArea, const Point& rPos)
|
|
|
|
{
|
|
|
|
rDrawingArea.click(rPos);
|
|
|
|
}
|
2020-12-09 06:28:34 +01:00
|
|
|
|
|
|
|
static void trigger_value_changed(weld::SpinButton& rSpinButton)
|
|
|
|
{
|
|
|
|
rSpinButton.signal_value_changed();
|
|
|
|
}
|
2021-06-17 11:50:26 +02:00
|
|
|
|
|
|
|
static void trigger_closed(weld::Popover& rPopover) { rPopover.signal_closed(); }
|
2020-07-02 11:01:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
namespace jsdialog
|
|
|
|
{
|
|
|
|
VCL_DLLPUBLIC bool ExecuteAction(sal_uInt64 nWindowId, const OString& rWidget, StringMap& rData);
|
2021-02-08 12:37:38 +01:00
|
|
|
VCL_DLLPUBLIC void SendFullUpdate(sal_uInt64 nWindowId, const OString& rWidget);
|
2020-10-30 10:51:08 +01:00
|
|
|
VCL_DLLPUBLIC StringMap jsonToStringMap(const char* pJSON);
|
2020-07-02 11:01:54 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
|