From dd950a6edbd3abc45409724be8cabe1dee71b63d Mon Sep 17 00:00:00 2001
From: Andrea Gelmini
The method gets called with s_aMutex acquired.
- @return an pointer to the newly created array helper. Must not be NULL.
+ @return a pointer to the newly created array helper. Must not be NULL.
*/
virtual ::cppu::IPropertyArrayHelper* createArrayHelper( ) const = 0;
};
diff --git a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
index e36776469d2a..aaec8cdd3d78 100644
--- a/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
+++ b/odk/examples/DevelopersGuide/Database/DriverSkeleton/SStatement.cxx
@@ -309,7 +309,7 @@ sal_Bool OStatement_Base::convertFastPropertyValue(
void OStatement_Base::setFastPropertyValue_NoBroadcast(sal_Int32 nHandle,const Any& rValue) throw (Exception)
{
- // set the value to what ever is necessary
+ // set the value to whatever is necessary
switch(nHandle)
{
case PROPERTY_ID_QUERYTIMEOUT:
diff --git a/odk/examples/DevelopersGuide/Database/sdbcx.java b/odk/examples/DevelopersGuide/Database/sdbcx.java
index ac7111d11826..8d7bcab93a78 100644
--- a/odk/examples/DevelopersGuide/Database/sdbcx.java
+++ b/odk/examples/DevelopersGuide/Database/sdbcx.java
@@ -131,7 +131,7 @@ public class sdbcx
if(con != null)
{
System.out.println("Connection could be created!");
- // we the XDatabaseDefinitionSupplier interface from the driver to get the XTablesSupplier
+ // with the XDatabaseDefinitionSupplier interface from the driver to get the XTablesSupplier
XDataDefinitionSupplier xDDSup = UnoRuntime.queryInterface(
XDataDefinitionSupplier.class,xDriver);
if(xDDSup != null)
diff --git a/odk/examples/DevelopersGuide/Forms/KeyGenerator.java b/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
index 08beae57c63d..43e5acdfade4 100644
--- a/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
+++ b/odk/examples/DevelopersGuide/Forms/KeyGenerator.java
@@ -98,7 +98,7 @@ class UniqueColumnValue
@returns
a String which can be used as statement to retrieve a unique value for the given column.
- The result set resulting from such a execution contains the value in its first column.
+ The result set resulting from such an execution contains the value in its first column.
*/
private String composeUniqueyKeyStatement( XPropertySet xForm, String sFieldName ) throws com.sun.star.uno.Exception
{
diff --git a/odk/examples/DevelopersGuide/Forms/SalesFilter.java b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
index 9082772517c5..519e3e80ce65 100644
--- a/odk/examples/DevelopersGuide/Forms/SalesFilter.java
+++ b/odk/examples/DevelopersGuide/Forms/SalesFilter.java
@@ -280,7 +280,7 @@ class SalesFilter implements XActionListener, XPropertyChangeListener, XResetLis
}
/* ------------------------------------------------------------------ */
- /** checks if the given filter index referes to the "
Some fo the examples need a running office +
Some of the examples need a running office instance listening on a port. If this is necessary you will get further information in the makefiles.
All examples marked with a href="./Drawing/ObjectTransformationDemo.java" title="link to Drawing/ObjectTransformationDemo.java">ObjectTransformationDemo
Every makefile contains at least one run target to execute an 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(); diff --git a/odk/examples/python/toolpanel/readme b/odk/examples/python/toolpanel/readme index 9061339e5b24..5dedd9385a78 100644 --- a/odk/examples/python/toolpanel/readme +++ b/odk/examples/python/toolpanel/readme @@ -6,8 +6,8 @@ This extension is a Proof of concept on implementing Toolpanel in Python - alternatively zip the files and name it toolpanel.oxt - install it - activate Task Panes in menu (check View > Task Pane menu) -- enjoy ! +- enjoy! -The events of the controls (Click me button) in the task pane are handled by basic macro code to illustrate that Toolpanel definition and events codes are indepedant. One could use any language to react on events +The events of the controls (Click me button) in the task panel are handled by basic macro code to illustrate that Toolpanel definition and events codes are independent. One could use any language to react on events Then focus only on .py and xml files for the toolpanel activation analysis diff --git a/odk/util/check.pl b/odk/util/check.pl index 03b58fe3da7c..be03d40ff585 100644 --- a/odk/util/check.pl +++ b/odk/util/check.pl @@ -17,7 +17,7 @@ # # -# check - a perl script to check some files and directories if they exists +# check - a perl script to check some files and directories if they exist # A first simple check if the SDK was built completely. # -- cgit