office-gobmx/wizards/Package_sfdocuments.mk
Jean-Pierre Ledure 6b4f02396b ScriptForge - (SF_Calc) new OpenRangeSelector() method
The method activates the Calc document, opens a non-modal dialog
with a text box, let the user make a selection in the current
or another sheet and returns the selected area as a string.
This method does not change the current selection.

Arguments:
 Title: the title to display on the top of the dialog
 Selection: a default preselection as a String.
   When absent, the first element of the current selection is preselected.
 SingleCell: When True, only a single cell may be selected. Default = False
 CloseAfterSelect: When True (default-, the dialog is closed immediately
   after the selection. When False, the user may change his/her mind
   and must close the dialog manually.
Returns:
 The selected range as a string, or the empty string
 when the user cancelled the request (close window button)

Example:
 Dim sSelect As String, vValues As Variant
 sSelect = oDoc.OpenRangeSelector("Select a range ...")
 If sSelect = "" Then Exit Function
 vValues = oDoc.GetValue(sSelect)

The implementation requires a new module: SF_DocumentListener.xba

The method is available for Basic and Python user scripts.

Change-Id: I2d67a9c900ea8ac661cd6b6fb43bb4a34e6abd8e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/125201
Tested-by: Jean-Pierre Ledure <jp@ledure.be>
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
2021-11-15 13:47:26 +01:00

37 lines
1.3 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/.
#
# This file incorporates work covered by the following license notice:
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed
# with this work for additional information regarding copyright
# ownership. The ASF licenses this file to you under the Apache
# License, Version 2.0 (the "License"); you may not use this file
# except in compliance with the License. You may obtain a copy of
# the License at http://www.apache.org/licenses/LICENSE-2.0 .
#
$(eval $(call gb_Package_Package,wizards_basicsrvsfdocuments,$(SRCDIR)/wizards/source/sfdocuments))
$(eval $(call gb_Package_add_files,wizards_basicsrvsfdocuments,$(LIBO_SHARE_FOLDER)/basic/SFDocuments,\
SF_Base.xba \
SF_Calc.xba \
SF_Chart.xba \
SF_Document.xba \
SF_DocumentListener.xba \
SF_Form.xba \
SF_FormControl.xba \
SF_Register.xba \
SF_Writer.xba \
__License.xba \
dialog.xlb \
script.xlb \
))
# vim: set noet sw=4 ts=4: