diff options
Diffstat (limited to 'odk/examples/java')
-rw-r--r-- | odk/examples/java/ConverterServlet/ConverterServlet.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Inspector/InspectorPane.java | 6 | ||||
-rw-r--r-- | odk/examples/java/Inspector/Makefile | 2 | ||||
-rw-r--r-- | odk/examples/java/MinimalComponent/Makefile | 2 | ||||
-rw-r--r-- | odk/examples/java/Spreadsheet/ChartTypeChange.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Spreadsheet/EuroAdaption.java | 6 | ||||
-rw-r--r-- | odk/examples/java/Spreadsheet/SCalc.java | 8 | ||||
-rw-r--r-- | odk/examples/java/Storage/TestHelper.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Text/BookmarkInsertion.java | 6 | ||||
-rw-r--r-- | odk/examples/java/Text/HardFormatting.java | 4 | ||||
-rw-r--r-- | odk/examples/java/Text/SWriter.java | 4 | ||||
-rw-r--r-- | odk/examples/java/Text/StyleCreation.java | 2 | ||||
-rw-r--r-- | odk/examples/java/Text/StyleInitialization.java | 10 | ||||
-rw-r--r-- | odk/examples/java/Text/TextReplace.java | 4 |
14 files changed, 30 insertions, 30 deletions
diff --git a/odk/examples/java/ConverterServlet/ConverterServlet.java b/odk/examples/java/ConverterServlet/ConverterServlet.java index 809d0905e888..91380ab863e1 100644 --- a/odk/examples/java/ConverterServlet/ConverterServlet.java +++ b/odk/examples/java/ConverterServlet/ConverterServlet.java @@ -217,7 +217,7 @@ public class ConverterServlet extends HttpServlet { com.sun.star.comp.helper.Bootstrap.createInitialComponentContext( null ); /* Gets the service manager instance to be used (or null). This method has - been added for convenience, because the service manager is a often used + been added for convenience, because the service manager is an often used object. */ XMultiComponentFactory xmulticomponentfactory = xcomponentcontext.getServiceManager(); diff --git a/odk/examples/java/Inspector/InspectorPane.java b/odk/examples/java/Inspector/InspectorPane.java index e175239fd02f..627d4c4336b0 100644 --- a/odk/examples/java/Inspector/InspectorPane.java +++ b/odk/examples/java/Inspector/InspectorPane.java @@ -464,9 +464,9 @@ import com.sun.star.uno.XComponentContext; addPropertySetInfoSubNodes(oUnoPropertyNode); } else{ - //TODO this code is redundant!!! + //TODO: this code is redundant!!! if ( oUnoObject.getClass().isArray()){ - // TODO probably we should provid a possibility to insert also non-primitive nodes + // TODO: probably we should provide a possibility to insert also non-primitive nodes addPrimitiveValuesToTreeNode(oUnoPropertyNode, oUnoObject); } else{ @@ -515,7 +515,7 @@ import com.sun.star.uno.XComponentContext; else if (_oUnoNode.getNodeType() == XUnoNode.nOTHERS){ Object oUnoObject = _oUnoNode.getUnoObject(); if ( oUnoObject.getClass().isArray()){ - // TODO probably we should provid a possibility to insert also non-primitive nodes + // TODO: probably we should provide a possibility to insert also non-primitive nodes addPrimitiveValuesToTreeNode(_oUnoNode, oUnoObject); } else{ diff --git a/odk/examples/java/Inspector/Makefile b/odk/examples/java/Inspector/Makefile index 0b90edf42296..a0d80bf6d36d 100644 --- a/odk/examples/java/Inspector/Makefile +++ b/odk/examples/java/Inspector/Makefile @@ -42,7 +42,7 @@ include $(SETTINGS)/std.mk # Define non-platform/compiler specific settings -# we use the sample directory name dor separating this example +# we use the sample directory name for separating this example # from others in the output directory SAMPLE_NAME=InstanceInspector SAMPLE_CLASS_OUT=$(OUT_CLASS)/$(SAMPLE_NAME) diff --git a/odk/examples/java/MinimalComponent/Makefile b/odk/examples/java/MinimalComponent/Makefile index 13dc762966f6..0639b1cacaa7 100644 --- a/odk/examples/java/MinimalComponent/Makefile +++ b/odk/examples/java/MinimalComponent/Makefile @@ -42,7 +42,7 @@ include $(SETTINGS)/std.mk # Define non-platform/compiler specific settings -# we use the sample directory name dor separating this example +# we use the sample directory name for separating this example # from others in the output directory SAMPLE_NAME=MinimalComponent SAMPLE_CLASS_OUT=$(OUT_CLASS)/$(SAMPLE_NAME) diff --git a/odk/examples/java/Spreadsheet/ChartTypeChange.java b/odk/examples/java/Spreadsheet/ChartTypeChange.java index eb6099ad224f..d436b388925e 100644 --- a/odk/examples/java/Spreadsheet/ChartTypeChange.java +++ b/odk/examples/java/Spreadsheet/ChartTypeChange.java @@ -139,7 +139,7 @@ public class ChartTypeChange { xCompContext = com.sun.star.comp.helper.Bootstrap.bootstrap(); /* Gets the service manager instance to be used (or null). This method has - been added for convenience, because the service manager is a often used + been added for convenience, because the service manager is an often used object. */ xMCF = xCompContext.getServiceManager(); } diff --git a/odk/examples/java/Spreadsheet/EuroAdaption.java b/odk/examples/java/Spreadsheet/EuroAdaption.java index 209e772ab075..c6906f45ba13 100644 --- a/odk/examples/java/Spreadsheet/EuroAdaption.java +++ b/odk/examples/java/Spreadsheet/EuroAdaption.java @@ -36,7 +36,7 @@ // comment: Step 1: get the Desktop object from the office // Step 2: open an empty Calc document -// Step 3: enter a example text, set the numberformat to DM +// Step 3: enter an example text, set the numberformat to DM // Step 4: change the numberformat to EUR (Euro) // Step 5: use the DM/EUR factor on each cell with a content @@ -80,7 +80,7 @@ public class EuroAdaption { public static void main(String args[]) { // You need the desktop to create a document // The getDesktop method does the UNO bootstrapping, gets the - // remote servie manager and the desktop object. + // remote service manager and the desktop object. com.sun.star.frame.XDesktop xDesktop = null; xDesktop = getDesktop(); @@ -294,7 +294,7 @@ public class EuroAdaption { xCellRange = xSheet.getCellRangeByPosition( 2, 1 + iCounter, 2, 1 + iCounter ); - // get the ProperySet from the cell, to change the numberformat + // get the PropertySet from the cell, to change the numberformat XPropertySet xCellProp = UnoRuntime.queryInterface( XPropertySet.class, xCellRange ); xCellProp.setPropertyValue( "NumberFormat", diff --git a/odk/examples/java/Spreadsheet/SCalc.java b/odk/examples/java/Spreadsheet/SCalc.java index 85eea9e0fd04..90c5ce00f41d 100644 --- a/odk/examples/java/Spreadsheet/SCalc.java +++ b/odk/examples/java/Spreadsheet/SCalc.java @@ -266,8 +266,8 @@ public class SCalc { // get the CellRange which holds the data for the chart and its RangeAddress // get the TableChartSupplier from the sheet and then the TableCharts from it. // add a new chart based on the data to the TableCharts. - // get the ChartDocument, which provide the Diagramm. Change the properties - // Dim3D (3 dimension) and String (the title) of the diagramm. + // get the ChartDocument, which provide the Diagram. Change the properties + // Dim3D (3 dimension) and String (the title) of the diagram. // insert a chart @@ -296,7 +296,7 @@ public class SCalc { XTableCharts oCharts = oSupp.getCharts(); oCharts.addNewByName("Example", oRect, oAddr, true, true); - // get the diagramm and Change some of the properties + // get the diagram and change some of the properties try { oChart = (UnoRuntime.queryInterface( @@ -334,7 +334,7 @@ public class SCalc { XComponent xComp = null; try { - // get the servie manager rom the office + // get the service manager from the office xMCF = xContext.getServiceManager(); // create a new instance of the desktop diff --git a/odk/examples/java/Storage/TestHelper.java b/odk/examples/java/Storage/TestHelper.java index cece84d3b170..a486f1d53dae 100644 --- a/odk/examples/java/Storage/TestHelper.java +++ b/odk/examples/java/Storage/TestHelper.java @@ -49,7 +49,7 @@ public class TestHelper { return false; } - // get XTrucate implementation from output stream + // get XTruncate implementation from output stream XTruncate xTruncate = UnoRuntime.queryInterface( XTruncate.class, xOutput ); if ( xTruncate == null ) { diff --git a/odk/examples/java/Text/BookmarkInsertion.java b/odk/examples/java/Text/BookmarkInsertion.java index a857b36c2874..0b9dd3fa9aa2 100644 --- a/odk/examples/java/Text/BookmarkInsertion.java +++ b/odk/examples/java/Text/BookmarkInsertion.java @@ -36,7 +36,7 @@ // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document -// Step 3: enter a example text +// Step 3: enter an example text // Step 4: insert some bookmarks // Chapter 5.1.1.4 Inserting bookmarks @@ -49,7 +49,7 @@ public class BookmarkInsertion { public static void main(String args[]) { // You need the desktop to create a document // The getDesktop method does the UNO bootstrapping, gets the - // remote servie manager and the desktop object. + // remote service manager and the desktop object. com.sun.star.frame.XDesktop xDesktop = null; xDesktop = getDesktop(); @@ -89,7 +89,7 @@ public class BookmarkInsertion { xTextDocument, mList[ iCounter ] ); if( xSearchInterface != null ) { - // get the TextRange form the XInterface + // get the TextRange from the XInterface xSearchTextRange = UnoRuntime.queryInterface( com.sun.star.text.XTextRange.class, xSearchInterface); diff --git a/odk/examples/java/Text/HardFormatting.java b/odk/examples/java/Text/HardFormatting.java index 71fc0d2e7c23..81a294c86320 100644 --- a/odk/examples/java/Text/HardFormatting.java +++ b/odk/examples/java/Text/HardFormatting.java @@ -36,7 +36,7 @@ // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document -// Step 3: enter a example text +// Step 3: enter an example text // Step 4: get some text attributes // Step 5: check the PropertyState from the selection @@ -50,7 +50,7 @@ public class HardFormatting { public static void main(String args[]) { // You need the desktop to create a document // The getDesktop method does the UNO bootstrapping, gets the - // remote servie manager and the desktop object. + // remote service manager and the desktop object. com.sun.star.frame.XDesktop xDesktop = null; xDesktop = getDesktop(); diff --git a/odk/examples/java/Text/SWriter.java b/odk/examples/java/Text/SWriter.java index 811c0552953b..fc960c1f2bdb 100644 --- a/odk/examples/java/Text/SWriter.java +++ b/odk/examples/java/Text/SWriter.java @@ -83,7 +83,7 @@ public class SWriter { //oooooooooooooooooooooooooooStep 3oooooooooooooooooooooooooooooooooooooooo // insert some text. - // For this purpose get the Text-Object of the document an create the + // For this purpose get the Text-Object of the document and create the // cursor. Now it is possible to insert a text at the cursor-position // via insertString @@ -243,7 +243,7 @@ public class SWriter { // insert a text frame. // create an instance of com.sun.star.text.TextFrame using the MSF of the // document. Change some properties an insert it. - // Now get the text-Object of the frame an the corresponding cursor. + // Now get the text-Object of the frame and the corresponding cursor. // Insert some text via insertString. diff --git a/odk/examples/java/Text/StyleCreation.java b/odk/examples/java/Text/StyleCreation.java index f40057b65dda..d5151eca7c29 100644 --- a/odk/examples/java/Text/StyleCreation.java +++ b/odk/examples/java/Text/StyleCreation.java @@ -49,7 +49,7 @@ public class StyleCreation { public static void main(String args[]) { // You need the desktop to create a document // The getDesktop method does the UNO bootstrapping, gets the - // remote servie manager and the desktop object. + // remote service manager and the desktop object. com.sun.star.frame.XDesktop xDesktop = null; xDesktop = getDesktop(); diff --git a/odk/examples/java/Text/StyleInitialization.java b/odk/examples/java/Text/StyleInitialization.java index e825876bcdb2..63ea29b24e2c 100644 --- a/odk/examples/java/Text/StyleInitialization.java +++ b/odk/examples/java/Text/StyleInitialization.java @@ -36,7 +36,7 @@ // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document -// Step 3: enter a example text +// Step 3: enter an example text // Step 4: use the paragraph collection // Step 5: apply a different paragraph style on the paragraphs @@ -49,7 +49,7 @@ public class StyleInitialization { public static void main(String args[]) { // You need the desktop to create a document // The getDesktop method does the UNO bootstrapping, gets the - // remote servie manager and the desktop object. + // remote service manager and the desktop object. com.sun.star.frame.XDesktop xDesktop = null; xDesktop = getDesktop(); @@ -111,7 +111,7 @@ public class StyleInitialization { // END: 'Style basics' Section from the Tutorial // There are two way to travel through the paragraphs, with a - // paragraph cursor, or a enumeration. + // paragraph cursor, or an enumeration. // You find both ways in this example // The first way, with the paragraph cursor @@ -127,7 +127,7 @@ public class StyleInitialization { xEnumerationAccess = UnoRuntime.queryInterface( com.sun.star.container.XEnumerationAccess.class, xText ); - // the enumeration contains all paragraph form the document + // the enumeration contains all paragraph from the document com.sun.star.container.XEnumeration xParagraphEnumeration = null; xParagraphEnumeration = xEnumerationAccess.createEnumeration(); @@ -187,7 +187,7 @@ public class StyleInitialization { xParaStyleCollection = UnoRuntime.queryInterface( com.sun.star.container.XNameContainer.class, xNameAccess.getByName( "ParagraphStyles" )); - // create a array from strings with the name of all paragraph styles from the text document + // create an array from strings with the name of all paragraph styles from the text document String[] sElementNames = xParaStyleCollection.getElementNames(); int iElementCount = sElementNames.length; diff --git a/odk/examples/java/Text/TextReplace.java b/odk/examples/java/Text/TextReplace.java index 9dc3eec0a2a8..588d88ae621b 100644 --- a/odk/examples/java/Text/TextReplace.java +++ b/odk/examples/java/Text/TextReplace.java @@ -36,7 +36,7 @@ // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document -// Step 3: enter a example text +// Step 3: enter an example text // Step 4: replace some english spelled words with US spelled @@ -48,7 +48,7 @@ public class TextReplace { public static void main(String args[]) { // You need the desktop to create a document // The getDesktop method does the UNO bootstrapping, gets the - // remote servie manager and the desktop object. + // remote service manager and the desktop object. com.sun.star.frame.XDesktop xDesktop = null; xDesktop = getDesktop(); |