From 61526998356f6908ab080d169cff7ece7d1d39a1 Mon Sep 17 00:00:00 2001 From: Andrea Gelmini Date: Sat, 22 Aug 2026 13:00:08 +0200 Subject: [PATCH] Fix typos Change-Id: Ic2f0c9f4bb0da72c3fed08cdbbc68ea102c39a38 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/209485 Tested-by: Julien Nabet Reviewed-by: Julien Nabet --- .../DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java | 2 +- .../HelloTextTableShape/cxx/HelloTextTableShape.cxx | 2 +- .../HelloTextTableShape/java/HelloTextTableShape.java | 2 +- odk/examples/DevelopersGuide/Forms/DocumentHelper.java | 2 +- .../OfficeDev/DesktopEnvironment/CustomizeView.java | 2 +- .../OfficeDev/DesktopEnvironment/FunctionHelper.java | 4 ++-- .../OfficeDev/DesktopEnvironment/Interceptor.java | 2 +- .../OfficeDev/DesktopEnvironment/StatusListener.java | 2 +- .../OfficeDev/Linguistic/SampleHyphenator.java | 2 +- .../OfficeDev/Linguistic/SampleSpellChecker.java | 2 +- .../DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java | 2 +- odk/examples/DevelopersGuide/Text/TextDocuments.java | 2 +- odk/examples/DevelopersGuide/UCB/DataStreamComposer.java | 4 ++-- odk/examples/DevelopersGuide/UCB/PropertiesComposer.java | 4 ++-- odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx | 2 +- odk/examples/java/MinimalComponent/MinimalComponent.java | 2 +- odk/examples/java/ToDo/ToDo.java | 2 +- 17 files changed, 20 insertions(+), 20 deletions(-) diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java index c47244b9abbb..0ce3edb8e8d8 100644 --- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java +++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java @@ -179,7 +179,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob com.sun.star.beans.NamedValue aDispatchResult = null; com.sun.star.beans.NamedValue aSaveRequest = null; - // SaveArguments will be made everytimes! + // SaveArguments will be made every time! c = 1; if (lJobConfig==null) diff --git a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/cxx/HelloTextTableShape.cxx b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/cxx/HelloTextTableShape.cxx index b9f2a11ae528..a59689e6e094 100644 --- a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/cxx/HelloTextTableShape.cxx +++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/cxx/HelloTextTableShape.cxx @@ -221,7 +221,7 @@ void useCalc() void useDraw() { - //create new draw document and insert ractangle shape + //create new draw document and insert rectangle shape Reference xDrawComponent = newDocComponent("sdraw"); Reference xDrawPagesSupplier(xDrawComponent, UNO_QUERY_THROW); diff --git a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/HelloTextTableShape.java b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/HelloTextTableShape.java index 2ea20e61b61f..dd1eb6ef9716 100644 --- a/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/HelloTextTableShape.java +++ b/odk/examples/DevelopersGuide/FirstSteps/HelloTextTableShape/java/HelloTextTableShape.java @@ -259,7 +259,7 @@ public class HelloTextTableShape { protected void useDraw() throws java.lang.Exception { try { - //create new draw document and insert ractangle shape + //create new draw document and insert rectangle shape XComponent xDrawComponent = newDocComponent("sdraw"); XDrawPagesSupplier xDrawPagesSupplier = UnoRuntime.queryInterface( diff --git a/odk/examples/DevelopersGuide/Forms/DocumentHelper.java b/odk/examples/DevelopersGuide/Forms/DocumentHelper.java index abfda37c450e..ed4c5cef0f31 100644 --- a/odk/examples/DevelopersGuide/Forms/DocumentHelper.java +++ b/odk/examples/DevelopersGuide/Forms/DocumentHelper.java @@ -157,7 +157,7 @@ public class DocumentHelper /* ------------------------------------------------------------------ */ /** creates a form which is a sibling of the given form @param aForm - A sinbling of the to be created form. + A sibling of the to be created form. @param sInitialName The initial name of the form. May be null, in this case the default (which diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java index f19429585472..3602dda67149 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java @@ -121,7 +121,7 @@ public class CustomizeView extends JPanel /** * set new frame for this view - * We start listening for frame action/status and click events instandly. + * We start listening for frame action/status and click events instantly. * If an event occurs, we use it to synchronize our controls * with states of a (maybe) new document view of this frame. * diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java index fa24cde96e33..5e8e0c288077 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java @@ -58,7 +58,7 @@ import java.net.*; * * There exist some other helper functionality too, which * doesn't use or demonstrate the office api: - * (a) getting file names by using a file chosser + * (a) getting file names by using a file chooser */ public class FunctionHelper { @@ -881,7 +881,7 @@ public class FunctionHelper int nDecision = JFileChooser.CANCEL_OPTION; JFileChooser aChooser = null; - // set last visited directory on new file chosser + // set last visited directory on new file chooser // (if this information is available) if( maLastDir==null ) aChooser = new JFileChooser(); diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java index 76c45a4a53cc..597f8f5cc848 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java @@ -349,7 +349,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener, * These functions are used to build a list of interceptor objects * connected in both ways. * Searching for a right interceptor is made by forwarding any request - * from toppest master to lowest slave of this hierarchy. + * from topmost master to lowest slave of this hierarchy. * If an interceptor wish to handle the request he can break that * and return himself as a dispatcher. */ diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java index 6c779498347d..7cc4c6a41c3c 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java +++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java @@ -55,7 +55,7 @@ import com.sun.star.uno.UnoRuntime; * * Further we are frame action listener too. * So we can update our status listener connections and - * internal holded dispatch object automatically. + * internal held dispatch object automatically. * * Another reason for such extra class for listening: * Most listener callbacks are asynchronous [one-way] requests. diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java index 4fcd413a723b..76b45afb399b 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleHyphenator.java @@ -214,7 +214,7 @@ public class SampleHyphenator extends ComponentBase implements return null; // linguistic is currently not allowed to throw exceptions - // thus we return null fwhich means 'word cannot be hyphenated' + // thus we return null which means 'word cannot be hyphenated' if (!hasLocale( aLocale )) return null; diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java index 9608929932fa..8f01ed504078 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleSpellChecker.java @@ -315,7 +315,7 @@ public class SampleSpellChecker extends ComponentBase implements return null; // linguistic is currently not allowed to throw exceptions - // thus we return null fwhich means 'word cannot be spelled' + // thus we return null which means 'word cannot be spelled' if (!hasLocale( aLocale )) return null; diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java index 420d85d481aa..eeb0e8fbbdb6 100644 --- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java +++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/SampleThesaurus.java @@ -170,7 +170,7 @@ public class SampleThesaurus extends ComponentBase implements return null; // linguistic is currently not allowed to throw exceptions - // thus we return null fwhich means 'word cannot be looked up' + // thus we return null which means 'word cannot be looked up' if (!hasLocale( aLocale )) return null; diff --git a/odk/examples/DevelopersGuide/Text/TextDocuments.java b/odk/examples/DevelopersGuide/Text/TextDocuments.java index 2ccd270e281d..134213aa2c46 100644 --- a/odk/examples/DevelopersGuide/Text/TextDocuments.java +++ b/odk/examples/DevelopersGuide/Text/TextDocuments.java @@ -856,7 +856,7 @@ public class TextDocuments { // We want the background to be light blue xTableProps.setPropertyValue( "BackColor", Integer.valueOf(13421823)); - // Inser the table into the document + // Insert the table into the document mxDocText.insertTextContent( mxDocCursor, xTable, false); // Get an XIndexAccess to all table rows diff --git a/odk/examples/DevelopersGuide/UCB/DataStreamComposer.java b/odk/examples/DevelopersGuide/UCB/DataStreamComposer.java index ce6edae31998..be6efdd49ccc 100644 --- a/odk/examples/DevelopersGuide/UCB/DataStreamComposer.java +++ b/odk/examples/DevelopersGuide/UCB/DataStreamComposer.java @@ -94,7 +94,7 @@ public class DataStreamComposer { * Write the document data stream of a document content. * *@param sourceURL Source URL - *@return true if data stream successfully seted, false otherwise + *@return true if data stream successfully set, false otherwise */ public boolean setDataStream( String sourceURL ) throws com.sun.star.ucb.CommandAbortedException, @@ -116,7 +116,7 @@ public class DataStreamComposer { /** * Write the document data stream of a document content... * - *@return boolean Returns true if data stream successfully seted, false otherwise + *@return boolean Returns true if data stream successfully set, false otherwise */ public boolean setDataStream( XInputStream stream ) throws com.sun.star.ucb.CommandAbortedException, com.sun.star.uno.Exception { diff --git a/odk/examples/DevelopersGuide/UCB/PropertiesComposer.java b/odk/examples/DevelopersGuide/UCB/PropertiesComposer.java index 1ebc9cbaab79..6013d0eff6f0 100644 --- a/odk/examples/DevelopersGuide/UCB/PropertiesComposer.java +++ b/odk/examples/DevelopersGuide/UCB/PropertiesComposer.java @@ -83,7 +83,7 @@ public class PropertiesComposer { * See Constructor. * *@return Object[] Returns null or instance object of com.sun.star.uno.Any - * if values successfully seted, properties otherwise + * if values successfully set, properties otherwise */ public Object[] setProperties() throws com.sun.star.ucb.CommandAbortedException, com.sun.star.uno.Exception { @@ -96,7 +96,7 @@ public class PropertiesComposer { * Set values of the properties. * *@return Object[] Returns null or instance object of com.sun.star.uno.Any - * if values successfully seted, properties otherwise + * if values successfully set, properties otherwise */ public Object[] setProperties( ArrayList properties, ArrayList propertiesValues ) throws com.sun.star.ucb.CommandAbortedException, com.sun.star.uno.Exception { diff --git a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx index 3fd70340aebc..0266a8b04b71 100644 --- a/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx +++ b/odk/examples/cpp/complextoolbarcontrols/MyProtocolHandler.cxx @@ -252,7 +252,7 @@ void SAL_CALL BaseDispatch::dispatch( const URL& aURL, const Sequence < Property } } - // create new URL to address the combox box + // create a new URL to address the combobox URL aCmdURL; aCmdURL.Path = "ComboboxCmd"; aCmdURL.Protocol = "vnd.demo.complextoolbarcontrols.demoaddon:"; diff --git a/odk/examples/java/MinimalComponent/MinimalComponent.java b/odk/examples/java/MinimalComponent/MinimalComponent.java index b8efbafcc429..0fac4a72330d 100644 --- a/odk/examples/java/MinimalComponent/MinimalComponent.java +++ b/odk/examples/java/MinimalComponent/MinimalComponent.java @@ -57,7 +57,7 @@ public class MinimalComponent { private static final String __serviceName = "org.openoffice.MinimalComponent"; - /** The initial component contextr, that gives access to + /** The initial component context, that gives access to * the service manager, supported singletons, ... * It's often later used */ diff --git a/odk/examples/java/ToDo/ToDo.java b/odk/examples/java/ToDo/ToDo.java index 36d0d7eece6a..1f875e7b22f6 100644 --- a/odk/examples/java/ToDo/ToDo.java +++ b/odk/examples/java/ToDo/ToDo.java @@ -82,7 +82,7 @@ public class ToDo { */ private static final String __serviceName = "org.openoffice.ToDo"; - /** The initial component contextr, that gives access to + /** The initial component context, that gives access to * the service manager, supported singletons, ... * It's often later used */