diff options
author | Andrea Gelmini <andrea.gelmini@gelma.net> | 2019-07-20 18:05:48 +0200 |
---|---|---|
committer | Andrea Gelmini <andrea.gelmini@gelma.net> | 2019-07-20 22:39:25 +0200 |
commit | dd950a6edbd3abc45409724be8cabe1dee71b63d (patch) | |
tree | ad898067d9e7b9af0c06ed21fc83b6f00f22d6a1 /odk/examples/java/Text/StyleInitialization.java | |
parent | 2286eb08e7a6a820ec71ed22945cf422fa88a16a (diff) |
Fix typos
Change-Id: Ib361243332b7219c0073c787c378c648e44705f2
Reviewed-on: https://gerrit.libreoffice.org/75487
Tested-by: Jenkins
Reviewed-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Diffstat (limited to 'odk/examples/java/Text/StyleInitialization.java')
-rw-r--r-- | odk/examples/java/Text/StyleInitialization.java | 10 |
1 files changed, 5 insertions, 5 deletions
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; |