diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-07-06 13:21:09 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-07-06 13:21:09 +0000 |
commit | a4046c639dda6b9981b964d9d13652d62c71a4c2 (patch) | |
tree | 315b27169900620c95d527e5773b02f6219754d4 /wizards | |
parent | 2899572fa35681bbd72e6ceb215516a8e5d4d026 (diff) |
INTEGRATION: CWS dbwizardpp4 (1.5.28); FILE MERGED
2006/06/22 08:20:29 bc 1.5.28.1: #i45673# Fieldcolumns now differentiate between Fieldname and DisplayfieldName
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/query/QuerySummary.java | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/wizards/com/sun/star/wizards/query/QuerySummary.java b/wizards/com/sun/star/wizards/query/QuerySummary.java index a95be3479..0ec21f046 100644 --- a/wizards/com/sun/star/wizards/query/QuerySummary.java +++ b/wizards/com/sun/star/wizards/query/QuerySummary.java @@ -4,9 +4,9 @@ * * $RCSfile: QuerySummary.java,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: vg $ $Date: 2006-04-07 12:49:31 $ + * last change: $Author: kz $ $Date: 2006-07-06 14:21:09 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -132,20 +132,19 @@ public class QuerySummary extends QueryMetaData { private String combineFieldNameFraction() { String CurString = ""; String sReturn = oResource.getResText(RID_QUERY + 50); - int FieldCount = FieldNames.length; String BaseString = oResource.getResText(RID_QUERY + 92); - for (int i = 0; i < FieldCount; i++) { + for (int i = 0; i < FieldColumns.length; i++) { CurString = BaseString; - FieldColumn CurDBFieldColumn = super.getFieldColumnByDisplayName(FieldNames[i]); - int iAggregate = getAggregateIndex(FieldNames[i]); + FieldColumn CurDBFieldColumn = super.getFieldColumnByDisplayName(FieldColumns[i].DisplayFieldName); + int iAggregate = getAggregateIndex(FieldColumns[i].FieldName); if (iAggregate > -1) { String sAggregateDisplay = AggregateFieldNames[iAggregate][1] + "(" + AggregateFieldNames[iAggregate][0] + ")"; CurString = JavaTools.replaceSubString(CurString, sAggregateDisplay, "<FIELDNAME>"); } else CurString = JavaTools.replaceSubString(CurString, CurDBFieldColumn.DisplayFieldName, "<FIELDNAME>"); - sReturn += JavaTools.replaceSubString(CurString, CurDBFieldColumn.AliasName, "<FIELDTITLE>"); - sReturn = appendClauseSeparator(sReturn, sSeparator, i, FieldCount); + sReturn += JavaTools.replaceSubString(CurString, CurDBFieldColumn.FieldTitle, "<FIELDTITLE>"); + sReturn = appendClauseSeparator(sReturn, sSeparator, i, FieldColumns.length); } return sReturn; } @@ -172,7 +171,7 @@ public class QuerySummary extends QueryMetaData { String sReturn = oResource.getResText(_InitResID); int FieldCount = _FieldNames.length; for (int i = 0; i < FieldCount; i++) { - sReturn += this.getFieldColumnByDisplayName(_FieldNames[i]).AliasName; + sReturn += this.getFieldColumnByDisplayName(_FieldNames[i]).FieldTitle; if (i < FieldCount - 1) sReturn += sSeparator; } @@ -203,7 +202,7 @@ public class QuerySummary extends QueryMetaData { CurString = JavaTools.replaceSubString(BaseString, sAggregateDisplay, _ReplaceTags[a]); } else - CurString = JavaTools.replaceSubString(BaseString, this.getFieldColumnByDisplayName(_FieldNames[i][a]).AliasName, _ReplaceTags[a]); + CurString = JavaTools.replaceSubString(BaseString, this.getFieldColumnByDisplayName(_FieldNames[i][a]).FieldTitle, _ReplaceTags[a]); } else CurString = JavaTools.replaceSubString(CurString, _FieldNames[i][a], _ReplaceTags[a]); |