summaryrefslogtreecommitdiffstats
path: root/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java
diff options
context:
space:
mode:
Diffstat (limited to 'qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java')
-rw-r--r--qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java17
1 files changed, 6 insertions, 11 deletions
diff --git a/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java b/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java
index 389e327c39ca..e02dbc6d9dd3 100644
--- a/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java
+++ b/qadevOOo/tests/java/mod/_sc/ScCellFieldsObj.java
@@ -83,8 +83,7 @@ public class ScCellFieldsObj extends TestCase {
*/
protected void cleanup( TestParameters tParam, PrintWriter log ) {
log.println( " disposing xSheetDoc " );
- XComponent oComp = (XComponent)
- UnoRuntime.queryInterface (XComponent.class, xSheetDoc);
+ XComponent oComp = UnoRuntime.queryInterface (XComponent.class, xSheetDoc);
util.DesktopTools.closeDoc(oComp);
}
@@ -107,28 +106,24 @@ public class ScCellFieldsObj extends TestCase {
// we want to create an instance of ScCellFieldObj.
// to do this we must get an MultiServiceFactory.
- XMultiServiceFactory _oMSF = (XMultiServiceFactory)
- UnoRuntime.queryInterface(XMultiServiceFactory.class, xSheetDoc);
+ XMultiServiceFactory _oMSF = UnoRuntime.queryInterface(XMultiServiceFactory.class, xSheetDoc);
aField = (XInterface)
_oMSF.createInstance("com.sun.star.text.TextField.URL");
- oContent = (XTextContent)
- UnoRuntime.queryInterface(XTextContent.class, aField);
+ oContent = UnoRuntime.queryInterface(XTextContent.class, aField);
XSpreadsheets oSheets = xSheetDoc.getSheets() ;
- XIndexAccess oIndexSheets = (XIndexAccess)
- UnoRuntime.queryInterface(XIndexAccess.class, oSheets);
+ XIndexAccess oIndexSheets = UnoRuntime.queryInterface(XIndexAccess.class, oSheets);
XSpreadsheet oSheet = (XSpreadsheet) AnyConverter.toObject(
new Type(XSpreadsheet.class),oIndexSheets.getByIndex(0));
XCell oCell = oSheet.getCellByPosition(2,3);
- oText = (XText)UnoRuntime.queryInterface(XText.class, oCell);
+ oText = UnoRuntime.queryInterface(XText.class, oCell);
oText.insertTextContent(
oText.createTextCursor(), oContent, true);
- XTextFieldsSupplier xTextFieldsSupp = (XTextFieldsSupplier)
- UnoRuntime.queryInterface(XTextFieldsSupplier.class, oCell);
+ XTextFieldsSupplier xTextFieldsSupp = UnoRuntime.queryInterface(XTextFieldsSupplier.class, oCell);
oObj = xTextFieldsSupp.getTextFields();
} catch (com.sun.star.lang.WrappedTargetException e) {