summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/document
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2005-02-21 12:55:24 +0000
committerVladimir Glazounov <vg@openoffice.org>2005-02-21 12:55:24 +0000
commit24d92a05385b4db1c4b48c7939eeea2ed3741d4c (patch)
treea7bec3cd23dd540db82e2fdfd7f5cf258d1e1cdd /wizards/com/sun/star/wizards/document
parent668f22a8c3325290af0cc0bd8e90a768c9445866 (diff)
INTEGRATION: CWS dbwizard3 (1.3.20); FILE MERGED
2005/01/03 06:30:11 bc 1.3.20.2: #i37475# several changes 2004/12/18 21:54:57 bc 1.3.20.1: ##code for including schemas and catalogs in tablewizard added
Diffstat (limited to 'wizards/com/sun/star/wizards/document')
-rw-r--r--wizards/com/sun/star/wizards/document/FormHandler.java12
1 files changed, 9 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/document/FormHandler.java b/wizards/com/sun/star/wizards/document/FormHandler.java
index ffc8719dcee7..31a2f268dbdf 100644
--- a/wizards/com/sun/star/wizards/document/FormHandler.java
+++ b/wizards/com/sun/star/wizards/document/FormHandler.java
@@ -2,9 +2,9 @@
*
* $RCSfile: FormHandler.java,v $
*
-* $Revision: 1.4 $
+* $Revision: 1.5 $
*
-* last change: $Author: vg $ $Date: 2005-02-17 11:20:30 $
+* last change: $Author: vg $ $Date: 2005-02-21 13:55:24 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -88,6 +88,7 @@ import com.sun.star.form.XFormsSupplier;
import com.sun.star.lang.IllegalArgumentException;
import com.sun.star.lang.IndexOutOfBoundsException;
import com.sun.star.lang.WrappedTargetException;
+import com.sun.star.lang.XComponent;
import com.sun.star.lang.XMultiServiceFactory;
import com.sun.star.lang.XServiceInfo;
import com.sun.star.container.XNamed;
@@ -110,6 +111,8 @@ public class FormHandler {
public final static int SONUMERICCONTROL = 5;
public final static int SOGRIDCONTROL = 6;
public final static int SOIMAGECONTROL = 7;
+ public final static int SODATETIMECONTROL = 8;
+
int iImageControlHeight = 2000;
public static String SOSIZETEXT = "The quick brown fox jumps over the lazy dog. The quick brown fox jumps over the lazy dog.";
int iXPixelFactor = -1;
@@ -433,16 +436,19 @@ public class FormHandler {
public void removeAllShapes() throws Exception{
for (int i = this.xDrawPage.getCount(); i >-1; i--){
XShape xShape = (XShape) UnoRuntime.queryInterface(XShape.class, xDrawPage.getByIndex(i));
- xDrawPage.remove(xShape);
+ removeShape(xShape);
}
}
+
/**
* By removing the shape the whole control is disposed too
*
*/
public void removeShape(XShape _xShape){
xDrawPage.remove(_xShape);
+ XComponent xComponent = (XComponent) UnoRuntime.queryInterface(XComponent.class, _xShape);
+ xComponent.dispose();
}