summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Spreadsheet
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Spreadsheet')
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java10
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java12
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java4
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java8
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java2
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java8
-rw-r--r--odk/examples/DevelopersGuide/Spreadsheet/XExampleAddIn.idl10
7 files changed, 27 insertions, 27 deletions
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java b/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
index 44f17a50c83d..94c0c48adc6e 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleAddIn.java
@@ -2,7 +2,7 @@
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -29,7 +29,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************/
class ExampleAddInResult implements com.sun.star.sheet.XVolatileResult
@@ -250,11 +250,11 @@ public class ExampleAddIn
// ignored in this example
aFuncLocale = aLocale;
}
-
+
public com.sun.star.lang.Locale getLocale()
{
return aFuncLocale;
- }
+ }
// XServiceName
@@ -300,7 +300,7 @@ public class ExampleAddIn
multiFactory, regKey);
return xSingleServiceFactory;
}
-
+
public static boolean __writeRegistryServiceInfo(
com.sun.star.registry.XRegistryKey regKey)
{
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
index 80f5ff15a4d2..3bd4703aa71d 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ExampleDataPilotSource.java
@@ -2,7 +2,7 @@
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -29,7 +29,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************/
// Example DataPilot source component
@@ -309,7 +309,7 @@ class ExampleLevel implements
aResults[nResultPos].Name = ExampleSettings.getMemberName(nMember);
aResults[nResultPos].Caption = aResults[nResultPos].Name;
aResults[nResultPos].Flags =
- com.sun.star.sheet.MemberResultFlags.HASMEMBER;
+ com.sun.star.sheet.MemberResultFlags.HASMEMBER;
++nResultPos;
for (int nInner=1; nInner<nFill; nInner++)
@@ -323,7 +323,7 @@ class ExampleLevel implements
}
return aResults;
}
-
+
// XPropertySet
public com.sun.star.beans.XPropertySetInfo getPropertySetInfo()
@@ -803,7 +803,7 @@ public class ExampleDataPilotSource
}
// XDataPilotResults
-
+
public com.sun.star.sheet.DataResult[][] getResults()
{
int[] nDigits = new int[ExampleSettings.nDimensionCount];
@@ -969,7 +969,7 @@ public class ExampleDataPilotSource
return xSingleServiceFactory;
}
-
+
public static boolean __writeRegistryServiceInfo(
com.sun.star.registry.XRegistryKey regKey)
{
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java b/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
index 30bd5c143aa1..3307e18a9247 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/GeneralTableSample.java
@@ -2,7 +2,7 @@
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -29,7 +29,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************/
import com.sun.star.uno.UnoRuntime;
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java
index 35beab5053e2..734a6af8ad77 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetDocHelper.java
@@ -2,7 +2,7 @@
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -29,7 +29,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************/
import com.sun.star.comp.servicemanager.ServiceManager;
@@ -371,14 +371,14 @@ public class SpreadsheetDocHelper
// First step: get the remote office component context
mxRemoteContext = com.sun.star.comp.helper.Bootstrap.bootstrap();
System.out.println("Connected to a running office ...");
-
+
mxRemoteServiceManager = mxRemoteContext.getServiceManager();
}
catch( Exception e) {
System.err.println("ERROR: can't get a component context from a running office ...");
e.printStackTrace();
System.exit(1);
- }
+ }
}
}
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
index fcae70c91ec4..7fc2ab28ff29 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/SpreadsheetSample.java
@@ -724,7 +724,7 @@ public class SpreadsheetSample extends SpreadsheetDocHelper
// get the global collection of table auto formats, use global service
// manager
com.sun.star.lang.XMultiComponentFactory xServiceManager = getServiceManager();
-
+
Object aAutoFormatsObj = xServiceManager.createInstanceWithContext(
"com.sun.star.sheet.TableAutoFormats", getContext());
com.sun.star.container.XNameContainer xAutoFormatsNA =
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java b/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
index dd89ce017ead..36a3029b2310 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
+++ b/odk/examples/DevelopersGuide/Spreadsheet/ViewSample.java
@@ -2,7 +2,7 @@
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -29,7 +29,7 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************/
import com.sun.star.uno.UnoRuntime;
@@ -75,7 +75,7 @@ public class ViewSample extends SpreadsheetDocHelper
com.sun.star.frame.XModel xModel = (com.sun.star.frame.XModel)
UnoRuntime.queryInterface( com.sun.star.frame.XModel.class, xDoc);
com.sun.star.frame.XController xController = xModel.getCurrentController();
-
+
// --- Spreadsheet view ---
// freeze the first column and first two rows
com.sun.star.sheet.XViewFreezable xFreeze = (com.sun.star.sheet.XViewFreezable)
@@ -96,7 +96,7 @@ public class ViewSample extends SpreadsheetDocHelper
UnoRuntime.queryInterface( com.sun.star.beans.XPropertySet.class, xRange );
xRangeProp.setPropertyValue( "IsCellBackgroundTransparent", new Boolean( false ) );
xRangeProp.setPropertyValue( "CellBackColor", new Integer( 0xFFFFCC ) );
-
+
// --- View settings ---
// change the view to display green grid lines
com.sun.star.beans.XPropertySet xProp = (com.sun.star.beans.XPropertySet)
diff --git a/odk/examples/DevelopersGuide/Spreadsheet/XExampleAddIn.idl b/odk/examples/DevelopersGuide/Spreadsheet/XExampleAddIn.idl
index 7834fc8b3c6d..6f6a48f33ae4 100644
--- a/odk/examples/DevelopersGuide/Spreadsheet/XExampleAddIn.idl
+++ b/odk/examples/DevelopersGuide/Spreadsheet/XExampleAddIn.idl
@@ -2,7 +2,7 @@
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
- *
+ *
* Copyright 2000, 2010 Oracle and/or its affiliates.
* All rights reserved.
*
@@ -29,11 +29,11 @@
* ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR
* TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE
* USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
+ *
*************************************************************************/
#ifndef _ORG_OPENOFFICE_SHEET_ADDIN_XEXAMPLEADDIN_IDL_
-#define _ORG_OPENOFFICE_SHEET_ADDIN_XEXAMPLEADDIN_IDL_
+#define _ORG_OPENOFFICE_SHEET_ADDIN_XEXAMPLEADDIN_IDL_
#include <com/sun/star/uno/XInterface.idl>
#include <com/sun/star/sheet/XVolatileResult.idl>
@@ -47,10 +47,10 @@ module org {
{
/// Sample function that just increments a value.
long getIncremented( [in] long nValue );
-
+
/// Sample function that returns a volatile result.
com::sun::star::sheet::XVolatileResult getCounter( [in] string aName );
- };
+ };
};
};
};