summaryrefslogtreecommitdiff
path: root/wizards/Package_sfdocuments.mk
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2023-01-05 13:47:01 +0100
committerJean-Pierre Ledure <jp@ledure.be>2023-01-05 15:00:28 +0000
commit88a67c50af61fa9ee5fa677589ce5db2039d6f2e (patch)
tree51b6207a40f4bd15dc69bd820244b230d8177f34 /wizards/Package_sfdocuments.mk
parentb4c3291630610d38270d7d8ccda5f810b3e05d63 (diff)
ScriptForge - (SFDocuments) new FormDocument service
The SF_FormDocument service is focused on : - The orchestration of Base form documents (aka Base Forms, but this is confusing) and the identification of and the access to their controls. - Form documents are always contained in a Base document. A form document may be opened either: - via code or user interface from the Base file welcome page - via code only, without having its Base container opened first In any mode, a form document can be opened only in 1 single copy. The FormDocument service is triggered either by base.OpenFormDocument(...) database.OpenFormDocument(...) ' Base file may be closed ui.GetDocument(...) Specific methods: CloseDocument() Forms() GetDatabase() PrintOut() Next methods are inherited from the Document superclass: Activate() CreateMenu(), RemoveMenu() ExportAsPdf() RunCommand() SaveCopyAs() SetPrinter() As a consequence, next methods remain available but should be declared as deprecated in the help: base.CloseFormDocument() base.Forms() base.PrintOut() base.SetPrinter() Above changes have several more minor impacts : - beside IsCalc, IsWriter, ... , a new IsFormDocument property - the UI service identifies open form documents - a new service means a new entry to register in the Services catalog - management of form events has been reviewed - the connection between Base, FormDocument, Form and Database services is reinforced - menus were available on components, now also on sub-components The new service is available for both Basic and Python user scripts. It requires in the help - a new sf_formdocument page - a review of the sf_base, sf_database, sf_form, sf_ui pages Change-Id: Ib06d1c4565ca093af2f068fa5b8082082641752e Reviewed-on: https://gerrit.libreoffice.org/c/core/+/145080 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Reviewed-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins
Diffstat (limited to 'wizards/Package_sfdocuments.mk')
-rw-r--r--wizards/Package_sfdocuments.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/wizards/Package_sfdocuments.mk b/wizards/Package_sfdocuments.mk
index a2a03178736a..4dcebfc84140 100644
--- a/wizards/Package_sfdocuments.mk
+++ b/wizards/Package_sfdocuments.mk
@@ -27,6 +27,7 @@ $(eval $(call gb_Package_add_files,wizards_basicsrvsfdocuments,$(LIBO_SHARE_FOLD
SF_DocumentListener.xba \
SF_Form.xba \
SF_FormControl.xba \
+ SF_FormDocument.xba \
SF_Register.xba \
SF_Writer.xba \
__License.xba \