wizards/source/sfdialogs/SF_Dialog.xba        |   70 ----------------
 wizards/source/sfdialogs/SF_DialogControl.xba |  110 --------------------------
 wizards/source/sfdialogs/SF_Register.xba      |   41 ---------
 3 files changed, 221 deletions(-)

New commits:
commit 7ab550746e231537ab7dfe3f28a1be44bfa4a157
Author:     Jean-Pierre Ledure <j...@ledure.be>
AuthorDate: Tue Dec 8 16:40:09 2020 +0100
Commit:     Jean-Pierre Ledure <j...@ledure.be>
CommitDate: Tue Dec 8 18:31:28 2020 +0100

    ScriptForge: (SFDialogs) OnEvent properties are not editable
    
    The editable character of OnEvent properties is removed
    Structures in memory were updated correctly but without
    effect on behaviour of the dialog
    
    Feature is not essential
    
    NB OnNodeExpanded and OnNodeSelected remain editable: the
    mechanism is not via the Basic IDE and the functionality
    is correct
    
    Change-Id: If697120850efcc21ecf1f9004e2b64a5a69bf346
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107426
    Tested-by: Jean-Pierre Ledure <j...@ledure.be>
    Tested-by: Jenkins
    Reviewed-by: Jean-Pierre Ledure <j...@ledure.be>

