diff options
author | Kurt Zenker <kz@openoffice.org> | 2005-03-18 15:18:09 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2005-03-18 15:18:09 +0000 |
commit | df50735b2b8862f605ae58973586a9c8cab3d564 (patch) | |
tree | bc66e773d180550eac731bc06acbc77f3a0780e0 /wizards | |
parent | 45d19c2dd7040b6b7ee10021f4cef7fe35eefc6e (diff) |
INTEGRATION: CWS dbwizard4 (1.3.22); FILE MERGED
2005/03/16 12:26:53 bc 1.3.22.4: #i44783#'setFieldColumns' now with command as parameter
2005/03/15 17:45:58 bc 1.3.22.3: #i44576#database connection now not disposed when RW finishes
2005/02/21 15:22:39 bc 1.3.22.2: ##Formarrangement 'In Blocks' improved
Issue number:
Submitted by:
Reviewed by:
2005/02/17 13:50:19 bc 1.3.22.1: ##ControlArrangement in FormWizard modified
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/form/FormWizard.java | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/wizards/com/sun/star/wizards/form/FormWizard.java b/wizards/com/sun/star/wizards/form/FormWizard.java index 47f2fd638620..181837551a77 100644 --- a/wizards/com/sun/star/wizards/form/FormWizard.java +++ b/wizards/com/sun/star/wizards/form/FormWizard.java @@ -2,9 +2,9 @@ * * $RCSfile: FormWizard.java,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: vg $ $Date: 2005-02-21 13:57:11 $ + * last change: $Author: kz $ $Date: 2005-03-18 16:18:09 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -112,7 +112,7 @@ public class FormWizard extends WizardDialog{ super.addResourceHandler("FormWizard", "dbw"); Helper.setUnoPropertyValues(xDialogModel, new String[] { "Height","Moveable","Name","PositionX","PositionY","Step","TabIndex","Title","Width"}, - new Object[] { new Integer(210),Boolean.TRUE, "DialogForm", new Integer(102),new Integer(41),new Integer(1), new Short((short)0), "FormWizard", new Integer(310)} ); + new Object[] { new Integer(210),Boolean.TRUE, "DialogForm", new Integer(102),new Integer(41),new Integer(1), new Short((short)0), oResource.getResText(UIConsts.RID_FORM), new Integer(310)} ); drawNaviBar(); if (getFormResources() == true) setRightPaneHeaders(oResource, UIConsts.RID_FORM + 90, 8); @@ -163,7 +163,7 @@ public class FormWizard extends WizardDialog{ switch (nOldStep){ case SOMAINPAGE: curFormDocument.oMainFormDBMetaData.setFieldNames(curDBCommandFieldSelection.getSelectedFieldNames()); - curFormDocument.oMainFormDBMetaData.setFieldColumns(true); + curFormDocument.oMainFormDBMetaData.setFieldColumns(true, curDBCommandFieldSelection.getSelectedCommandName()); curFormDocument.LinkFieldNames = JavaTools.removeOutdatedFields(curFormDocument.LinkFieldNames, curFormDocument.oMainFormDBMetaData.FieldNames, 1); break; case SOSUBFORMPAGE: @@ -190,7 +190,7 @@ public class FormWizard extends WizardDialog{ public static void main(String args[]) { - String ConnectStr = "uno:socket,host=localhost,port=8111;urp,negotiate=0,forcesynchronous=1;StarOffice.NamingService"; //localhost ;Lo-1.Germany.sun.com; 10.16.65.155 + String ConnectStr = "uno:socket,host=localhost,port=8100;urp,negotiate=0,forcesynchronous=1;StarOffice.NamingService"; //localhost ;Lo-1.Germany.sun.com; 10.16.65.155 PropertyValue[] curproperties = null; try { XMultiServiceFactory xLocMSF = com.sun.star.wizards.common.Desktop.connect(ConnectStr); @@ -199,6 +199,7 @@ public class FormWizard extends WizardDialog{ System.out.println("Connected to "+ ConnectStr); curproperties = new PropertyValue[1]; curproperties[0] = Properties.createProperty("DatabaseLocation", "file:///C:/Documents and Settings/bc93774.EHAM02-DEV/My Documents/MyDocAssign.odb"); //Mydbwizard2DocAssign.odb; MyDBase.odb, Mydbwizard2DocAssign.odb MyDBase.odb; Mydbwizard2DocAssign.odb; NewAccessDatabase, MyDocAssign baseLocation ); "DataSourceName", "db1"); + curproperties[0] = Properties.createProperty("DatabaseLocation", "file:///x:/bc/LDAP Directory.odb"); //Mydbwizard2DocAssign.odb; MyDBase.odb, Mydbwizard2DocAssign.odb MyDBase.odb; Mydbwizard2DocAssign.odb; NewAccessDatabase, MyDocAssign baseLocation ); "DataSourceName", "db1"); CurFormWizard.startFormWizard(xLocMSF, curproperties); } } |