[Libreoffice-commits] core.git: odk/examples
Andrea Gelmini
andrea.gelmini at gelma.net
Fri Oct 2 01:46:12 PDT 2015
odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java | 4 +-
odk/examples/DevelopersGuide/Config/ConfigExamples.java | 2 -
odk/examples/DevelopersGuide/Forms/DataAwareness.java | 2 -
odk/examples/DevelopersGuide/GUI/UnoDialogSample.java | 4 +-
odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java | 2 -
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java | 2 -
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java | 6 ++--
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java | 14 +++++-----
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java | 6 ++--
odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java | 4 +-
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java | 2 -
odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx | 2 -
odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java | 2 -
odk/examples/DevelopersGuide/Text/TextDocuments.java | 2 -
odk/examples/java/ConverterServlet/ConverterServlet.java | 2 -
15 files changed, 28 insertions(+), 28 deletions(-)
New commits:
commit 34ab9e2e1790f053910a71cf7b8a7e2f054ddd34
Author: Andrea Gelmini <andrea.gelmini at gelma.net>
Date: Fri Oct 2 10:43:00 2015 +0200
Fix typos
Change-Id: I51ed2ccb06ba4ced15cd0b8e23e59a9609f07e93
Reviewed-on: https://gerrit.libreoffice.org/18961
Reviewed-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
diff --git a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
index f263f0e..8e3ef82 100644
--- a/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
+++ b/odk/examples/DevelopersGuide/Components/Addons/JobsAddon/AsyncJob.java
@@ -242,7 +242,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
* is shown as title of the info box.
*
* @param sMessage
- * inclused the message body, which is shown as info.
+ * included the message body, which is shown as info.
*/
private void showInfoModal( com.sun.star.awt.XWindow xParent ,
@@ -327,7 +327,7 @@ public class AsyncJob extends WeakBase implements XServiceInfo, XAsyncJob
* contains all shared configuration items for a job
*
* @param lJobConfig
- * contains all job sepcific configuration items
+ * contains all job specific configuration items
*
* @param lEnvironment
* contains some environment information
diff --git a/odk/examples/DevelopersGuide/Config/ConfigExamples.java b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
index db4a639..c2b80e2 100644
--- a/odk/examples/DevelopersGuide/Config/ConfigExamples.java
+++ b/odk/examples/DevelopersGuide/Config/ConfigExamples.java
@@ -431,7 +431,7 @@ public class ConfigExamples
}
// BROWSE example
- /// Interface to procees information when browsing the configuration tree
+ /// Interface to process information when browsing the configuration tree
public interface IConfigurationProcessor
{
/// process a value item
diff --git a/odk/examples/DevelopersGuide/Forms/DataAwareness.java b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
index 6170f440..a040646 100644
--- a/odk/examples/DevelopersGuide/Forms/DataAwareness.java
+++ b/odk/examples/DevelopersGuide/Forms/DataAwareness.java
@@ -305,7 +305,7 @@ public class DataAwareness extends DocumentBasedExample implements XPropertyChan
bGenerateOnReset = ( 0 == nNewValue );
}
else if ( sRefValue.equals( "reset" ) )
- { // generat on reset
+ { // generate on reset
bGenerateOnReset = ( 0 != nNewValue );
}
m_aSalesmanKeyGenerator.activateKeyGenerator( bGenerateOnReset );
diff --git a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
index d2730e0..6f0f964 100644
--- a/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
+++ b/odk/examples/DevelopersGuide/GUI/UnoDialogSample.java
@@ -1340,9 +1340,9 @@ public class UnoDialogSample implements XTextListener, XSpinListener, XActionLis
}
/**
- *To fully understand the example one has to be aware that the passed ???Index??? parameter
+ * To fully understand the example one has to be aware that the passed ???Index??? parameter
* refers to the position of the roadmap item in the roadmapmodel container
- * whereas the variable ???_ID??? directyl references to a certain step of dialog.
+ * whereas the variable ???_ID??? directly references to a certain step of dialog.
*/
public void insertRoadmapItem(int Index, boolean _bEnabled, String _sLabel, int _ID) {
try {
diff --git a/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java b/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java
index b42f8d5..2fa3b06 100644
--- a/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java
+++ b/odk/examples/DevelopersGuide/OfficeBean/OOoBeanViewer.java
@@ -80,7 +80,7 @@ public class OOoBeanViewer extends java.applet.Applet
private OOoBean aBean;
/**
- * Initialize the Appplet
+ * Initialize the Applet
*/
public void init()
{
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
index 1acb6ea..c501396 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/CustomizeView.java
@@ -166,7 +166,7 @@ public class CustomizeView extends JPanel
* We use our internal set dispatch objects to
* call it. This calls toogle the menu/object- or toolbar.
* Note: Because we are listener status events too - hopefully
- * we get a notification, if toogling was successfully or not.
+ * we get a notification, if toggling was successfully or not.
* We use this information to update our check boxes again.
* But such update doesn't force (hopefully) an action event. Otherwhise
* we can produce a never ending recursion!
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
index c02ec71..718e235 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/FunctionHelper.java
@@ -539,7 +539,7 @@ public class FunctionHelper
com.sun.star.frame.FrameSearchFlag.CHILDREN,
lProperties);
- // dont forget to restore old frame name ...
+ // don't forget to restore old frame name...
xFrame.setName(sOldName);
}
catch(com.sun.star.io.IOException exIO)
@@ -746,7 +746,7 @@ public class FunctionHelper
* It shows the possible interface to do so.
*
* @param xFrame
- * frame which should be clcosed
+ * frame which should be closed
*
* @return <TRUE/> in case frame could be closed
* <FALSE/> otherwise
@@ -766,7 +766,7 @@ public class FunctionHelper
if (xCloseable!=null)
{
// We deliver the ownership of this frame not to the (possible)
- // source which throw a CloseVetoException. We whishto have it
+ // source which throw a CloseVetoException. We wish to have it
// under our own control.
try
{
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
index c7dc00d..21f3e67 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/Interceptor.java
@@ -32,14 +32,14 @@
*
*************************************************************************/
-// __________ Imports __________
+// Imports
import java.util.ArrayList;
import com.sun.star.frame.FrameActionEvent;
import com.sun.star.uno.UnoRuntime;
-// __________ Implementation __________
+// Implementation
/**
* This class can be used to intercept dispatched URL's
@@ -190,7 +190,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
/**
- * call back for frame action events
+ * callback for frame action events
* We use it to update our interception. Because if a new component was loaded into
* the frame or another interceptor was registered, we should refresh our connection
* to the frame. Otherwhise we can't guarantee full functionality here.
@@ -284,7 +284,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
/**
- * Internal call back for frame action events, triggered by the used
+ * Internal callback for frame action events, triggered by the used
* OnewayExecutor thread we started in frameAction().
* We use it to update our interception on the internal saved frame.
*
@@ -523,7 +523,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
/**
* Notification of status listener isn't guaranteed (instead of listener on XNotifyingDispatch interface).
- * So this interceptor doesn't support that really ...
+ * So this interceptor doesn't support that really...
*/
public /*ONEWAY*/ void addStatusListener(/*IN*/ com.sun.star.frame.XStatusListener xListener,/*IN*/ com.sun.star.util.URL aURL)
{
@@ -538,7 +538,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
null);
if (xListener!=null)
{
- System.out.println("interceptor disable SavAs by listener notify");
+ System.out.println("interceptor disable SaveAs by listener notify");
xListener.statusChanged(aEvent);
}
}*/
@@ -572,7 +572,7 @@ public class Interceptor implements com.sun.star.frame.XFrameActionListener,
/**
* This class listen on the intercepted frame to free all used resources on closing.
* We forget the reference to the frame only here. Deregistration
- * isn't necessary here - because this frame dies and wish to forgoten.
+ * isn't necessary here - because this frame dies and wish to be forgotten.
*
* @param aSource
* must be our internal saved frame, on which we listen for frame action events
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java
index 63eecd6..3ab36b6 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusListener.java
@@ -241,9 +241,9 @@ class StatusListener implements com.sun.star.frame.XStatusListener,
if (m_bDead)
return;
- // enable/dsiable th control.
- // Means: If the feature isn't available currently - we can't show an status really here.
- // Then we should colorize it gray ...
+ // enable/disable the control.
+ // Means: if the feature isn't available currently - we can't show an status really here.
+ // Then we should colorize it gray...
m_rControl.setEnabled(aEvent.IsEnabled);
// Only if status is enabled we can look for his value!
diff --git a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
index c4eb32e..b78bf86 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/DesktopEnvironment/StatusView.java
@@ -203,12 +203,12 @@ public class StatusView extends JPanel
/**
- * Set new frame for this view and start listening for events imedatly.
+ * Set new frame for this view and start listening for events immediately.
* We create one status listener for every control we wish to update.
* And because the environment of the frame can be changed - these
* listener refresh himself internally for frame action events too.
* So we register it as such frame action listener only here.
- * Rest is done automatically ...
+ * Rest is done automatically...
*
* @param xFrame
* will be used as source of possible status events
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
index 6d5f2cc..1bd7ac9 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/AsciiFilter/AsciiReplaceFilter.java
@@ -457,7 +457,7 @@ public class AsciiReplaceFilter
// Create a new paragraph for every line inside original file.
// May not all data could be readed - but that doesn't matter here.
// Reason: somewhere cancelled this function.
- // But check for optioanl replace request before ...
+ // But check for optional replace request before...
int nStart = 0;
int nEnd = -1;
int nLength = sText.length();
diff --git a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
index f81b7dd..d269c23 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
+++ b/odk/examples/DevelopersGuide/OfficeDev/FilterDevelopment/FlatXmlFilterDetection/filterdetect.cxx
@@ -95,7 +95,7 @@ OUString SAL_CALL FilterDetect::detect(Sequence< PropertyValue >& aArguments )
if (!xInStream.is())
{
- // open the stream if it was not suplied by the framework
+ // open the stream if it was not supplied by the framework
Reference< XSimpleFileAccess3 > xSFI(SimpleFileAccess::create(mxContext));
if (sURL.getLength() > 0)
{
diff --git a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
index 887d8f3..7db1b78 100644
--- a/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
+++ b/odk/examples/DevelopersGuide/OfficeDev/Linguistic/LinguisticExamples.java
@@ -54,7 +54,7 @@ import com.sun.star.uno.UnoRuntime;
public class LinguisticExamples
{
- // The remote office ocntext
+ // The remote office context
protected XComponentContext mxRemoteContext = null;
// The MultiServiceFactory interface of the Office
protected XMultiComponentFactory mxRemoteServiceManager = null;
diff --git a/odk/examples/DevelopersGuide/Text/TextDocuments.java b/odk/examples/DevelopersGuide/Text/TextDocuments.java
index 2d9da20..5954f55 100644
--- a/odk/examples/DevelopersGuide/Text/TextDocuments.java
+++ b/odk/examples/DevelopersGuide/Text/TextDocuments.java
@@ -1635,7 +1635,7 @@ public class TextDocuments {
{
try
{
- // Go to the end of the doucment
+ // Go to the end of the document
mxDocCursor.gotoEnd( false );
// insert a new paragraph
mxDocText.insertControlCharacter (
diff --git a/odk/examples/java/ConverterServlet/ConverterServlet.java b/odk/examples/java/ConverterServlet/ConverterServlet.java
index 6f68bf0..2f60077 100644
--- a/odk/examples/java/ConverterServlet/ConverterServlet.java
+++ b/odk/examples/java/ConverterServlet/ConverterServlet.java
@@ -261,7 +261,7 @@ public class ConverterServlet extends HttpServlet {
// Preparing properties for loading the document
PropertyValue propertyvalue[] = new PropertyValue[ 1 ];
- // Setting the flag for hidding the open document
+ // Setting the flag to hide the open document
propertyvalue[ 0 ] = new PropertyValue();
propertyvalue[ 0 ].Name = "Hidden";
propertyvalue[ 0 ].Value = Boolean.TRUE;
More information about the Libreoffice-commits
mailing list