diff options
Diffstat (limited to 'qadevOOo/runner/util/DrawTools.java')
-rw-r--r-- | qadevOOo/runner/util/DrawTools.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/qadevOOo/runner/util/DrawTools.java b/qadevOOo/runner/util/DrawTools.java index d5f862cb49a7..4a329964b17e 100644 --- a/qadevOOo/runner/util/DrawTools.java +++ b/qadevOOo/runner/util/DrawTools.java @@ -1,7 +1,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -53,26 +53,26 @@ import com.sun.star.uno.Type; public class DrawTools { - + /** * Opens a new draw document * with arguments * @param xMSF the MultiServiceFactory * @return the XComponent Interface of the document - */ + */ public static XComponent createDrawDoc( XMultiServiceFactory xMSF ) { PropertyValue[] Args = new PropertyValue [0]; XComponent DrawDoc = DesktopTools.openNewDoc( xMSF, "sdraw", Args ); return DrawDoc; } // finish createDrawDoc - + /** * gets the XDrawPages container of a draw document - * + * * @param aDoc the draw document * @return the XDrawpages container of the document - */ + */ public static XDrawPages getDrawPages ( XComponent aDoc ) { XDrawPages oDPn = null; @@ -86,14 +86,14 @@ public class DrawTools { } return oDPn; } // finish getDrawPages - + /** * gets the specified XDrawPage of a draw document - * + * * @param aDoc the draw document * @param nr the index of the DrawPage * @return the XDrawpage with index nr of the document - */ + */ public static XDrawPage getDrawPage ( XComponent aDoc, int nr ) { XDrawPage oDP = null; @@ -105,29 +105,29 @@ public class DrawTools { } return oDP; } - + /** * gets the XShapes container of a draw page - * - * @param oDP the draw page + * + * @param oDP the draw page * @return the XDrawShape container of the drawpage - */ + */ public static XShapes getShapes ( XDrawPage oDP ) { return (XShapes) UnoRuntime.queryInterface(XShapes.class,oDP); } - + /** * creates a XShape - * + * * @param oDoc the document * @param height the height of the shape * @param width the width of the shape * @param x the x-position of the shape * @param y the y-position of the shape * @param kind the kind of the shape ('Ellipse', 'Line' or 'Rectangle') - * @return the created XShape - */ + * @return the created XShape + */ public XShape createShape( XComponent oDoc, int height, int width, int x, int y, String kind ) { @@ -136,10 +136,10 @@ public class DrawTools { ShapeDsc sDsc = new ShapeDsc( height, width, x, y, kind ); InstCreator instCreate = new InstCreator( oDoc, sDsc ); XShape oShape = (XShape)instCreate.getInstance(); - + return oShape; } - + /** * creates a XShape and adds it to the documents * first drawpage @@ -149,8 +149,8 @@ public class DrawTools { * @param x the x-position of the shape * @param y the y-position of the shape * @param kind the kind of the shape ('Ellipse', 'Line' or 'Rectangle') - * @return the created XShape - */ + * @return the created XShape + */ public void addShape( XComponent oDoc, int height, int width, int x, int y, String kind ) { |