diff options
Diffstat (limited to 'qadevOOo/runner/util/WriterTools.java')
-rw-r--r-- | qadevOOo/runner/util/WriterTools.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/qadevOOo/runner/util/WriterTools.java b/qadevOOo/runner/util/WriterTools.java index 7b6b0cc8d18b..164bdf52e4c9 100644 --- a/qadevOOo/runner/util/WriterTools.java +++ b/qadevOOo/runner/util/WriterTools.java @@ -69,7 +69,7 @@ public class WriterTools { try { XDrawPageSupplier oDPS = UnoRuntime.queryInterface( XDrawPageSupplier.class, aDoc); - oDP = (XDrawPage) oDPS.getDrawPage(); + oDP = oDPS.getDrawPage(); } catch (Exception e) { throw new IllegalArgumentException("Couldn't get drawpage"); } @@ -82,7 +82,7 @@ public class WriterTools { int vpos, int width, int height, String pic, String name) { try { - Object oGObject = (XInterface) xMSF.createInstance( + Object oGObject = xMSF.createInstance( "com.sun.star.text.GraphicObject"); XText the_text = aDoc.getText(); @@ -91,7 +91,7 @@ public class WriterTools { XTextContent.class, oGObject); the_text.insertTextContent(the_cursor, the_content, true); - XPropertySet oProps = (XPropertySet) UnoRuntime.queryInterface( + XPropertySet oProps = UnoRuntime.queryInterface( XPropertySet.class, oGObject); String fullURL = util.utils.getFullTestURL(pic); |