diff options
Diffstat (limited to 'qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java')
-rw-r--r-- | qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java index 3dd8fc7defa4..9bce636bb357 100644 --- a/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java +++ b/qadevOOo/tests/java/mod/_xmloff/Draw/XMLExporter.java @@ -135,8 +135,7 @@ public class XMLExporter extends TestCase { "com.sun.star.comp.Draw.XMLExporter", new Object[] {arg}); - XDrawPagesSupplier supp = (XDrawPagesSupplier) - UnoRuntime.queryInterface(XDrawPagesSupplier.class, xDrawDoc); + XDrawPagesSupplier supp = UnoRuntime.queryInterface(XDrawPagesSupplier.class, xDrawDoc); XDrawPages set = supp.getDrawPages(); // This is an XML-export BUG (new slide named "NewSlide2" can not be exported to XML) @@ -144,17 +143,14 @@ public class XMLExporter extends TestCase { XDrawPage page1 = (XDrawPage) UnoRuntime.queryInterface(XDrawPage.class, set.getByIndex(0)); - XNamed NPage1 = (XNamed) - UnoRuntime.queryInterface(XNamed.class,page1); + XNamed NPage1 = UnoRuntime.queryInterface(XNamed.class,page1); NPage1.setName("NewSlide1"); XDrawPage page2 = (XDrawPage) UnoRuntime.queryInterface(XDrawPage.class, set.getByIndex(1)); - XNamed NPage2 = (XNamed) - UnoRuntime.queryInterface(XNamed.class,page2); + XNamed NPage2 = UnoRuntime.queryInterface(XNamed.class,page2); NPage2.setName("NewSlide2"); - XExporter xEx = (XExporter) - UnoRuntime.queryInterface(XExporter.class,oObj); + XExporter xEx = UnoRuntime.queryInterface(XExporter.class,oObj); xEx.setSourceDocument(xDrawDoc); } catch (com.sun.star.uno.Exception e) { |