summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
diff options
context:
space:
mode:
Diffstat (limited to 'odk/examples/DevelopersGuide/Charts/ChartInCalc.java')
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInCalc.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
index 06f571bec304..44ae46033389 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInCalc.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.
- *
+ *
*************************************************************************/
// __________ Imports __________
@@ -166,7 +166,7 @@ public class ChartInCalc
public void unlockControllers()
throws RuntimeException
{
- ((XModel) UnoRuntime.queryInterface( XModel.class, maChartDocument )).unlockControllers();
+ ((XModel) UnoRuntime.queryInterface( XModel.class, maChartDocument )).unlockControllers();
}
// ____________________
@@ -259,7 +259,7 @@ public class ChartInCalc
nMaxIndex = i;
}
}
-
+
// first parameter is the index of the point, the second one is the series
XPropertySet aPointProp = maDiagram.getDataPointProperties( 0, 1 );
@@ -276,7 +276,7 @@ public class ChartInCalc
catch( IndexOutOfBoundsException ex )
{
System.out.println( "Oops, there not enough data points or series for setting properties: " + ex );
- }
+ }
}
// ____________________
@@ -319,7 +319,7 @@ public class ChartInCalc
XPropertySet aDocProp = (XPropertySet) UnoRuntime.queryInterface(
XPropertySet.class, maChartDocument );
aDocProp.setPropertyValue( "HasMainTitle", new Boolean( true ));
-
+
XShape aTitle = maChartDocument.getTitle();
XPropertySet aTitleProp = (XPropertySet) UnoRuntime.queryInterface( XPropertySet.class, aTitle );