summaryrefslogtreecommitdiff
path: root/odk/examples/java
diff options
context:
space:
mode:
authorAlexander Wilms <f.alexander.wilms@gmail.com>2014-02-25 19:24:31 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-02-26 10:02:49 -0600
commit99e3bd454bf607c5b561e2dc8e0f7a04f2bc28ed (patch)
tree929fae9a49326c5c92763fdd7c6e3f0def229e0a /odk/examples/java
parent91ff31b6f7c2fd217518f54396bbca6d4bde98a3 (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')
-rw-r--r--odk/examples/java/Drawing/SDraw.java12
-rw-r--r--odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java92
-rw-r--r--odk/examples/java/Inspector/InspectorAddon.java2
-rw-r--r--odk/examples/java/Spreadsheet/EuroAdaption.java4
-rw-r--r--odk/examples/java/Spreadsheet/SCalc.java24
-rw-r--r--odk/examples/java/Storage/Test01.java4
-rw-r--r--odk/examples/java/Storage/Test02.java4
-rw-r--r--odk/examples/java/Storage/Test03.java4
-rw-r--r--odk/examples/java/Storage/Test04.java4
-rw-r--r--odk/examples/java/Storage/Test05.java4
-rw-r--r--odk/examples/java/Storage/Test07.java4
-rw-r--r--odk/examples/java/Storage/Test08.java4
-rw-r--r--odk/examples/java/Storage/Test09.java4
-rw-r--r--odk/examples/java/Text/BookmarkInsertion.java6
-rw-r--r--odk/examples/java/Text/HardFormatting.java6
-rw-r--r--odk/examples/java/Text/SWriter.java20
-rw-r--r--odk/examples/java/Text/StyleCreation.java6
-rw-r--r--odk/examples/java/Text/StyleInitialization.java4
-rw-r--r--odk/examples/java/Text/TextDocumentStructure.java4
-rw-r--r--odk/examples/java/Text/TextReplace.java4
20 files changed, 108 insertions, 108 deletions
diff --git a/odk/examples/java/Drawing/SDraw.java b/odk/examples/java/Drawing/SDraw.java
index a935b0d08c71..1e41d3679aee 100644
--- a/odk/examples/java/Drawing/SDraw.java
+++ b/odk/examples/java/Drawing/SDraw.java
@@ -32,11 +32,11 @@
*
*************************************************************************/
-//***************************************************************************
+
// comment: Step 1: bootstrap UNO and get the remote component context
// Step 2: open an empty text document
// Step 3: get the drawpage an insert some shapes
-//***************************************************************************
+
import java.lang.Math;
@@ -51,7 +51,7 @@ public class SDraw {
//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 {
@@ -72,7 +72,7 @@ public class SDraw {
// 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 document
//Draw
@@ -85,7 +85,7 @@ public class SDraw {
// To add a shape get the MultiServiceFaktory of the document, create an
// instance of the ShapeType and add it to the Shapes-container
// provided by the drawpage
- //*************************************************************************
+
// get the drawpage of drawing here
@@ -115,7 +115,7 @@ public class SDraw {
xShapes.add(createShape(xDrawDoc,3000,4500,15000,1000,"Ellipse",16711680));
xShapes.add(createShape(xDrawDoc,5000,3500,7500,5000,"Rectangle",6710932));
- //*************************************************************************
+
System.out.println("done");
System.exit(0);
}
diff --git a/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java b/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java
index 3ae069560838..644903ea00c4 100644
--- a/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java
+++ b/odk/examples/java/EmbedDocument/EmbeddedObject/OwnEmbeddedObject.java
@@ -65,7 +65,7 @@ public final class OwnEmbeddedObject extends WeakBase
Dimension m_aObjSize;
- // -------------------------------------------------------------
+
protected ArrayList<Object> GetListeners()
{
if ( m_aListeners == null )
@@ -74,7 +74,7 @@ public final class OwnEmbeddedObject extends WeakBase
return m_aListeners;
}
- // -------------------------------------------------------------
+
protected Dimension UpdateSizeAndGetFromActive()
{
if ( m_nObjectState == com.sun.star.embed.EmbedStates.ACTIVE )
@@ -86,7 +86,7 @@ public final class OwnEmbeddedObject extends WeakBase
return new Dimension();
}
- // -------------------------------------------------------------
+
protected void SwitchOwnPersistence( XStorage xParentStorage, XStorage xOwnStorage, String aEntryName )
{
if ( xOwnStorage != m_xOwnStorage )
@@ -99,7 +99,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
}
- // -------------------------------------------------------------
+
protected void SwitchOwnPersistence( XStorage xParentStorage, String aEntryName ) throws com.sun.star.io.IOException
{
if ( xParentStorage != m_xParentStorage || !aEntryName.equals( m_aEntryName ) )
@@ -124,7 +124,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
}
- // -------------------------------------------------------------
+
protected static void SaveDataToStorage( XStorage xStorage, String aString, Dimension aDimension ) throws com.sun.star.io.IOException
{
try
@@ -184,7 +184,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
}
- // -------------------------------------------------------------
+
protected void PostEvent( String aEvEntryName )
{
if ( m_aListeners != null )
@@ -207,7 +207,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
}
- // -------------------------------------------------------------
+
protected void StateChangeNotification( boolean bBeforeChange, int nOldState, int nNewState )
{
if ( m_aListeners != null )
@@ -235,7 +235,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
}
- // -------------------------------------------------------------
+
protected String ReadStringFromStream( XStorage xStorage, String aStreamName ) throws com.sun.star.io.IOException
{
if ( xStorage == null )
@@ -280,7 +280,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
}
- // -------------------------------------------------------------
+
protected void ReadSizeFromOwnStorage() throws com.sun.star.io.IOException
{
String aSize = ReadStringFromStream( m_xOwnStorage, "properties.txt" );
@@ -294,14 +294,14 @@ public final class OwnEmbeddedObject extends WeakBase
}
}
- // -------------------------------------------------------------
+
public OwnEmbeddedObject( XComponentContext context, byte[] aClassID )
{
m_xContext = context;
m_aClassID = aClassID;
};
- // -------------------------------------------------------------
+
public void CloseFrameRequest()
{
com.sun.star.embed.XEmbeddedClient xClient = m_xClient;
@@ -326,7 +326,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.embed.XCommonEmbedPersist:
- // -------------------------------------------------------------
+
public void storeOwn() throws com.sun.star.embed.WrongStateException, com.sun.star.io.IOException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -352,13 +352,13 @@ public final class OwnEmbeddedObject extends WeakBase
PostEvent( "OnSaveDone" );
}
- // -------------------------------------------------------------
+
public boolean isReadonly() throws com.sun.star.embed.WrongStateException
{
return false;
}
- // -------------------------------------------------------------
+
public void reload(com.sun.star.beans.PropertyValue[] aMediaArgs, com.sun.star.beans.PropertyValue[] aObjectArgs) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.io.IOException, com.sun.star.uno.Exception
{
// not implemented currently
@@ -366,7 +366,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.embed.XEmbedPersist:
- // -------------------------------------------------------------
+
public void setPersistentEntry(com.sun.star.embed.XStorage xStorage, String aEntryName, int nEntryConnectionMode, com.sun.star.beans.PropertyValue[] aMediaArgs, com.sun.star.beans.PropertyValue[] aObjectArgs) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.io.IOException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -439,7 +439,7 @@ public final class OwnEmbeddedObject extends WeakBase
throw new com.sun.star.lang.IllegalArgumentException();
}
- // -------------------------------------------------------------
+
public void storeToEntry(com.sun.star.embed.XStorage xStorage, String aEntryName, com.sun.star.beans.PropertyValue[] aMediaArgs, com.sun.star.beans.PropertyValue[] aObjectArgs) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.io.IOException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -464,7 +464,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
}
- // -------------------------------------------------------------
+
public void storeAsEntry(com.sun.star.embed.XStorage xStorage, String aEntryName, com.sun.star.beans.PropertyValue[] aMediaArgs, com.sun.star.beans.PropertyValue[] aObjectArgs) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.io.IOException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -499,7 +499,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
- // -------------------------------------------------------------
+
public void saveCompleted(boolean bUseNew) throws com.sun.star.embed.WrongStateException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -536,7 +536,7 @@ public final class OwnEmbeddedObject extends WeakBase
m_bWaitSaveCompleted = false;
}
- // -------------------------------------------------------------
+
public boolean hasEntry() throws com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -551,7 +551,7 @@ public final class OwnEmbeddedObject extends WeakBase
return false;
}
- // -------------------------------------------------------------
+
public String getEntryName() throws com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -564,7 +564,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.embed.XVisualObject:
- // -------------------------------------------------------------
+
public void setVisualAreaSize(long nAspect, com.sun.star.awt.Size aSize) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -587,7 +587,7 @@ public final class OwnEmbeddedObject extends WeakBase
m_aEditorFrame.setAppSize( m_aObjSize );
}
- // -------------------------------------------------------------
+
public com.sun.star.awt.Size getVisualAreaSize(long nAspect) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -608,7 +608,7 @@ public final class OwnEmbeddedObject extends WeakBase
return new com.sun.star.awt.Size( (int)m_aObjSize.getWidth(), (int)m_aObjSize.getHeight() );
}
- // -------------------------------------------------------------
+
public VisualRepresentation getPreferredVisualRepresentation(long nAspect) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -631,7 +631,7 @@ public final class OwnEmbeddedObject extends WeakBase
return aVisRep;
}
- // -------------------------------------------------------------
+
public int getMapUnit(long nAspect) throws com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -648,7 +648,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.embed.XClassifiedObject:
- // -------------------------------------------------------------
+
public byte[] getClassID()
{
if ( m_bDisposed )
@@ -657,7 +657,7 @@ public final class OwnEmbeddedObject extends WeakBase
return m_aClassID;
}
- // -------------------------------------------------------------
+
public String getClassName()
{
if ( m_bDisposed )
@@ -666,14 +666,14 @@ public final class OwnEmbeddedObject extends WeakBase
return new String();
}
- // -------------------------------------------------------------
+
public void setClassInfo(byte[] aClassID, String sClassName) throws com.sun.star.lang.NoSupportException
{
throw new com.sun.star.lang.NoSupportException();
}
// com.sun.star.embed.XComponentSupplier:
- // -------------------------------------------------------------
+
public com.sun.star.util.XCloseable getComponent()
{
if ( m_bDisposed )
@@ -684,7 +684,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.embed.XStateChangeBroadcaster:
- // -------------------------------------------------------------
+
public void addStateChangeListener(com.sun.star.embed.XStateChangeListener xListener)
{
if ( m_bDisposed )
@@ -693,7 +693,7 @@ public final class OwnEmbeddedObject extends WeakBase
GetListeners().add( xListener );
}
- // -------------------------------------------------------------
+
public void removeStateChangeListener(com.sun.star.embed.XStateChangeListener xListener)
{
if ( m_bDisposed )
@@ -704,7 +704,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.document.XEventBroadcaster:
- // -------------------------------------------------------------
+
public void addEventListener(com.sun.star.document.XEventListener xListener)
{
if ( m_bDisposed )
@@ -713,7 +713,7 @@ public final class OwnEmbeddedObject extends WeakBase
GetListeners().add( xListener );
}
- // -------------------------------------------------------------
+
public void removeEventListener(com.sun.star.document.XEventListener xListener)
{
if ( m_bDisposed )
@@ -724,7 +724,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.util.XCloseBroadcaster:
- // -------------------------------------------------------------
+
public void addCloseListener(com.sun.star.util.XCloseListener xListener)
{
if ( m_bDisposed )
@@ -733,7 +733,7 @@ public final class OwnEmbeddedObject extends WeakBase
GetListeners().add( xListener );
}
- // -------------------------------------------------------------
+
public void removeCloseListener(com.sun.star.util.XCloseListener xListener)
{
if ( m_bDisposed )
@@ -744,7 +744,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.util.XCloseable:
- // -------------------------------------------------------------
+
public void close(boolean bDeliverOwnership) throws com.sun.star.util.CloseVetoException
{
if ( m_bDisposed )
@@ -813,7 +813,7 @@ public final class OwnEmbeddedObject extends WeakBase
}
// com.sun.star.embed.XEmbeddedObject:
- // -------------------------------------------------------------
+
public void changeState(int nNewState) throws com.sun.star.embed.UnreachableStateException, com.sun.star.embed.WrongStateException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -928,7 +928,7 @@ public final class OwnEmbeddedObject extends WeakBase
StateChangeNotification( true, nOldState, nNewState );
}
- // -------------------------------------------------------------
+
public int[] getReachableStates() throws com.sun.star.embed.NeedsRunningStateException, com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -945,7 +945,7 @@ public final class OwnEmbeddedObject extends WeakBase
return pStates;
}
- // -------------------------------------------------------------
+
public int getCurrentState() throws com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -957,7 +957,7 @@ public final class OwnEmbeddedObject extends WeakBase
return m_nObjectState;
}
- // -------------------------------------------------------------
+
public void doVerb(int nVerbID) throws com.sun.star.lang.IllegalArgumentException, com.sun.star.embed.WrongStateException, com.sun.star.embed.UnreachableStateException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -974,7 +974,7 @@ public final class OwnEmbeddedObject extends WeakBase
changeState( com.sun.star.embed.EmbedStates.RUNNING );
}
- // -------------------------------------------------------------
+
public com.sun.star.embed.VerbDescriptor[] getSupportedVerbs() throws com.sun.star.embed.NeedsRunningStateException, com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -1058,7 +1058,7 @@ public final class OwnEmbeddedObject extends WeakBase
return new com.sun.star.embed.VerbDescriptor[0];
}
- // -------------------------------------------------------------
+
public void setClientSite(com.sun.star.embed.XEmbeddedClient xClient) throws com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -1070,7 +1070,7 @@ public final class OwnEmbeddedObject extends WeakBase
m_xClient = xClient;
}
- // -------------------------------------------------------------
+
public com.sun.star.embed.XEmbeddedClient getClientSite() throws com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -1082,7 +1082,7 @@ public final class OwnEmbeddedObject extends WeakBase
return m_xClient;
}
- // -------------------------------------------------------------
+
public void update() throws com.sun.star.embed.WrongStateException, com.sun.star.uno.Exception
{
if ( m_bDisposed )
@@ -1094,7 +1094,7 @@ public final class OwnEmbeddedObject extends WeakBase
// not implemented
}
- // -------------------------------------------------------------
+
public void setUpdateMode(int nMode) throws com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -1106,7 +1106,7 @@ public final class OwnEmbeddedObject extends WeakBase
// not implemented
}
- // -------------------------------------------------------------
+
public long getStatus(long nAspect) throws com.sun.star.embed.WrongStateException
{
if ( m_bDisposed )
@@ -1118,7 +1118,7 @@ public final class OwnEmbeddedObject extends WeakBase
return 0;
}
- // -------------------------------------------------------------
+
public void setContainerName(String sName)
{
if ( m_bDisposed )
diff --git a/odk/examples/java/Inspector/InspectorAddon.java b/odk/examples/java/Inspector/InspectorAddon.java
index d5ec16811fc7..6ca6c4260438 100644
--- a/odk/examples/java/Inspector/InspectorAddon.java
+++ b/odk/examples/java/Inspector/InspectorAddon.java
@@ -221,6 +221,6 @@ public class InspectorAddon {
}
// __create( XComponentContext ){
-//
+
// }
}
diff --git a/odk/examples/java/Spreadsheet/EuroAdaption.java b/odk/examples/java/Spreadsheet/EuroAdaption.java
index 51b419df5d92..8168aee4f1a4 100644
--- a/odk/examples/java/Spreadsheet/EuroAdaption.java
+++ b/odk/examples/java/Spreadsheet/EuroAdaption.java
@@ -32,13 +32,13 @@
*
*************************************************************************/
-//***************************************************************************
+
// 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 4: change the numberformat to EUR (Euro)
// Step 5: use the DM/EUR factor on each cell with a content
-//***************************************************************************
+
import com.sun.star.beans.PropertyValue;
import com.sun.star.beans.XPropertySet;
diff --git a/odk/examples/java/Spreadsheet/SCalc.java b/odk/examples/java/Spreadsheet/SCalc.java
index dded8243fa7e..51c869e6eec8 100644
--- a/odk/examples/java/Spreadsheet/SCalc.java
+++ b/odk/examples/java/Spreadsheet/SCalc.java
@@ -32,14 +32,14 @@
*
*************************************************************************/
-//***************************************************************************
+
// comment: Step 1: get the remote component context from the office
// Step 2: open an empty calc document
// Step 3: create cell styles
// Step 4: get the sheet an insert some data
// Step 5: apply the created cell syles
// Step 6: insert a 3D Chart
-//***************************************************************************
+
import com.sun.star.awt.Rectangle;
@@ -87,7 +87,7 @@ public class SCalc {
//oooooooooooooooooooooooooooStep 1oooooooooooooooooooooooooooooooooooooooooo
// call UNO bootstrap method and get the remote component context form
// the a running office (office will be started if necessary)
- //***************************************************************************
+
XComponentContext xContext = null;
// get the remote office component context
@@ -104,7 +104,7 @@ public class SCalc {
// For this purpose an instance of com.sun.star.frame.Desktop
// is created. The desktop provides the XComponentLoader interface,
// which is used to open the document via loadComponentFromURL
- //***************************************************************************
+
//Open document
@@ -115,7 +115,7 @@ public class SCalc {
System.out.println("Opening an empty Calc document");
myDoc = openCalc(xContext);
- //***************************************************************************
+
//oooooooooooooooooooooooooooStep 3oooooooooooooooooooooooooooooooooooooooooo
@@ -123,7 +123,7 @@ public class SCalc {
// For this purpose get the StyleFamiliesSupplier and the familiy
// CellStyle. Create an instance of com.sun.star.style.CellStyle and
// add it to the family. Now change some properties
- //***************************************************************************
+
try {
XStyleFamiliesSupplier xSFS = UnoRuntime.queryInterface(XStyleFamiliesSupplier.class, myDoc);
@@ -152,7 +152,7 @@ public class SCalc {
e.printStackTrace(System.err);
}
- //***************************************************************************
+
//oooooooooooooooooooooooooooStep 4oooooooooooooooooooooooooooooooooooooooooo
// get the sheet an insert some data.
@@ -160,7 +160,7 @@ public class SCalc {
// Now some data can be inserted. For this purpose get a Cell via
// getCellByPosition and insert into this cell via setValue() (for floats)
// or setFormula() for formulas and Strings
- //***************************************************************************
+
XSpreadsheet xSheet=null;
@@ -245,20 +245,20 @@ public class SCalc {
insertIntoCell(12,3,"38.5",xSheet,"V");
insertIntoCell(13,3,"=SUM(A4:L4)",xSheet,"");
- //***************************************************************************
+
//oooooooooooooooooooooooooooStep 5oooooooooooooooooooooooooooooooooooooooooo
// apply the created cell style.
// For this purpose get the PropertySet of the Cell and change the
// property CellStyle to the appropriate value.
- //***************************************************************************
+
// change backcolor
chgbColor( 1 , 0, 13, 0, "My Style", xSheet );
chgbColor( 0 , 1, 0, 3, "My Style", xSheet );
chgbColor( 1 , 1, 13, 3, "My Style2", xSheet );
- //***************************************************************************
+
//oooooooooooooooooooooooooooStep 6oooooooooooooooooooooooooooooooooooooooooo
// insert a 3D chart.
@@ -267,7 +267,7 @@ public class SCalc {
// 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.
- //***************************************************************************
+
// insert a chart
diff --git a/odk/examples/java/Storage/Test01.java b/odk/examples/java/Storage/Test01.java
index 4abe4b25b83c..43be8cce1af0 100644
--- a/odk/examples/java/Storage/Test01.java
+++ b/odk/examples/java/Storage/Test01.java
@@ -114,9 +114,9 @@ public class Test01 implements StorageTest {
if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) )
return false;
- // ================================================
+
// now check all the written and copied information
- // ================================================
+
// the temporary file must not be locked any more after storage disposing
pArgs[1] = new Integer( ElementModes.READWRITE );
diff --git a/odk/examples/java/Storage/Test02.java b/odk/examples/java/Storage/Test02.java
index c78260b95bc1..10fda47a713a 100644
--- a/odk/examples/java/Storage/Test02.java
+++ b/odk/examples/java/Storage/Test02.java
@@ -104,9 +104,9 @@ public class Test02 implements StorageTest {
return false;
- // ================================================
+
// now check all the written information
- // ================================================
+
// close the output part of the temporary stream
// the output part must present since we already wrote to the stream
diff --git a/odk/examples/java/Storage/Test03.java b/odk/examples/java/Storage/Test03.java
index fe9d8c05c499..2d8802eb3f37 100644
--- a/odk/examples/java/Storage/Test03.java
+++ b/odk/examples/java/Storage/Test03.java
@@ -85,9 +85,9 @@ public class Test03 implements StorageTest {
if ( !m_aTestHelper.disposeStorage( xTempSubStorage ) )
return false;
- // ================================================
+
// check storage hyerarchy tree
- // ================================================
+
// check that isStorageElement() and isStreamElement reacts to nonexisting object correctly
try {
diff --git a/odk/examples/java/Storage/Test04.java b/odk/examples/java/Storage/Test04.java
index 9196b3870c23..9be3c528ec8e 100644
--- a/odk/examples/java/Storage/Test04.java
+++ b/odk/examples/java/Storage/Test04.java
@@ -171,9 +171,9 @@ public class Test04 implements StorageTest {
if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) )
return false;
- // ================================================
+
// now check all the written and copied information
- // ================================================
+
// the temporary file must not be locked any more after storage disposing
pArgs[1] = new Integer( ElementModes.READWRITE );
diff --git a/odk/examples/java/Storage/Test05.java b/odk/examples/java/Storage/Test05.java
index 15f37b9661a8..2bb865620010 100644
--- a/odk/examples/java/Storage/Test05.java
+++ b/odk/examples/java/Storage/Test05.java
@@ -210,9 +210,9 @@ public class Test05 implements StorageTest {
return false;
- // ================================================
+
// now check all the written and copied information
- // ================================================
+
pArgs[1] = new Integer( ElementModes.READ );
Object oResultStorage = m_xStorageFactory.createInstanceWithArguments( pArgs );
diff --git a/odk/examples/java/Storage/Test07.java b/odk/examples/java/Storage/Test07.java
index 2e24b3c126b5..4e11fadbc855 100644
--- a/odk/examples/java/Storage/Test07.java
+++ b/odk/examples/java/Storage/Test07.java
@@ -92,9 +92,9 @@ public class Test07 implements StorageTest {
if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) )
return false;
- // ================================================
+
// now check all the written and copied information
- // ================================================
+
// the temporary file must not be locked any more after storage disposing
pArgs[1] = new Integer( ElementModes.READWRITE );
diff --git a/odk/examples/java/Storage/Test08.java b/odk/examples/java/Storage/Test08.java
index 4aef187901cc..e36780a07aed 100644
--- a/odk/examples/java/Storage/Test08.java
+++ b/odk/examples/java/Storage/Test08.java
@@ -147,9 +147,9 @@ public class Test08 implements StorageTest {
if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) )
return false;
- // ================================================
+
// now check all the written and copied information
- // ================================================
+
// the temporary file must not be locked any more after storage disposing
pArgs[1] = new Integer( ElementModes.READ );
diff --git a/odk/examples/java/Storage/Test09.java b/odk/examples/java/Storage/Test09.java
index 2c0fbac71950..0a8a365eebab 100644
--- a/odk/examples/java/Storage/Test09.java
+++ b/odk/examples/java/Storage/Test09.java
@@ -99,9 +99,9 @@ public class Test09 implements StorageTest {
if ( !m_aTestHelper.disposeStorage( xTempStorage ) || !m_aTestHelper.disposeStorage( xTempFileStorage ) )
return false;
- // ================================================
+
// now check all the written and copied information
- // ================================================
+
// the temporary file must not be locked any more after storage disposing
pArgs[1] = new Integer( ElementModes.READ );
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;