78db0dcfb6
The SFWidgets library is intended to host the Toolbar, ToolbarControl (both future) and PopupMenu services. A popup menu is usually triggered by a mouse action (typically a right-click) on a dialog, a form, or one of their controls. In these cases the menu will be displayed below the clicked area. When triggered by other events, including in the normal flow of a user script, the script should provide the coordinates of the topleft edge of the menu versus the actual component. The menu is described from top to bottom with next methods: AddItem() AddCheckBox() AddRadioButton() Example: .AddCheckBox("View>Toolbars>Dialog") .AddCheckBox("View>Toolbars>Find", Status := True) .AddCheckBox("View>Status Bar", Status := True) .AddItem("View>Full Screen", Name := "FULLSCREEN") The SubmenuCharacter (Default = ">") is modifiable. Each menu item receives a numeric and a string identifier. The execute() method returns the item selected by the user. The service is available both from Basic and Python user scripts. The commit includes the review of build files to include the new library and the new modules. Change-Id: I2940be25313cc8fff7b337766edd348b04a20584 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123654 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
92 lines
2.2 KiB
Makefile
92 lines
2.2 KiB
Makefile
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
#*************************************************************************
|
|
#
|
|
# 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/.
|
|
#
|
|
#*************************************************************************
|
|
|
|
$(eval $(call gb_CppunitTest_CppunitTest,desktop_lib))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,desktop_lib, \
|
|
desktop/qa/desktop_lib/test_desktop_lib \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_libraries,desktop_lib, \
|
|
comphelper \
|
|
cppu \
|
|
cppuhelper \
|
|
i18nlangtag \
|
|
sal \
|
|
sc \
|
|
scfilt \
|
|
sfx \
|
|
sofficeapp \
|
|
subsequenttest \
|
|
sw \
|
|
test \
|
|
unotest \
|
|
utl \
|
|
tl \
|
|
vcl \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_externals,desktop_lib, \
|
|
boost_headers \
|
|
cairo \
|
|
))
|
|
ifeq ($(TLS),NSS)
|
|
$(eval $(call gb_CppunitTest_use_externals,desktop_lib,\
|
|
plc4 \
|
|
nss3 \
|
|
))
|
|
endif
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,desktop_lib,\
|
|
-I$(SRCDIR)/desktop/inc \
|
|
$$(INCLUDE) \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_sdk_api,desktop_lib))
|
|
|
|
$(eval $(call gb_CppunitTest_use_ure,desktop_lib))
|
|
|
|
$(eval $(call gb_CppunitTest_use_vcl,desktop_lib))
|
|
|
|
$(eval $(call gb_CppunitTest_use_rdb,desktop_lib,services))
|
|
|
|
$(eval $(call gb_CppunitTest_use_configuration,desktop_lib))
|
|
|
|
$(eval $(call gb_CppunitTest_use_more_fonts,desktop_lib))
|
|
|
|
$(eval $(call gb_CppunitTest_use_packages,desktop_lib, \
|
|
scripting_scriptbindinglib \
|
|
wizards_basicshare \
|
|
wizards_basicsrvaccess2base \
|
|
wizards_basicsrvdepot \
|
|
wizards_basicsrveuro \
|
|
wizards_basicsrvform \
|
|
wizards_basicsrvgimmicks \
|
|
wizards_basicsrvimport \
|
|
wizards_basicsrvscriptforge \
|
|
wizards_basicsrvsfdatabases \
|
|
wizards_basicsrvsfdialogs \
|
|
wizards_basicsrvsfdocuments \
|
|
wizards_basicsrvsfwidgets \
|
|
wizards_basicsrvtemplate \
|
|
wizards_basicsrvtools \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_uiconfigs,desktop_lib, \
|
|
cui \
|
|
modules/swriter \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_packages,desktop_lib, \
|
|
postprocess_images \
|
|
))
|
|
|
|
# vim: set noet sw=4 ts=4:
|