diff --git a/wizards/source/sfdialogs/SF_Dialog.xba 
b/wizards/source/sfdialogs/SF_Dialog.xba
index 88869534a581..8bb5147e6384 100644
--- a/wizards/source/sfdialogs/SF_Dialog.xba
+++ b/wizards/source/sfdialogs/SF_Dialog.xba
@@ -154,120 +154,60 @@ Property Get OnFocusGained() As Variant
        OnFocusGained = _PropertyGet(&quot;OnFocusGained&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnFocusGained (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnFocusGained(Optional ByVal pvOnFocusGained As Variant)
-&apos;&apos;&apos;     Set the updatable property OnFocusGained
-       _PropertySet(&quot;OnFocusGained&quot;, pvOnFocusGained)
-End Property   &apos;  SFDialogs.SF_Dialog.OnFocusGained (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnFocusLost() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnFocusLost event
        OnFocusLost = _PropertyGet(&quot;OnFocusLost&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnFocusLost (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnFocusLost(Optional ByVal pvOnFocusLost As Variant)
-&apos;&apos;&apos;     Set the updatable property OnFocusLost
-       _PropertySet(&quot;OnFocusLost&quot;, pvOnFocusLost)
-End Property   &apos;  SFDialogs.SF_Dialog.OnFocusLost (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnKeyPressed() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnKeyPressed event
        OnKeyPressed = _PropertyGet(&quot;OnKeyPressed&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnKeyPressed (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnKeyPressed(Optional ByVal pvOnKeyPressed As Variant)
-&apos;&apos;&apos;     Set the updatable property OnKeyPressed
-       _PropertySet(&quot;OnKeyPressed&quot;, pvOnKeyPressed)
-End Property   &apos;  SFDialogs.SF_Dialog.OnKeyPressed (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnKeyReleased() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnKeyReleased event
        OnKeyReleased = _PropertyGet(&quot;OnKeyReleased&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnKeyReleased (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnKeyReleased(Optional ByVal pvOnKeyReleased As Variant)
-&apos;&apos;&apos;     Set the updatable property OnKeyReleased
-       _PropertySet(&quot;OnKeyReleased&quot;, pvOnKeyReleased)
-End Property   &apos;  SFDialogs.SF_Dialog.OnKeyReleased (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseDragged() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseDragged event
        OnMouseDragged = _PropertyGet(&quot;OnMouseDragged&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnMouseDragged (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseDragged(Optional ByVal pvOnMouseDragged As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseDragged
-       _PropertySet(&quot;OnMouseDragged&quot;, pvOnMouseDragged)
-End Property   &apos;  SFDialogs.SF_Dialog.OnMouseDragged (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseEntered() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseEntered event
        OnMouseEntered = _PropertyGet(&quot;OnMouseEntered&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnMouseEntered (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseEntered(Optional ByVal pvOnMouseEntered As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseEntered
-       _PropertySet(&quot;OnMouseEntered&quot;, pvOnMouseEntered)
-End Property   &apos;  SFDialogs.SF_Dialog.OnMouseEntered (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseExited() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseExited event
        OnMouseExited = _PropertyGet(&quot;OnMouseExited&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnMouseExited (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseExited(Optional ByVal pvOnMouseExited As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseExited
-       _PropertySet(&quot;OnMouseExited&quot;, pvOnMouseExited)
-End Property   &apos;  SFDialogs.SF_Dialog.OnMouseExited (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseMoved() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseMoved event
        OnMouseMoved = _PropertyGet(&quot;OnMouseMoved&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnMouseMoved (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseMoved(Optional ByVal pvOnMouseMoved As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseMoved
-       _PropertySet(&quot;OnMouseMoved&quot;, pvOnMouseMoved)
-End Property   &apos;  SFDialogs.SF_Dialog.OnMouseMoved (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMousePressed() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMousePressed event
        OnMousePressed = _PropertyGet(&quot;OnMousePressed&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnMousePressed (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMousePressed(Optional ByVal pvOnMousePressed As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMousePressed
-       _PropertySet(&quot;OnMousePressed&quot;, pvOnMousePressed)
-End Property   &apos;  SFDialogs.SF_Dialog.OnMousePressed (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseReleased() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseReleased event
        OnMouseReleased = _PropertyGet(&quot;OnMouseReleased&quot;)
 End Property   &apos;  SFDialogs.SF_Dialog.OnMouseReleased (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseReleased(Optional ByVal pvOnMouseReleased As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseReleased
-       _PropertySet(&quot;OnMouseReleased&quot;, pvOnMouseReleased)
-End Property   &apos;  SFDialogs.SF_Dialog.OnMouseReleased (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get Page() As Variant
 &apos;&apos;&apos;     A dialog may have several pages that can be traversed 
by the user step by step. The Page property of the Dialog object defines which 
page of the dialog is active.
@@ -854,16 +794,6 @@ Const cstSubArgs = &quot;Value&quot;
                Case UCase(&quot;Height&quot;)
                        If Not ScriptForge.SF_Utils._Validate(pvValue, 
&quot;Height&quot;, ScriptForge.V_NUMERIC) Then GoTo Finally
                        If oSession.HasUNOProperty(_DialogModel, 
&quot;Height&quot;) Then _DialogModel.Height = pvValue
-               Case UCase(&quot;OnFocusGained&quot;), 
UCase(&quot;OnFocusLost&quot;), UCase(&quot;OnKeyPressed&quot;), 
UCase(&quot;OnKeyReleased&quot;) _
-                               , UCase(&quot;OnMouseDragged&quot;), 
UCase(&quot;OnMouseEntered&quot;), UCase(&quot;OnMouseExited&quot;), 
UCase(&quot;OnMouseMoved&quot;) _
-                               , UCase(&quot;OnMousePressed&quot;), 
UCase(&quot;OnMouseReleased&quot;)
-                       If Not ScriptForge.SF_Utils._Validate(pvValue, 
psProperty, V_STRING) Then GoTo Finally
-                       SFDialogs.SF_Register._SetEventScript( _
-                                               _DialogModel _
-                                               , _GetEventName(psProperty) _
-                                               , _GetListener(psProperty) _
-                                               , pvValue _
-                                               )
                Case UCase(&quot;Page&quot;)
                        If Not ScriptForge.SF_Utils._Validate(pvValue, 
&quot;Page&quot;, ScriptForge.V_NUMERIC) Then GoTo Finally
                        If oSession.HasUNOProperty(_DialogModel, 
&quot;Step&quot;) Then _DialogModel.Step = CLng(pvValue)
diff --git a/wizards/source/sfdialogs/SF_DialogControl.xba 
b/wizards/source/sfdialogs/SF_DialogControl.xba
index f635043ac8b1..a2dce45e585b 100644
--- a/wizards/source/sfdialogs/SF_DialogControl.xba
+++ b/wizards/source/sfdialogs/SF_DialogControl.xba
@@ -267,156 +267,78 @@ Property Get OnActionPerformed() As Variant
        OnActionPerformed = _PropertyGet(&quot;OnActionPerformed&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnActionPerformed (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnActionPerformed(Optional ByVal pvOnActionPerformed As Variant)
-&apos;&apos;&apos;     Set the updatable property OnActionPerformed
-       _PropertySet(&quot;OnActionPerformed&quot;, pvOnActionPerformed)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnActionPerformed (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnAdjustmentValueChanged() As Variant
 &apos;&apos;&apos;     Get the script associated with the 
OnAdjustmentValueChanged event
        OnAdjustmentValueChanged = 
_PropertyGet(&quot;OnAdjustmentValueChanged&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnAdjustmentValueChanged 
(get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnAdjustmentValueChanged(Optional ByVal 
pvOnAdjustmentValueChanged As Variant)
-&apos;&apos;&apos;     Set the updatable property OnAdjustmentValueChanged
-       _PropertySet(&quot;OnAdjustmentValueChanged&quot;, 
pvOnAdjustmentValueChanged)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnAdjustmentValueChanged 
(let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnFocusGained() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnFocusGained event
        OnFocusGained = _PropertyGet(&quot;OnFocusGained&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnFocusGained (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnFocusGained(Optional ByVal pvOnFocusGained As Variant)
-&apos;&apos;&apos;     Set the updatable property OnFocusGained
-       _PropertySet(&quot;OnFocusGained&quot;, pvOnFocusGained)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnFocusGained (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnFocusLost() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnFocusLost event
        OnFocusLost = _PropertyGet(&quot;OnFocusLost&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnFocusLost (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnFocusLost(Optional ByVal pvOnFocusLost As Variant)
-&apos;&apos;&apos;     Set the updatable property OnFocusLost
-       _PropertySet(&quot;OnFocusLost&quot;, pvOnFocusLost)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnFocusLost (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnItemStateChanged() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnItemStateChanged 
event
        OnItemStateChanged = _PropertyGet(&quot;OnItemStateChanged&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnItemStateChanged (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnItemStateChanged(Optional ByVal pvOnItemStateChanged As Variant)
-&apos;&apos;&apos;     Set the updatable property OnItemStateChanged
-       _PropertySet(&quot;OnItemStateChanged&quot;, pvOnItemStateChanged)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnItemStateChanged (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnKeyPressed() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnKeyPressed event
        OnKeyPressed = _PropertyGet(&quot;OnKeyPressed&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnKeyPressed (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnKeyPressed(Optional ByVal pvOnKeyPressed As Variant)
-&apos;&apos;&apos;     Set the updatable property OnKeyPressed
-       _PropertySet(&quot;OnKeyPressed&quot;, pvOnKeyPressed)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnKeyPressed (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnKeyReleased() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnKeyReleased event
        OnKeyReleased = _PropertyGet(&quot;OnKeyReleased&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnKeyReleased (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnKeyReleased(Optional ByVal pvOnKeyReleased As Variant)
-&apos;&apos;&apos;     Set the updatable property OnKeyReleased
-       _PropertySet(&quot;OnKeyReleased&quot;, pvOnKeyReleased)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnKeyReleased (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseDragged() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseDragged event
        OnMouseDragged = _PropertyGet(&quot;OnMouseDragged&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseDragged (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseDragged(Optional ByVal pvOnMouseDragged As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseDragged
-       _PropertySet(&quot;OnMouseDragged&quot;, pvOnMouseDragged)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseDragged (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseEntered() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseEntered event
        OnMouseEntered = _PropertyGet(&quot;OnMouseEntered&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseEntered (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseEntered(Optional ByVal pvOnMouseEntered As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseEntered
-       _PropertySet(&quot;OnMouseEntered&quot;, pvOnMouseEntered)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseEntered (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseExited() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseExited event
        OnMouseExited = _PropertyGet(&quot;OnMouseExited&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseExited (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseExited(Optional ByVal pvOnMouseExited As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseExited
-       _PropertySet(&quot;OnMouseExited&quot;, pvOnMouseExited)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseExited (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseMoved() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseMoved event
        OnMouseMoved = _PropertyGet(&quot;OnMouseMoved&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseMoved (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseMoved(Optional ByVal pvOnMouseMoved As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseMoved
-       _PropertySet(&quot;OnMouseMoved&quot;, pvOnMouseMoved)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseMoved (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMousePressed() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMousePressed event
        OnMousePressed = _PropertyGet(&quot;OnMousePressed&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnMousePressed (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMousePressed(Optional ByVal pvOnMousePressed As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMousePressed
-       _PropertySet(&quot;OnMousePressed&quot;, pvOnMousePressed)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnMousePressed (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnMouseReleased() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnMouseReleased event
        OnMouseReleased = _PropertyGet(&quot;OnMouseReleased&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseReleased (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnMouseReleased(Optional ByVal pvOnMouseReleased As Variant)
-&apos;&apos;&apos;     Set the updatable property OnMouseReleased
-       _PropertySet(&quot;OnMouseReleased&quot;, pvOnMouseReleased)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnMouseReleased (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get OnNodeExpanded() As Variant
 &apos;&apos;&apos;     Get the script associated with the OnNodeExpanded event
@@ -447,12 +369,6 @@ Property Get OnTextChanged() As Variant
        OnTextChanged = _PropertyGet(&quot;OnTextChanged&quot;)
 End Property   &apos;  SFDialogs.SF_DialogControl.OnTextChanged (get)
 
-REM 
-----------------------------------------------------------------------------
-Property Let OnTextChanged(Optional ByVal pvOnTextChanged As Variant)
-&apos;&apos;&apos;     Set the updatable property OnTextChanged
-       _PropertySet(&quot;OnTextChanged&quot;, pvOnTextChanged)
-End Property   &apos;  SFDialogs.SF_DialogControl.OnTextChanged (let)
-
 REM 
-----------------------------------------------------------------------------
 Property Get Page() As Variant
 &apos;&apos;&apos;     A dialog may have several pages that can be traversed 
by the user step by step. The Page property of the Dialog object defines which 
page of the dialog is active.
@@ -1660,32 +1576,6 @@ Const cstSubArgs = &quot;Value&quot;
                                        End If
                                Case Else       :       GoTo CatchType
                        End Select
-               Case UCase(&quot;OnActionPerformed&quot;), 
UCase(&quot;OnAdjustmentValueChanged&quot;), UCase(&quot;OnFocusGained&quot;), 
UCase(&quot;OnFocusLost&quot;) _
-                               , UCase(&quot;OnItemStateChanged&quot;), 
UCase(&quot;OnKeyPressed&quot;), UCase(&quot;OnKeyReleased&quot;) _
-                               , UCase(&quot;OnMouseDragged&quot;), 
UCase(&quot;OnMouseEntered&quot;), UCase(&quot;OnMouseExited&quot;), 
UCase(&quot;OnMouseMoved&quot;) _
-                               , UCase(&quot;OnMousePressed&quot;), 
UCase(&quot;OnMouseReleased&quot;), UCase(&quot;OnTextChanged&quot;)
-                       If Not ScriptForge.SF_Utils._Validate(pvValue, 
psProperty, V_STRING) Then GoTo Finally
-                       &apos;  Most properties are common to all control 
types, but there are exceptions
-                       Select Case UCase(psProperty)
-                               Case UCase(&quot;OnActionPerformed&quot;), 
UCase(&quot;OnItemStateChanged&quot;)
-                                       vCtlTypes = Array(CTLBUTTON, 
CTLCHECKBOX, CTLCOMBOBOX, CTLLISTBOX, CTLRADIOBUTTON)
-                               Case UCase(&quot;OnAdjustmentValueChanged&quot;)
-                                       vCtlTypes = Array(CTLSCROLLBAR)
-                               Case UCase(&quot;OnTextChanged&quot;)
-                                       vCtlTypes = Array(CTLCOMBOBOX, 
CTLCURRENCYFIELD, CTLDATEFIELD, CTLFILECONTROL, CTLFORMATTEDFIELD _
-                                                                       , 
CTLNUMERICFIELD, CTLPATTERNFIELD, CTLTEXTFIELD, CTLTIMEFIELD)
-                               Case Else
-                                       vCtlTypes = Array()
-                       End Select
-                       If UBound(vCtlTypes) &gt;= 0 Then
-                               If Not ScriptForge.SF_Array.Contains(vCtlTypes, 
_ControlType) Then GoTo CatchType
-                       End If
-                       SFDialogs.SF_Register._SetEventScript( _
-                                               _ControlModel _
-                                               , _GetEventName(psProperty) _
-                                               , _GetListener(psProperty) _
-                                               , pvValue _
-                                               )
                Case UCase(&quot;OnNodeExpanded&quot;)
                        Select Case _ControlType
                                Case CTLTREECONTROL
diff --git a/wizards/source/sfdialogs/SF_Register.xba 
b/wizards/source/sfdialogs/SF_Register.xba
index ac19bdebff34..e8348d7e53ec 100644
--- a/wizards/source/sfdialogs/SF_Register.xba
+++ b/wizards/source/sfdialogs/SF_Register.xba
@@ -328,46 +328,5 @@ CatchNotFound:
        GoTo Finally
 End Function   &apos;  SFDialogs.SF_Register._NewDialog
 
-REM 
-----------------------------------------------------------------------------
-Public Sub _SetEventScript(poObject As Object _
-                                                       , ByVal psEvent As 
String _
-                                                       , ByVal psListener As 
String _
-                                                       , ByVal psScriptCode As 
String _
-                                                       )
-&apos;&apos;&apos;     Set/replace a script event in a Dialog or DialogControl 
model
-&apos;&apos;&apos;     Args:
-&apos;&apos;&apos;             poObject: the Dialog or DialogControl model
-&apos;&apos;&apos;             psEvent: the name of the event which triggers 
the script
-&apos;&apos;&apos;             psListener: getting/Setting macros triggered by 
events requires a Listener-EventName pair
-&apos;&apos;&apos;             psScriptCode: the script to associate with the 
event as a string
-&apos;&apos;&apos;                     If = &quot;&quot;, then the event is 
completely removed
-
-Dim oEvents As Object                  &apos;  The set of events of the model
-Dim sEventName As String               &apos;  The full name of the event
-Dim oEvent As Object                   &apos;  
com.sun.star.script.ScriptEventDescriptor
-
-Check:
-       If Not SF_Session.HasUnoMethod(poObject, &quot;getEvents&quot;) Then 
GoTo Finally
-
-Try:
-       &apos;  Remove existing event, if any, then store the new script code 
if &lt;&gt; &quot;&quot;
-       Set oEvents = poObject.getEvents()
-       sEventName = &quot;com.sun.star.awt.&quot; &amp; psListener &amp; 
&quot;::&quot; &amp; psEvent
-       If oEvents.hasByName(sEventName) Then oEvents.removeByName(sEventName)
-       If Len(psScriptCode) &gt; 0 Then
-               Set oEvent = 
CreateUnoStruct(&quot;com.sun.star.script.ScriptEventDescriptor&quot;)
-               With oEvent
-                       .ListenerType = psListener
-                       .EventMethod = psEvent
-                       .ScriptType = &quot;Script&quot;                        
&apos;  Better than &quot;Basic&quot;
-                       .ScriptCode = psScriptCode
-               End With
-               oEvents.insertByName(sEventName, oEvent)
-       End If
-
-Finally:
-       Exit Sub
-End Sub                        &apos;  SFDialogs.SF_Register._SetEventScript
-
 REM ============================================== END OF SFDIALOGS.SF_REGISTER
 </script:module>
\ No newline at end of file
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to