diff options
author | Kurt Zenker <kz@openoffice.org> | 2006-07-06 13:32:44 +0000 |
---|---|---|
committer | Kurt Zenker <kz@openoffice.org> | 2006-07-06 13:32:44 +0000 |
commit | da1d529d7500536745f7285dd95287562bd9ccc6 (patch) | |
tree | 33927432ee91a722a0c2f00b630e30bb9830bef3 /wizards/com/sun | |
parent | bb2b5f259c3b81460517e3af35c714b32282f70c (diff) |
INTEGRATION: CWS dbwizardpp4 (1.7.28); FILE MERGED
2006/06/22 08:20:32 bc 1.7.28.1: #i45673# Fieldcolumns now differentiate between Fieldname and DisplayfieldName
Diffstat (limited to 'wizards/com/sun')
-rw-r--r-- | wizards/com/sun/star/wizards/ui/TitlesComponent.java | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/ui/TitlesComponent.java b/wizards/com/sun/star/wizards/ui/TitlesComponent.java index 454ccc0d5e51..4ccf0cffa052 100644 --- a/wizards/com/sun/star/wizards/ui/TitlesComponent.java +++ b/wizards/com/sun/star/wizards/ui/TitlesComponent.java @@ -4,9 +4,9 @@ * * $RCSfile: TitlesComponent.java,v $ * - * $Revision: 1.7 $ + * $Revision: 1.8 $ * - * last change: $Author: vg $ $Date: 2006-04-07 13:25:55 $ + * last change: $Author: kz $ $Date: 2006-07-06 14:32:44 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -162,20 +162,21 @@ public class TitlesComponent extends ControlScroller{ else fieldtitles[i] = fieldnames[i]; } + else{ + fieldtitles[i] = fieldnames[i]; + } } } public String getFieldNameByTitleControl(Object _fieldtitlemodel){ - Map locfieldtitles = getFieldTitles(); String sTitleModelName = (String) Helper.getUnoPropertyValue(_fieldtitlemodel, "Name"); String sindex = JavaTools.getSuffixNumber(sTitleModelName); return (String) CurUnoDialog.getControlProperty(this.SOLABELPREFIX + sindex, "Label"); } - - public Map getFieldTitles() { + public String[] getFieldTitles(){ PropertyValue[][] titlelist = this.getScrollFieldValues(); PropertyValue[] currowproperties; PropertyValue curtitleproperty; @@ -185,7 +186,7 @@ public class TitlesComponent extends ControlScroller{ fieldtitles[i] = (String) curtitleproperty.Value; } refreshtitleset(); - return fieldtitleset; + return fieldtitles; } |