diff options
author | Alexander Wilms <f.alexander.wilms@gmail.com> | 2014-02-25 19:24:31 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-02-26 10:02:49 -0600 |
commit | 99e3bd454bf607c5b561e2dc8e0f7a04f2bc28ed (patch) | |
tree | 929fae9a49326c5c92763fdd7c6e3f0def229e0a /odk/examples/java/Text | |
parent | 91ff31b6f7c2fd217518f54396bbca6d4bde98a3 (diff) |
Remove visual noise from odk
Change-Id: I5638e2d37827c2d7322b72bf6ce176ac843639f1
Reviewed-on: https://gerrit.libreoffice.org/8285
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'odk/examples/java/Text')
-rw-r--r-- | odk/examples/java/Text/BookmarkInsertion.java | 6 | ||||
-rw-r--r-- | odk/examples/java/Text/HardFormatting.java | 6 | ||||
-rw-r--r-- | odk/examples/java/Text/SWriter.java | 20 | ||||
-rw-r--r-- | odk/examples/java/Text/StyleCreation.java | 6 | ||||
-rw-r--r-- | odk/examples/java/Text/StyleInitialization.java | 4 | ||||
-rw-r--r-- | odk/examples/java/Text/TextDocumentStructure.java | 4 | ||||
-rw-r--r-- | odk/examples/java/Text/TextReplace.java | 4 |
7 files changed, 25 insertions, 25 deletions
diff --git a/odk/examples/java/Text/BookmarkInsertion.java b/odk/examples/java/Text/BookmarkInsertion.java index fee990dc653c..71cadb4b0594 100644 --- a/odk/examples/java/Text/BookmarkInsertion.java +++ b/odk/examples/java/Text/BookmarkInsertion.java @@ -32,14 +32,14 @@ * *************************************************************************/ -//*************************************************************************** + // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document // Step 3: enter a example text // Step 4: insert some bookmarks -// + // Chapter 5.1.1.4 Inserting bookmarks -//*************************************************************************** + import com.sun.star.uno.UnoRuntime; diff --git a/odk/examples/java/Text/HardFormatting.java b/odk/examples/java/Text/HardFormatting.java index bcd40262e6f4..62fa3a55ae1d 100644 --- a/odk/examples/java/Text/HardFormatting.java +++ b/odk/examples/java/Text/HardFormatting.java @@ -32,15 +32,15 @@ * *************************************************************************/ -//*************************************************************************** + // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document // Step 3: enter a example text // Step 4: get some text attributes // Step 5: check the PropertyState from the selection -// + // Chapter 4.1.4 Hard formatting -//*************************************************************************** + import com.sun.star.uno.UnoRuntime; diff --git a/odk/examples/java/Text/SWriter.java b/odk/examples/java/Text/SWriter.java index 7b79bc817997..0256324743ec 100644 --- a/odk/examples/java/Text/SWriter.java +++ b/odk/examples/java/Text/SWriter.java @@ -32,14 +32,14 @@ * *************************************************************************/ -//*************************************************************************** + // comment: Step 1: bootstrap UNO and get the remote component context // Step 2: open an empty text document // Step 3: enter some text // Step 4: insert a text table // Step 5: insert colored text // Step 6: insert a text frame -//*************************************************************************** + import com.sun.star.uno.UnoRuntime; @@ -51,7 +51,7 @@ public class SWriter { //oooooooooooooooooooooooooooStep 1oooooooooooooooooooooooooooooooooooooooo // bootstrap UNO and get the remote component context. The context can // be used to get the service manager - //************************************************************************* + com.sun.star.uno.XComponentContext xContext = null; try { @@ -70,14 +70,14 @@ public class SWriter { // For this purpose an instance of com.sun.star.frame.Desktop // is created. It's interface XDesktop provides the XComponentLoader, // which is used to open the document via loadComponentFromURL - //************************************************************************* + //Open Writer document System.out.println("Opening an empty Writer document"); com.sun.star.text.XTextDocument myDoc = openWriter(xContext); - //************************************************************************* + //oooooooooooooooooooooooooooStep 3oooooooooooooooooooooooooooooooooooooooo @@ -85,7 +85,7 @@ public class SWriter { // For this purpose get the Text-Object of the document an create the // cursor. Now it is possible to insert a text at the cursor-position // via insertString - //************************************************************************* + //getting the text object @@ -100,7 +100,7 @@ public class SWriter { //inserting a second line xText.insertString( xTCursor, "Now we're in the second line\n", false ); - //************************************************************************* + //oooooooooooooooooooooooooooStep 4oooooooooooooooooooooooooooooooooooooooo @@ -109,7 +109,7 @@ public class SWriter { // instance of com.sun.star.text.TextTable and initialize it. Now it can // be inserted at the cursor position via insertTextContent. // After that some properties are changed and some data is inserted. - //************************************************************************* + //inserting a text table System.out.println("Inserting a text table"); @@ -197,7 +197,7 @@ public class SWriter { // insert a colored text. // Get the propertySet of the cursor, change the CharColor and add a // shadow. Then insert the Text via InsertString at the cursor position. - //************************************************************************* + // get the property set of the cursor com.sun.star.beans.XPropertySet xTCPS = UnoRuntime.queryInterface(com.sun.star.beans.XPropertySet.class, @@ -246,7 +246,7 @@ public class SWriter { // document. Change some properties an insert it. // Now get the text-Object of the frame an the corresponding cursor. // Insert some text via insertString. - //************************************************************************* + // Create a TextFrame com.sun.star.text.XTextFrame xTF = null; diff --git a/odk/examples/java/Text/StyleCreation.java b/odk/examples/java/Text/StyleCreation.java index f32b6672dfae..4c9643514d24 100644 --- a/odk/examples/java/Text/StyleCreation.java +++ b/odk/examples/java/Text/StyleCreation.java @@ -32,14 +32,14 @@ * *************************************************************************/ -//*************************************************************************** + // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document // Step 3: create a new Paragraph style // Step 4: apply the Paragraph style -// + // Chapter 4.1.3 Defining Your Own Style -//*************************************************************************** + import com.sun.star.uno.UnoRuntime; diff --git a/odk/examples/java/Text/StyleInitialization.java b/odk/examples/java/Text/StyleInitialization.java index 21e0f9bf2bc3..5acf7559d673 100644 --- a/odk/examples/java/Text/StyleInitialization.java +++ b/odk/examples/java/Text/StyleInitialization.java @@ -32,13 +32,13 @@ * *************************************************************************/ -//*************************************************************************** + // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document // Step 3: enter a example text // Step 4: use the paragraph collection // Step 5: apply a different paragraph style on the paragraphs -//*************************************************************************** + import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.AnyConverter; diff --git a/odk/examples/java/Text/TextDocumentStructure.java b/odk/examples/java/Text/TextDocumentStructure.java index 74b2659ac9ee..1880dffd8458 100644 --- a/odk/examples/java/Text/TextDocumentStructure.java +++ b/odk/examples/java/Text/TextDocumentStructure.java @@ -32,12 +32,12 @@ * *************************************************************************/ -//*************************************************************************** + // comment: Step 1: bootstrap UNO and get the remote component context // Step 2: open an empty text document // Step 3: create an enumeration of all paragraphs // Step 4: create an enumeration of all text portions -//*************************************************************************** + import com.sun.star.uno.UnoRuntime; diff --git a/odk/examples/java/Text/TextReplace.java b/odk/examples/java/Text/TextReplace.java index 86ce7a4d2e18..b23cfb971982 100644 --- a/odk/examples/java/Text/TextReplace.java +++ b/odk/examples/java/Text/TextReplace.java @@ -32,12 +32,12 @@ * *************************************************************************/ -//*************************************************************************** + // comment: Step 1: get the Desktop object from the office // Step 2: open an empty text document // Step 3: enter a example text // Step 4: replace some english spelled words with US spelled -//*************************************************************************** + import com.sun.star.uno.UnoRuntime; |