diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java b/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java index 9a0ec50b4e07..2950cc7a6de2 100644 --- a/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java +++ b/qadevOOo/tests/java/mod/_sw/XMLSettingsExporter.java @@ -127,15 +127,14 @@ public class XMLSettingsExporter extends TestCase { oObj = (XInterface) xMSF.createInstanceWithArguments( "com.sun.star.comp.Writer.XMLSettingsExporter", new Object[] {arg}); - XExporter xEx = (XExporter) UnoRuntime.queryInterface + XExporter xEx = UnoRuntime.queryInterface (XExporter.class,oObj); xEx.setSourceDocument(xTextDoc); //set some settings XController xController = xTextDoc.getCurrentController(); - XViewSettingsSupplier xViewSetSup = (XViewSettingsSupplier) - UnoRuntime.queryInterface(XViewSettingsSupplier.class, - xController); + XViewSettingsSupplier xViewSetSup = UnoRuntime.queryInterface(XViewSettingsSupplier.class, + xController); XPropertySet xPropSet = xViewSetSup.getViewSettings(); xPropSet.setPropertyValue("ZoomValue", new Short(ZOOM)); |