Files
odfstudio/wizards/source/scriptforge/python
Jean-Pierre Ledure 0658c51d63 ScriptForge (Dialog) new ImportControl() method
The
  ImportControl()
method copies a control stored in a dialog
to the actual dialog.
Like in:
  dlg1 = CreateScriptService("Dialog", ...)
  dlg2 = CreateScriptService("NewDialog", ...)
  dlg2.ImportControl(dlg1, "thiscontrol", ...)

The additional arguments contribute to optionally:
- renaming the new control
- storing the new control in a specific page
- repositioning the control (offsetx and offsety args)
- including the OnEventxxx properties

One goal is to help defining individual smaller
dialogs in the IDE and inserting them in a larger
one, keeping them in separate pages.

The function works for Basic and Python user scripts.
The user documentation will have to be updated.

Change-Id: I6155f58d2e8706b73fc5f72c070bb8230cdd17ee
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182865
Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Tested-by: Jenkins
2025-03-13 14:48:00 +01:00
..