offapi/com/sun/star/ui/dialogs/DialogClosedEvent.idl |    1 
 offapi/com/sun/star/ui/dialogs/FilePickerEvent.idl   |    1 
 wizards/source/scriptforge/python/scriptforge.py     |    5 +
 wizards/source/sfdialogs/SF_Dialog.xba               |   71 ++++++++++++++++++-
 wizards/source/sfdialogs/SF_DialogControl.xba        |    2 
 5 files changed, 74 insertions(+), 6 deletions(-)

New commits:
commit f692b5c5e4e9c57fb69d0054c654486a737d19bd
Author:     Jean-Pierre Ledure <[email protected]>
AuthorDate: Thu May 18 13:01:52 2023 +0200
Commit:     Jean-Pierre Ledure <[email protected]>
CommitDate: Sat May 20 12:56:41 2023 +0200

    ScriptForge New method dialog.CreateHyperlink()
    
    Method (Dialog service)
      CreateHyperlink(controlname, place, border, multiline,
                      align, verticalalign)
    
    completes the set of available methods for
    dynamic DialogControl creation.
    
    Cfr. https://gerrit.libreoffice.org/c/core/+/151896
    
    Change-Id: I162075ea39efdd2e1189fe8b16ac05316e6a13ff
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151954
    Tested-by: Jean-Pierre Ledure <[email protected]>
    Reviewed-by: Jean-Pierre Ledure <[email protected]>

diff --git a/wizards/source/scriptforge/python/scriptforge.py 
b/wizards/source/scriptforge/python/scriptforge.py
index adfb4d69ef97..1b094c4711be 100644
--- a/wizards/source/scriptforge/python/scriptforge.py
+++ b/wizards/source/scriptforge/python/scriptforge.py
@@ -1912,6 +1912,11 @@ class SFDialogs:
         def CreateGroupBox(self, controlname, place):
             return self.ExecMethod(self.vbMethod, 'CreateGroupBox', 
controlname, place)
 
+        def CreateHyperlink(self, controlname, place, border = 'NONE', 
multiline = False, align = 'LEFT',
+                            verticalalign = 'TOP'):
+            return self.ExecMethod(self.vbMethod, 'CreateHyperlink', 
controlname, place, border, multiline, align,
+                                   verticalalign)
+
         def CreateImageControl(self, controlname, place, border = '3D', scale 
= 'FITTOSIZE'):
             return self.ExecMethod(self.vbMethod, 'CreateImageControl', 
controlname, place, border, scale)
 
diff --git a/wizards/source/sfdialogs/SF_Dialog.xba 
b/wizards/source/sfdialogs/SF_Dialog.xba
index b50e22aebeb3..20f1e81dc650 100644
--- a/wizards/source/sfdialogs/SF_Dialog.xba
+++ b/wizards/source/sfdialogs/SF_Dialog.xba
@@ -1141,6 +1141,70 @@ Catch:
        GoTo Finally
 End Function   &apos;  SFDialogs.SF_Dialog.CreateGroupBox
 
+REM 
-----------------------------------------------------------------------------
+Public Function CreateHyperlink(Optional ByVal ControlName As Variant _
+                                                               , Optional 
ByRef Place As Variant _
+                                                               , Optional 
ByVal Border As Variant _
+                                                               , Optional 
ByVal MultiLine As Variant _
+                                                               , Optional 
ByVal Align As Variant _
+                                                               , Optional 
ByVal VerticalAlign As Variant _
+                                                               ) As Object
+&apos;&apos;&apos;     Create a new control of type Hyperlink in the actual 
dialog.
+&apos;&apos;&apos;     Specific args:
+&apos;&apos;&apos;             Border: &quot;NONE&quot; (default) or 
&quot;FLAT&quot; or &quot;3D&quot;
+&apos;&apos;&apos;             MultiLine: When True (default = False), the 
caption may be displayed on more than one line
+&apos;&apos;&apos;             Align: horizontal alignment, &quot;LEFT&quot; 
(default) or &quot;CENTER&quot; or &quot;RIGHT&quot;
+&apos;&apos;&apos;             VerticalAlign: vertical alignment, 
&quot;TOP&quot; (default) or &quot;MIDDLE&quot; or &quot;BOTTOM&quot;
+&apos;&apos;&apos;     Returns:
+&apos;&apos;&apos;             an instance of the SF_DialogControl class or 
Nothing
+&apos;&apos;&apos;     Example:
+&apos;&apos;&apos;             Set myHyperlink = 
dialog.CreateHyperlink(&quot;Hyperlink1&quot;, Array(20, 20, 60, 15), MultiLine 
:= True)
+
+Dim oControl As Object                 &apos;  Return value
+Dim iBorder As Integer                 &apos;  Alias of border
+Dim iAlign As Integer                  &apos;  Alias of Align
+Dim iVerticalAlign As Integer  &apos;  Alias of VerticalAlign
+Dim vPropNames As Variant              &apos;  Array of names of specific 
arguments
+Dim vPropValues As Variant             &apos;  Array of values of specific 
arguments
+Const cstThisSub = &quot;SFDialogs.Dialog.CreateHyperlink&quot;
+Const cstSubArgs = &quot;ControlName, Place, [MultiLine=False], 
[Border=&quot;&quot;NONE&quot;&quot;|&quot;&quot;FLAT&quot;&quot;|&quot;&quot;3D&quot;&quot;]&quot;
 _
