summaryrefslogtreecommitdiff
path: root/odk/examples/DevelopersGuide/Charts
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2007-07-31 12:53:35 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2007-07-31 12:53:35 +0000
commitc6d77ab2d87a1336ac53256aeaf2ee398904b423 (patch)
treef2fd8afde5d7a9324f070e2aff0a6c165d5cc739 /odk/examples/DevelopersGuide/Charts
parent2a2736f721ea53ab528d84aa638ef4f5e827bcb0 (diff)
INTEGRATION: CWS jsc18 (1.3.322); FILE MERGED
2007/07/17 11:50:42 jsc 1.3.322.1: #i79965# set HasMainTitle property
Diffstat (limited to 'odk/examples/DevelopersGuide/Charts')
-rw-r--r--odk/examples/DevelopersGuide/Charts/ChartInCalc.java11
1 files changed, 8 insertions, 3 deletions
diff --git a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
index 0f150eda2a0e..6f487de72f6b 100644
--- a/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
+++ b/odk/examples/DevelopersGuide/Charts/ChartInCalc.java
@@ -2,9 +2,9 @@
*
* $RCSfile: ChartInCalc.java,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: hr $ $Date: 2003-06-30 15:09:06 $
+ * last change: $Author: hr $ $Date: 2007-07-31 13:53:35 $
*
* The Contents of this file are made available subject to the terms of
* the BSD license.
@@ -267,7 +267,7 @@ public class ChartInCalc
}
// first parameter is the index of the point, the second one is the series
- XPropertySet aPointProp = maDiagram.getDataPointProperties( nMaxIndex, 1 );
+ XPropertySet aPointProp = maDiagram.getDataPointProperties( 0, 1 );
// set a different, larger symbol
aPointProp.setPropertyValue( "SymbolType", new Integer( ChartSymbolType.SYMBOL6 ));
@@ -322,6 +322,10 @@ public class ChartInCalc
com.sun.star.lang.IllegalArgumentException, WrappedTargetException
{
// change main title
+ 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 );
@@ -329,6 +333,7 @@ public class ChartInCalc
if( aTitleProp != null )
{
aTitleProp.setPropertyValue( "String", "Random Scatter Chart" );
+ aTitleProp.setPropertyValue( "CharHeight", new Float(14.0) );
}
// align title with y axis