ScriptForge - (SF_Dialog) FIX comments in Resize() method
Fix mix-up of the definitions of the Left and Top arguments. The patch changes mainly a few comment lines. Additional changes: the list of methods includes Center() and Resize(). (patchset 3) Change-Id: Id049d42b053e5ef1971ee62fb2b8b9342053583f Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134078 Tested-by: Jean-Pierre Ledure <jp@ledure.be> Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
This commit is contained in:
parent
05fa375ff0
commit
56810b5b3d
1 changed files with 7 additions and 6 deletions
|
@ -341,7 +341,6 @@ Dim oParentPosSize As Object ' Parent com.sun.star.awt.Rectangle
|
|||
Dim lParentX As Long ' X position of parent dialog
|
||||
Dim lParentY As Long ' Y position of parent dialog
|
||||
Dim oPosSize As Object ' Dialog com.sun.star.awt.Rectangle
|
||||
Dim iFlags As Integer ' com.sun.star.awt.PosSize constants
|
||||
Const cstThisSub = "SFDialogs.Dialog.Center"
|
||||
Const cstSubArgs = "[Parent]"
|
||||
|
||||
|
@ -696,10 +695,12 @@ Public Function Methods() As Variant
|
|||
|
||||
Methods = Array( _
|
||||
"Activate" _
|
||||
, "Center" _
|
||||
, "Controls" _
|
||||
, "EndExecute" _
|
||||
, "Execute" _
|
||||
, "GetTextsFromL10N" _
|
||||
, "Resize" _
|
||||
, "Terminate" _
|
||||
)
|
||||
|
||||
|
@ -739,12 +740,12 @@ Public Function Resize(Optional ByVal Left As Variant _
|
|||
, Optional ByVal Width As Variant _
|
||||
, Optional ByVal Height As Variant _
|
||||
) As Boolean
|
||||
''' Move the topleft corner of a dialog to new coordinates and/or modify its dimensions
|
||||
''' All distances are expressed in 1/100th mm
|
||||
''' Move the top-left corner of a dialog to new coordinates and/or modify its dimensions
|
||||
''' All distances are expressed in 1/100 mm.
|
||||
''' Without arguments, the method resets the initial dimensions
|
||||
''' Args:
|
||||
''' Left : the vertical distance from the topleft corner
|
||||
''' Top : the horizontal distance from the topleft corner
|
||||
''' Left : the horizontal distance from the top-left corner
|
||||
''' Top : the vertical distance from the top-left corner
|
||||
''' Width : the horizontal width of the rectangle containing the Dialog
|
||||
''' Height : the vertical height of the rectangle containing the Dialog
|
||||
''' Negative or missing arguments are left unchanged
|
||||
|
@ -1107,4 +1108,4 @@ Private Function _Repr() As String
|
|||
End Function ' SFDialogs.SF_Dialog._Repr
|
||||
|
||||
REM ============================================ END OF SFDIALOGS.SF_DIALOG
|
||||
</script:module>
|
||||
</script:module>
|
Loading…
Reference in a new issue