+                                               &amp; &quot;, 
[Align=&quot;&quot;LEFT&quot;&quot;|&quot;&quot;CENTER&quot;&quot;|&quot;&quot;RIGHT&quot;&quot;],
 
[VerticalAlign=&quot;&quot;TOP&quot;&quot;|&quot;&quot;MIDDLE&quot;&quot;|&quot;&quot;BOTTOM&quot;&quot;]&quot;
+
+Check:
+       Set oControl = Nothing
+       If Not _CheckNewControl(cstThisSub, cstSubArgs, ControlName, Place) 
Then GoTo Finally
+
+       If IsMissing(Border) Or IsEmpty(Border) Then Border = &quot;NONE&quot;
+       If IsMissing(MultiLine) Or IsEmpty(MultiLine) Then MultiLine = False
+       If IsMissing(Align) Or IsEmpty(Align) Then Align = &quot;LEFT&quot;
+       If IsMissing(VerticalAlign) Or IsEmpty(VerticalAlign) Then 
VerticalAlign = &quot;TOP&quot;
+
+       If Not ScriptForge.SF_Utils._Validate(Border, &quot;Border&quot;, 
V_STRING, Array(&quot;3D&quot;, &quot;FLAT&quot;, &quot;NONE&quot;)) Then GoTo 
Finally
+       If Not ScriptForge.SF_Utils._Validate(MultiLine, &quot;MultiLine&quot;, 
ScriptForge.V_BOOLEAN) Then GoTo Finally
+       If Not ScriptForge.SF_Utils._Validate(Align, &quot;Align&quot;, 
V_STRING, Array(&quot;LEFT&quot;, &quot;CENTER&quot;, &quot;RIGHT&quot;)) Then 
GoTo Finally
+       If Not ScriptForge.SF_Utils._Validate(VerticalAlign, 
&quot;VerticalAlign&quot;, V_STRING, Array(&quot;TOP&quot;, &quot;MIDDLE&quot;, 
&quot;BOTTOM&quot;)) Then GoTo Finally
+
+Try:
+       &apos;  Manage specific properties
+       iBorder = ScriptForge.SF_Array.IndexOf(Array(&quot;NONE&quot;, 
&quot;3D&quot;, &quot;FLAT&quot;), Border)
+       iAlign = ScriptForge.SF_Array.IndexOf(Array(&quot;LEFT&quot;, 
&quot;CENTER&quot;, &quot;BOTTOM&quot;), Align)
+       Select Case UCase(VerticalAlign)
+               Case &quot;TOP&quot;            :       iVerticalAlign = 
com.sun.star.style.VerticalAlignment.TOP
+               Case &quot;MIDDLE&quot; :       iVerticalAlign = 
com.sun.star.style.VerticalAlignment.MIDDLE
+               Case &quot;BOTTOM&quot; :       iVerticalAlign = 
com.sun.star.style.VerticalAlignment.BOTTOM
+       End Select
+       vPropNames = Array(&quot;Border&quot;, &quot;MultiLine&quot;, 
&quot;Align&quot;, &quot;VerticalAlign&quot;)
+       vPropValues = Array(iBorder, CBool(MultiLine), iAlign, iVerticalAlign)
+
+       &apos;  Create the control
+       Set oControl = 
_CreateNewControl(&quot;UnoControlFixedHyperlinkModel&quot;, ControlName, 
Place, vPropNames, vPropValues)
+
+Finally:
+       Set CreateHyperlink = oControl
+       ScriptForge.SF_Utils._ExitFunction(cstThisSub)
+       Exit Function
+End Function   &apos;  SFDialogs.SF_Dialog.CreateHyperlink
+
 REM 
