summaryrefslogtreecommitdiffstats
path: root/wizards/com/sun/star/wizards/form
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/form')
-rw-r--r--wizards/com/sun/star/wizards/form/CallFormWizard.java2
-rw-r--r--wizards/com/sun/star/wizards/form/FormDocument.java8
-rw-r--r--wizards/com/sun/star/wizards/form/FormWizard.java20
-rw-r--r--wizards/com/sun/star/wizards/form/StyleApplier.java2
4 files changed, 18 insertions, 14 deletions
diff --git a/wizards/com/sun/star/wizards/form/CallFormWizard.java b/wizards/com/sun/star/wizards/form/CallFormWizard.java
index 543a521c6ce7..59b51e63bca7 100644
--- a/wizards/com/sun/star/wizards/form/CallFormWizard.java
+++ b/wizards/com/sun/star/wizards/form/CallFormWizard.java
@@ -85,7 +85,7 @@ public class CallFormWizard
if (sEvent.compareTo(PropertyNames.START) == 0)
{
FormWizard CurFormWizard = new FormWizard( m_serviceFactory, m_wizardContext );
- CurFormWizard.startFormWizard();
+ CurFormWizard.start();
}
}
catch (Exception exception)
diff --git a/wizards/com/sun/star/wizards/form/FormDocument.java b/wizards/com/sun/star/wizards/form/FormDocument.java
index f12455c264d5..2f331f40bcfd 100644
--- a/wizards/com/sun/star/wizards/form/FormDocument.java
+++ b/wizards/com/sun/star/wizards/form/FormDocument.java
@@ -389,7 +389,7 @@ public class FormDocument extends TextDocument
public void initialize(int _curArrangement, Short _NBorderType)
{
- boolean badaptControlStyles = false;
+ boolean adaptControlStyles = false;
xTextDocument.lockControllers();
curArrangement = _curArrangement;
if (oGridControl != null)
@@ -413,14 +413,14 @@ public class FormDocument extends TextDocument
if (curArrangement == FormWizard.AS_GRID)
{
insertGridControl(_NBorderType);
- badaptControlStyles = true;
+ adaptControlStyles = true;
}
else
{
- badaptControlStyles = !oFormController.areControlsexisting();
+ adaptControlStyles = !oFormController.areControlsexisting();
oFormController.positionControls(_curArrangement, aStartPoint, getAvailableFormSize(), curUIControlArranger.getAlignValue(), _NBorderType);
}
- if (badaptControlStyles)
+ if (adaptControlStyles)
{
curStyleApplier.applyStyle(false, true);
}
diff --git a/wizards/com/sun/star/wizards/form/FormWizard.java b/wizards/com/sun/star/wizards/form/FormWizard.java
index cff52f46229b..2d4b33b0992c 100644
--- a/wizards/com/sun/star/wizards/form/FormWizard.java
+++ b/wizards/com/sun/star/wizards/form/FormWizard.java
@@ -29,7 +29,6 @@ package com.sun.star.wizards.form;
import com.sun.star.awt.XWindowPeer;
import com.sun.star.beans.PropertyValue;
import com.sun.star.lang.XMultiServiceFactory;
-import com.sun.star.lang.XComponent;
import com.sun.star.sdb.application.DatabaseObject;
import com.sun.star.wizards.common.Helper;
import com.sun.star.wizards.common.PropertyNames;
@@ -95,6 +94,11 @@ public class FormWizard extends DatabaseObjectWizard
}
}
+ public static void main(String i_args[])
+ {
+ executeWizardFromCommandLine( i_args, FormWizard.class.getName() );
+ }
+
// @Override
protected void enterStep(int nOldStep, int nNewStep)
{
@@ -334,7 +338,7 @@ public class FormWizard extends DatabaseObjectWizard
setCurrentRoadmapItemID((short) 1);
}
- public void startFormWizard()
+ public void start()
{
try
{
@@ -459,14 +463,14 @@ public class FormWizard extends DatabaseObjectWizard
private void toggleMainFormSteps()
{
curDBCommandFieldSelection.setModified(true);
- boolean benable = curDBCommandFieldSelection.getSelectedFieldNames().length > 0;
- enablefromStep(SOSUBFORM_PAGE, benable);
- setControlProperty("btnWizardNext", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(benable));
- if (benable)
+ boolean enabled = curDBCommandFieldSelection.getSelectedFieldNames().length > 0;
+ enablefromStep(SOSUBFORM_PAGE, enabled);
+ setControlProperty("btnWizardNext", PropertyNames.PROPERTY_ENABLED, enabled);
+ if (enabled)
{
if (curFormConfiguration.hasSubForm())
{
- benable = toggleSubFormSteps();
+ enabled = toggleSubFormSteps();
}
else
{
@@ -474,7 +478,7 @@ public class FormWizard extends DatabaseObjectWizard
setStepEnabled(SOFIELDLINKER_PAGE, false);
}
}
- setControlProperty("btnWizardFinish", PropertyNames.PROPERTY_ENABLED, Boolean.valueOf(benable));
+ setControlProperty("btnWizardFinish", PropertyNames.PROPERTY_ENABLED, enabled);
}
}
}
diff --git a/wizards/com/sun/star/wizards/form/StyleApplier.java b/wizards/com/sun/star/wizards/form/StyleApplier.java
index 9f6f6d6160dd..bf1b165250c4 100644
--- a/wizards/com/sun/star/wizards/form/StyleApplier.java
+++ b/wizards/com/sun/star/wizards/form/StyleApplier.java
@@ -343,7 +343,7 @@ public class StyleApplier
String[] sPropList = JavaTools.ArrayoutofString(scurline, ":");
String sPropValue = sPropList[1];
sPropValue = sPropValue.trim();
- if (sPropValue.indexOf("#") > 0)
+ if (sPropValue.indexOf("#") > -1)
{
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SEMI_COLON);
sPropValue = JavaTools.replaceSubString(sPropValue, PropertyNames.EMPTY_STRING, PropertyNames.SPACE);