summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorAndrea Gelmini <andrea.gelmini@gelma.net>2021-12-03 16:00:51 +0100
committerJulien Nabet <serval2412@yahoo.fr>2021-12-06 20:25:48 +0100
commitc067552caa38882b250279c1f9475a5537c4333f (patch)
tree0b119bbc9abacea1e224a1ef67803004da48663d /wizards
parentd2b03c4bfa284efbb45cb4904122e97439d3ee06 (diff)
Fix typos
Change-Id: I16d59aa3a3f17764a848428a2e6b206dc57a480a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126325 Tested-by: Jenkins Reviewed-by: Jean-Pierre Ledure <jp@ledure.be>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/sfwidgets/SF_Menu.xba8
-rw-r--r--wizards/source/sfwidgets/SF_MenuListener.xba4
2 files changed, 6 insertions, 6 deletions
diff --git a/wizards/source/sfwidgets/SF_Menu.xba b/wizards/source/sfwidgets/SF_Menu.xba
index 308e959d1cee..d9f0bde0358a 100644
--- a/wizards/source/sfwidgets/SF_Menu.xba
+++ b/wizards/source/sfwidgets/SF_Menu.xba
@@ -64,7 +64,7 @@ Option Explicit
&apos;&apos;&apos; End With
&apos;&apos;&apos;
&apos;&apos;&apos; Service invocation:
-&apos;&apos;&apos; Dim ui As ObjectoDoc As Object, myMenu As Object
+&apos;&apos;&apos; Dim ui As Object, oDoc As Object, myMenu As Object
&apos;&apos;&apos; Set ui = CreateScriptService(&quot;UI&quot;)
&apos;&apos;&apos; Set oDoc = ui.GetDocument(ThisComponent)
&apos;&apos;&apos; Set myMenu = oDoc.CreateMenu(&quot;My own menu&quot;)
@@ -178,7 +178,7 @@ Public Function AddCheckBox(Optional ByVal MenuItem As Variant _
&apos;&apos;&apos; - the menu header
&apos;&apos;&apos; - the name of the clicked menu item
&apos;&apos;&apos; - the numeric identifier of the clicked menu item
-&apos;&apos;&apos; - &quot;1&quot; when the status is &quot;checked&quot;, otherwide &quot;0&quot;
+&apos;&apos;&apos; - &quot;1&quot; when the status is &quot;checked&quot;, otherwise &quot;0&quot;
&apos;&apos;&apos; Arguments Command and Script are mutually exclusive.
&apos;&apos;&apos; Returns:
&apos;&apos;&apos; The numeric identification of the newly inserted item
@@ -340,7 +340,7 @@ Public Function AddRadioButton(Optional ByVal MenuItem As Variant _
&apos;&apos;&apos; - the menu header
&apos;&apos;&apos; - the name of the clicked menu item
&apos;&apos;&apos; - the numeric identifier of theclicked menu item
-&apos;&apos;&apos; - &quot;1&quot; when the status is &quot;checked&quot;, otherwide &quot;0&quot;
+&apos;&apos;&apos; - &quot;1&quot; when the status is &quot;checked&quot;, otherwise &quot;0&quot;
&apos;&apos;&apos; Arguments Command and Script are mutually exclusive.
&apos;&apos;&apos; Returns:
&apos;&apos;&apos; The numeric identification of the newly inserted item
@@ -587,4 +587,4 @@ Private Function _Repr() As String
End Function &apos; SFWidgets.SF_Menu._Repr
REM ============================================ END OF SFWIDGETS.SF_MENU
-</script:module> \ No newline at end of file
+</script:module>
diff --git a/wizards/source/sfwidgets/SF_MenuListener.xba b/wizards/source/sfwidgets/SF_MenuListener.xba
index 0b1f2b6fd0e5..462816cba4f5 100644
--- a/wizards/source/sfwidgets/SF_MenuListener.xba
+++ b/wizards/source/sfwidgets/SF_MenuListener.xba
@@ -82,7 +82,7 @@ Try:
oMenu = poEvent.Source
With oMenu
- &apos; Collect command (script or menu command) and status radiobttons and checkboxes
+ &apos; Collect command (script or menu command) and status radiobuttons and checkboxes
sCommand = .getCommand(iMenuId)
bStatus = .isItemChecked(iMenuId)
End With
@@ -125,4 +125,4 @@ Sub _SFMENU_disposing(Optional poEvent As Object) &apos; com.sun.star.awt.Menu
End Sub &apos; SFWidgets.SF_MenuListener._SFMENU_disposing
REM ============================================ END OF SFDIALOGS.SF_DIALOGLISTENER
-</script:module> \ No newline at end of file
+</script:module>