incubator-ooo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lil...@apache.org
Subject svn commit: r1390863 - in /incubator/ooo/trunk/test/testuno/source/testcase/uno: sd/chart/ChartData.java sd/chart/ChartProperties.java sw/field/TitleField.java
Date Thu, 27 Sep 2012 06:21:11 GMT
Author: liliny
Date: Thu Sep 27 06:21:11 2012
New Revision: 1390863

URL: http://svn.apache.org/viewvc?rev=1390863&view=rev
Log:
Add type conversion to resolve compile error problem.

Modified:
    incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartData.java
    incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartProperties.java
    incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/field/TitleField.java

Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartData.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartData.java?rev=1390863&r1=1390862&r2=1390863&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartData.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartData.java Thu Sep 27
06:21:11 2012
@@ -45,7 +45,6 @@ import com.sun.star.beans.PropertyValue;
 import com.sun.star.beans.XPropertySet;
 import com.sun.star.chart.ChartDataCaption;
 import com.sun.star.chart.ChartLegendPosition;
-import com.sun.star.chart.XAxis;
 import com.sun.star.chart.XAxisYSupplier;
 import com.sun.star.chart.XChartData;
 import com.sun.star.chart.XChartDataArray;
@@ -246,7 +245,7 @@ public class ChartData {
 				XStorable.class, presentationDocument);
 		xStorable.storeToURL(FileUtil.getUrl(filePath), aStoreProperties);
 
-		return UnoRuntime.queryInterface(XComponent.class,
+		return (XComponent) UnoRuntime.queryInterface(XComponent.class,
 				unoApp.loadDocument(filePath));
 	}
 

Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartProperties.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartProperties.java?rev=1390863&r1=1390862&r2=1390863&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartProperties.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sd/chart/ChartProperties.java Thu
Sep 27 06:21:11 2012
@@ -388,7 +388,7 @@ public class ChartProperties {
 		closer.close(true);
 
 		// load and get Chart
-		impressDocument = UnoRuntime.queryInterface(XComponent.class,
+		impressDocument = (XComponent) UnoRuntime.queryInterface(XComponent.class,
 				unoApp.loadDocument(filePath));
 		xShapes = ShapeUtil.getShapes(reLoadFile, 1);
 		xShape = (XShape) UnoRuntime.queryInterface(XShape.class,
@@ -522,7 +522,7 @@ public class ChartProperties {
 				XStorable.class, presentationDocument);
 		xStorable.storeToURL(FileUtil.getUrl(filePath), aStoreProperties);
 
-		return UnoRuntime.queryInterface(XComponent.class,
+		return (XComponent) UnoRuntime.queryInterface(XComponent.class,
 				unoApp.loadDocument(filePath));
 	}
 

Modified: incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/field/TitleField.java
URL: http://svn.apache.org/viewvc/incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/field/TitleField.java?rev=1390863&r1=1390862&r2=1390863&view=diff
==============================================================================
--- incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/field/TitleField.java (original)
+++ incubator/ooo/trunk/test/testuno/source/testcase/uno/sw/field/TitleField.java Thu Sep
27 06:21:11 2012
@@ -184,7 +184,7 @@ public class TitleField {
 	 * @throws Exception
 	 */
 	private boolean isContainTitleField(XTextDocument document, String content) throws Exception
{
-		XTextFieldsSupplier fieldsSupplier = UnoRuntime.queryInterface(XTextFieldsSupplier.class,
document);
+		XTextFieldsSupplier fieldsSupplier = (XTextFieldsSupplier) UnoRuntime.queryInterface(XTextFieldsSupplier.class,
document);
 		XEnumerationAccess xEnumeratedFields = fieldsSupplier.getTextFields();
 		XEnumeration enumeration = xEnumeratedFields.createEnumeration();
 		while (enumeration.hasMoreElements()) {



Mime
View raw message