summaryrefslogtreecommitdiffstats
path: root/wizards
diff options
context:
space:
mode:
authorVladimir Glazounov <vg@openoffice.org>2008-01-28 14:31:25 +0000
committerVladimir Glazounov <vg@openoffice.org>2008-01-28 14:31:25 +0000
commit7a2fe426b8f25e28f785229ebc8f446e0bcc7830 (patch)
treef320025540a954ae36af6ee20e013fbf9a33ff6c /wizards
parentINTEGRATION: CWS onlineupdate6b (1.17.6); FILE MERGED (diff)
downloadcore-7a2fe426b8f25e28f785229ebc8f446e0bcc7830.tar.gz
core-7a2fe426b8f25e28f785229ebc8f446e0bcc7830.zip
INTEGRATION: CWS dbawizards (1.72.34); FILE MERGED
2008/01/03 13:55:15 bc 1.72.34.1: #i49332# resetting fixed property for date textfields
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/report/ReportWizard.java18
1 files changed, 12 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/report/ReportWizard.java b/wizards/com/sun/star/wizards/report/ReportWizard.java
index 7eae6ebff59e..413b3d9b7e91 100644
--- a/wizards/com/sun/star/wizards/report/ReportWizard.java
+++ b/wizards/com/sun/star/wizards/report/ReportWizard.java
@@ -4,9 +4,9 @@
*
* $RCSfile: ReportWizard.java,v $
*
- * $Revision: 1.72 $
+ * $Revision: 1.73 $
*
- * last change: $Author: ihi $ $Date: 2007-04-16 16:53:41 $
+ * last change: $Author: vg $ $Date: 2008-01-28 15:31:25 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -202,8 +202,8 @@ public class ReportWizard extends WizardDialog implements XTextListener, XComple
String sQueryName = CurDBCommandFieldSelection.getSelectedCommandName();
DBMetaData.CommandObject oCommand = CurDBMetaData.getQueryByName(sQueryName);
bHasEscapeProcessing = CurDBMetaData.hasEscapeProcessing(oCommand.xPropertySet);
+ String sCommand = (String) oCommand.xPropertySet.getPropertyValue("Command");
if (bHasEscapeProcessing){
- String sCommand = (String) oCommand.xPropertySet.getPropertyValue("Command");
bQueryCreated = (!sCommand.equals(""));
CurDBMetaData.oSQLQueryComposer.xQueryAnalyzer.setQuery(sCommand);
CurDBMetaData.oSQLQueryComposer.prependSortingCriteria();
@@ -211,7 +211,7 @@ public class ReportWizard extends WizardDialog implements XTextListener, XComple
bQueryCreated = true;
}
else{
- CurDBMetaData.Command = sQueryName;
+ CurDBMetaData.Command = sCommand;
bQueryCreated = true;
}
} catch (Exception e) {
@@ -474,8 +474,14 @@ public class ReportWizard extends WizardDialog implements XTextListener, XComple
private void toggleSortingPage(){
- int nCommandType = this.CurDBCommandFieldSelection.getSelectedCommandType();
- super.setStepEnabled(SOSORTPAGE, (nCommandType == CommandType.TABLE));
+ int nlCommandType = this.CurDBCommandFieldSelection.getSelectedCommandType();
+ boolean bdoenable = (nlCommandType == CommandType.TABLE);
+ if (!bdoenable) {
+ String sQueryName = CurDBCommandFieldSelection.getSelectedCommandName();
+ DBMetaData.CommandObject oCommand = CurDBMetaData.getQueryByName(sQueryName);
+ bdoenable = CurDBMetaData.hasEscapeProcessing(oCommand.xPropertySet);
+ }
+ super.setStepEnabled(SOSORTPAGE, bdoenable);
}