summaryrefslogtreecommitdiff
path: root/qadevOOo/runner/util/DrawTools.java
diff options
context:
space:
mode:
authorBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:20:53 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-23 15:20:53 +0200
commitb29a838b1cd9014c0951312f53ca6c0ebb9e1219 (patch)
treef951731fcd4f0c17dd7a55b154be238cb2b71bae /qadevOOo/runner/util/DrawTools.java
parentb9bff9906e94ef3b1c8d6da779269122d39d8354 (diff)
recreated tag libreoffice-3.3.0.4 which had these commits:
commit 868b90218854a32bdd0bbcc85aad838f198e40bb (tag: refs/tags/libreoffice-3.3.0.4, refs/remotes/origin/libreoffice-3-3-0) Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 18 19:01:21 2011 +0100 Version 3.3.0.4, tag libreoffice-3.3.0.4 (3.3-rc4) commit 7525320ca65ca0cf2ed5ec481d9f26638aed1b5c Author: Petr Mladek <pmladek@suse.cz> Date: Tue Jan 11 22:59:38 2011 +0100 Branch libreoffice-3-3-0 This is 'libreoffice-3-3-0' - the stable branch for the 3.3.0 release. Only very safe changes, reviewed by three people are allowed. If you want to commit more complicated fix for the next 3.3.x release, please use the 'libreoffice-3-3' branch. If you want to build something cool, unstable, and risky, use master.
Notes
Notes: split repo tag: testing_libreoffice-3.3.0.4
Diffstat (limited to 'qadevOOo/runner/util/DrawTools.java')
-rw-r--r--qadevOOo/runner/util/DrawTools.java42
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 ) {