summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2022-05-09 15:45:23 +0200
committerJean-Pierre Ledure <jp@ledure.be>2022-05-10 18:55:45 +0200
commit56810b5b3dcae39dea1462ac1e2a490af375a0c3 (patch)
tree661a80f4854c06839610650fb346cb0596d3d3df /wizards
parent05fa375ff0dba60af7093acb058e07b767f0adab (diff)
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>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/sfdialogs/SF_Dialog.xba13
1 files changed, 7 insertions, 6 deletions
diff --git a/wizards/source/sfdialogs/SF_Dialog.xba b/wizards/source/sfdialogs/SF_Dialog.xba
index beb865b6a2dd..da2afcb4a80e 100644
--- a/wizards/source/sfdialogs/SF_Dialog.xba
+++ b/wizards/source/sfdialogs/SF_Dialog.xba
@@ -341,7 +341,6 @@ Dim oParentPosSize As Object &apos; Parent com.sun.star.awt.Rectangle
Dim lParentX As Long &apos; X position of parent dialog
Dim lParentY As Long &apos; Y position of parent dialog
Dim oPosSize As Object &apos; Dialog com.sun.star.awt.Rectangle
-Dim iFlags As Integer &apos; com.sun.star.awt.PosSize constants
Const cstThisSub = &quot;SFDialogs.Dialog.Center&quot;
Const cstSubArgs = &quot;[Parent]&quot;
@@ -696,10 +695,12 @@ Public Function Methods() As Variant
Methods = Array( _
&quot;Activate&quot; _
+ , &quot;Center&quot; _
, &quot;Controls&quot; _
, &quot;EndExecute&quot; _
, &quot;Execute&quot; _
, &quot;GetTextsFromL10N&quot; _
+ , &quot;Resize&quot; _
, &quot;Terminate&quot; _
)
@@ -739,12 +740,12 @@ Public Function Resize(Optional ByVal Left As Variant _
, Optional ByVal Width As Variant _
, Optional ByVal Height As Variant _
) As Boolean
-&apos;&apos;&apos; Move the topleft corner of a dialog to new coordinates and/or modify its dimensions
-&apos;&apos;&apos; All distances are expressed in 1/100th mm
+&apos;&apos;&apos; Move the top-left corner of a dialog to new coordinates and/or modify its dimensions
+&apos;&apos;&apos; All distances are expressed in 1/100 mm.
&apos;&apos;&apos; Without arguments, the method resets the initial dimensions
&apos;&apos;&apos; Args:
-&apos;&apos;&apos; Left : the vertical distance from the topleft corner
-&apos;&apos;&apos; Top : the horizontal distance from the topleft corner
+&apos;&apos;&apos; Left : the horizontal distance from the top-left corner
+&apos;&apos;&apos; Top : the vertical distance from the top-left corner
&apos;&apos;&apos; Width : the horizontal width of the rectangle containing the Dialog
&apos;&apos;&apos; Height : the vertical height of the rectangle containing the Dialog
&apos;&apos;&apos; Negative or missing arguments are left unchanged
@@ -1107,4 +1108,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