-----------------------------------------------------------------------------
 Public Function CreateImageControl(Optional ByVal ControlName As Variant _
                                                                , Optional 
ByRef Place As Variant _
@@ -1528,8 +1592,8 @@ Public Function CreateTableControl(Optional ByVal 
ControlName As Variant _
 &apos;&apos;&apos;     To fill the table with data, use the SetTableData() 
method
 &apos;&apos;&apos;     Specific args:
 &apos;&apos;&apos;             Border: &quot;3D&quot; (default) or 
&quot;FLAT&quot; or &quot;NONE&quot;
-&apos;&apos;&apos;             RowHeaders: when True (default), the row 
Headers are shown
-&apos;&apos;&apos;             ColumnHeaders: when True (default), the column 
Headers are shown
+&apos;&apos;&apos;             RowHeaders: when True (default), the row 
headers are shown
+&apos;&apos;&apos;             ColumnHeaders: when True (default), the column 
headers are shown
 &apos;&apos;&apos;             ScrollBars: H[orizontal] or V[ertical] or 
B[oth] or N[one] (default)
 &apos;&apos;&apos;                     Note that scrollbars always appear 
dynamically when they are needed
 &apos;&apos;&apos;             GridLines: when True (default = False) 
horizontal and vertical lines are painted between the grid cells
@@ -1989,6 +2053,7 @@ Public Function Methods() As Variant
                                        , &quot;CreateFixedText&quot; _
                                        , &quot;CreateFormattedField&quot; _
                                        , &quot;CreateGroupBox&quot; _
+                                       , &quot;CreateHyperlink&quot; _
                                        , &quot;CreateImageControl&quot; _
                                        , &quot;CreateListBox&quot; _
                                        , &quot;CreateNumericField&quot; _
@@ -2878,4 +2943,4 @@ Private Function _Repr() As String
 End Function   &apos;  SFDialogs.SF_Dialog._Repr
 
 REM ============================================ END OF SFDIALOGS.SF_DIALOG
-</script:module>
+</script:module>
\ No newline at end of file
diff --git a/wizards/source/sfdialogs/SF_DialogControl.xba 
b/wizards/source/sfdialogs/SF_DialogControl.xba
index 133d942a8c32..2cef9ad5e7ef 100644
--- a/wizards/source/sfdialogs/SF_DialogControl.xba
+++ b/wizards/source/sfdialogs/SF_DialogControl.xba
@@ -2512,4 +2512,4 @@ Private Function _Repr() As String
 End Function   &apos;  SFDialogs.SF_DialogControl._Repr
 
 REM ============================================ END OF 
SFDIALOGS.SF_DIALOGCONTROL
-</script:module>
+</script:module>
\ No newline at end of file
commit 82816547ccda994acfa6ec63a98f561f615efcfa
Author:     Julien Nabet <[email protected]>
AuthorDate: Sat May 20 12:44:34 2023 +0200
Commit:     Noel Grandin <[email protected]>
CommitDate: Sat May 20 12:56:37 2023 +0200

    idl: they're not params but attributes
    
    Fix these warnings:
    
/home/tdf/jenkins/workspace/gerrit_windows@2/offapi/com/sun/star/ui/dialogs/DialogClosedEvent.idl:33:
    warning: com::sun::star::ui::dialogs::DialogClosedEvent::DialogResult has 
@param documentation sections but no arguments
    
    
/home/tdf/jenkins/workspace/gerrit_windows@2/offapi/com/sun/star/ui/dialogs/FilePickerEvent.idl:29:
    warning: com::sun::star::ui::dialogs::FilePickerEvent::ElementId has @param 
documentation sections but no arguments
    
    Change-Id: Ic2ae5f70f3f6aa744bd61044f80e9ab525407ecc
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/152020
    Reviewed-by: Noel Grandin <[email protected]>
    Tested-by: Noel Grandin <[email protected]>

diff --git a/offapi/com/sun/star/ui/dialogs/DialogClosedEvent.idl 
b/offapi/com/sun/star/ui/dialogs/DialogClosedEvent.idl
index 52d724b82d03..49162ccc47cd 100644
--- a/offapi/com/sun/star/ui/dialogs/DialogClosedEvent.idl
+++ b/offapi/com/sun/star/ui/dialogs/DialogClosedEvent.idl
@@ -30,7 +30,6 @@ module com { module sun { module star { module ui { module 
dialogs {
 struct DialogClosedEvent: com::sun::star::lang::EventObject
 {
     /**
-        @param DialogResult
         Identifies the result of a dialog.
 
         @see ExecutableDialogResults
diff --git a/offapi/com/sun/star/ui/dialogs/FilePickerEvent.idl 
b/offapi/com/sun/star/ui/dialogs/FilePickerEvent.idl
index 4477010d53c9..53f95617236c 100644
--- a/offapi/com/sun/star/ui/dialogs/FilePickerEvent.idl
+++ b/offapi/com/sun/star/ui/dialogs/FilePickerEvent.idl
@@ -26,7 +26,6 @@ module com { module sun { module star { module ui { module 
dialogs {
 published struct FilePickerEvent: com::sun::star::lang::EventObject
 {
     /**
-        @param ElementId
         Identifies the affected element
 
         @see com::sun::star::ui::dialogs::CommonFilePickerElementIds

Reply via email to