summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Spreadsheet
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/DevelopersGuide/Spreadsheet
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/DevelopersGuide/Spreadsheet')
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java8
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java12
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java30
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java10
4 files changed, 30 insertions, 30 deletions
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java b/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
index 4b1682af2c7e..b018c55be9ef 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
@@ -43,7 +43,7 @@ import com.sun.star.uno.RuntimeException;
public class GeneralTableSample extends SpreadsheetDocHelper
{
-// ________________________________________________________________
+
public static void main( String args[] )
{
@@ -64,7 +64,7 @@ public class GeneralTableSample extends SpreadsheetDocHelper
System.exit( 0 );
}
-// ________________________________________________________________
+
/// This sample function modifies cells and cell ranges.
public void doSampleFunction() throws RuntimeException, Exception
@@ -217,12 +217,12 @@ public class GeneralTableSample extends SpreadsheetDocHelper
xSheet.getCellByPosition( 2, 9 ).setFormula( aText );
}
-// ________________________________________________________________
+
public GeneralTableSample( String[] args )
{
super( args );
}
-// ________________________________________________________________
+
}
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java
index 58dbf4873d64..0526a474ae7b 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java
@@ -56,7 +56,7 @@ public class SpreadsheetDocHelper
// private com.sun.star.lang.XMultiServiceFactory mxMSFactory;
private com.sun.star.sheet.XSpreadsheetDocument mxDocument;
-// ________________________________________________________________
+
public SpreadsheetDocHelper( String[] args )
{
@@ -151,7 +151,7 @@ public class SpreadsheetDocHelper
return xSheet;
}
-// ________________________________________________________________
+
// Methods to fill values into cells.
/** Writes a double value into a spreadsheet.
@@ -249,7 +249,7 @@ public class SpreadsheetDocHelper
xPropSet.setPropertyValue( "CharWeight", new Float( com.sun.star.awt.FontWeight.BOLD ) );
}
-// ________________________________________________________________
+
// Methods to create cell addresses and range addresses.
/** Creates a com.sun.star.table.CellAddress and initializes it
@@ -277,7 +277,7 @@ public class SpreadsheetDocHelper
return xAddr.getRangeAddress();
}
-// ________________________________________________________________
+
// Methods to convert cell addresses and range addresses to strings.
/** Returns the text address of the cell.
@@ -345,7 +345,7 @@ public class SpreadsheetDocHelper
return aStr;
}
-// ________________________________________________________________
+
// Connect to a running office that is accepting connections.
private void connect()
@@ -384,5 +384,5 @@ public class SpreadsheetDocHelper
com.sun.star.sheet.XSpreadsheetDocument.class, xComponent );
}
-// ________________________________________________________________
+
}
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
index 62726efafcbf..619ee83ee4ae 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
@@ -43,7 +43,7 @@ import com.sun.star.uno.AnyConverter;
public class SpreadsheetSample extends SpreadsheetDocHelper
{
-// ________________________________________________________________
+
public static void main( String args[] )
{
@@ -63,14 +63,14 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
System.exit( 0 );
}
-// ________________________________________________________________
+
public SpreadsheetSample( String[] args )
{
super( args );
}
-// ________________________________________________________________
+
/** This sample function performs all changes on the document. */
public void doSampleFunction()
@@ -197,7 +197,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
}
}
-// ________________________________________________________________
+
/** All samples regarding the service com.sun.star.sheet.SheetCell. */
private void doCellSamples() throws RuntimeException, Exception
@@ -292,7 +292,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
xAnnotation.setIsVisible( true );
}
-// ________________________________________________________________
+
/** All samples regarding the service com.sun.star.sheet.SheetCellRange. */
private void doCellRangeSamples() throws RuntimeException, Exception
@@ -527,7 +527,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
com.sun.star.sheet.XCellSeries.class, xSheet.getCellRangeByName( aRange ) );
}
-// ________________________________________________________________
+
/** All samples regarding cell range collections. */
private void doCellRangesSamples() throws RuntimeException, Exception
@@ -591,7 +591,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
+ " resulting list: " + xContainer.getRangeAddressesAsString() );
}
-// ________________________________________________________________
+
/** All samples regarding cell cursors. */
private void doCellCursorSamples() throws RuntimeException, Exception
@@ -621,7 +621,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
System.out.println( "The used area is: " + getCellRangeAddressString( xCursor, true ) );
}
-// ________________________________________________________________
+
/** All samples regarding the formatting of cells and ranges. */
private void doFormattingSamples() throws RuntimeException, Exception
@@ -790,7 +790,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
xPropSet.setPropertyValue( "ConditionalFormat", xEntries );
}
-// ________________________________________________________________
+
/** All samples regarding the spreadsheet document. */
private void doDocumentSamples() throws RuntimeException, Exception
@@ -938,7 +938,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
xScenario.apply();
}
-// ________________________________________________________________
+
private void doNamedRangesSamples() throws RuntimeException, Exception
{
@@ -1003,7 +1003,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
xSheet.getCellByPosition( 8, 49 ).setFormula( "=Apples+Oranges" );
}
-// ________________________________________________________________
+
/** Helper for doDatabaseSamples: get name of first database. */
private String getFirstDatabaseName()
@@ -1221,7 +1221,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
System.out.println("can't get database");
}
-// ________________________________________________________________
+
private void doDataPilotSamples() throws Exception
{
@@ -1270,7 +1270,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
xFieldProp.setPropertyValue( "Function", com.sun.star.sheet.GeneralFunction.AVERAGE );
}
-// ________________________________________________________________
+
private void doFunctionAccessSamples() throws RuntimeException, Exception
{
@@ -1322,7 +1322,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
System.out.println();
}
-// ________________________________________________________________
+
private void doApplicationSettingsSamples() throws RuntimeException, Exception
{
@@ -1345,6 +1345,6 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
System.out.println( aEntries[i] );
}
-// ________________________________________________________________
+
}
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java b/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
index 8b4e8afaef10..d522b09cde5a 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
@@ -41,7 +41,7 @@ import com.sun.star.uno.UnoRuntime;
public class ViewSample extends SpreadsheetDocHelper
{
-// ________________________________________________________________
+
public static void main( String args[] )
{
@@ -59,14 +59,14 @@ public class ViewSample extends SpreadsheetDocHelper
System.exit( 0 );
}
-// ________________________________________________________________
+
public ViewSample( String[] args )
{
super( args );
}
-// ________________________________________________________________
+
/** This sample function performs all changes on the view. */
public void doSampleFunction() throws Exception
@@ -126,7 +126,7 @@ public class ViewSample extends SpreadsheetDocHelper
}
}
-// ________________________________________________________________
+
// listener to react on finished selection
@@ -156,6 +156,6 @@ public class ViewSample extends SpreadsheetDocHelper
}
}
-// ________________________________________________________________
+
}