diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java b/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java index b7e08e4241d9..757a4c7aac1b 100644 --- a/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java +++ b/qadevOOo/tests/java/mod/_sw/SwAccessibleFootnoteView.java @@ -67,12 +67,11 @@ public class SwAccessibleFootnoteView extends TestCase { log.println( "Creating a test environment" ); // get a soffice factory object - XMultiServiceFactory msf = (XMultiServiceFactory) - UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc); + XMultiServiceFactory msf = UnoRuntime.queryInterface(XMultiServiceFactory.class, xTextDoc); log.println("creating a footnote"); try { - oFootnote = (XFootnote) UnoRuntime.queryInterface(XFootnote.class, + oFootnote = UnoRuntime.queryInterface(XFootnote.class, msf.createInstance("com.sun.star.text.Footnote")); } catch (com.sun.star.uno.Exception e) { e.printStackTrace(log); @@ -91,9 +90,8 @@ public class SwAccessibleFootnoteView extends TestCase { } XController xController = xTextDoc.getCurrentController(); - XViewSettingsSupplier xViewSetSup = (XViewSettingsSupplier) - UnoRuntime.queryInterface(XViewSettingsSupplier.class, - xController); + XViewSettingsSupplier xViewSetSup = UnoRuntime.queryInterface(XViewSettingsSupplier.class, + xController); XPropertySet xPropSet = xViewSetSup.getViewSettings(); try { @@ -114,8 +112,7 @@ public class SwAccessibleFootnoteView extends TestCase { throw new StatusException("Couldn't set propertyValue...", e); } - XModel aModel = (XModel) - UnoRuntime.queryInterface(XModel.class, xTextDoc); + XModel aModel = UnoRuntime.queryInterface(XModel.class, xTextDoc); AccessibilityTools at = new AccessibilityTools(); |