summaryrefslogtreecommitdiff
path: root/forms/source
diff options
context:
space:
mode:
authorFrank Schönheit <fs@openoffice.org>2001-06-25 09:30:09 +0000
committerFrank Schönheit <fs@openoffice.org>2001-06-25 09:30:09 +0000
commit2b0a847e5eb3fa62a3733d941fc3bd40092100a6 (patch)
tree8624980bde6f30ec506006860cef9228dad6b8c6 /forms/source
parenta9828d6d3061282652a8e3ff971fe4145315e30a (diff)
#87862# the format key is a persistent property (though it isn't in our aggregate)
Diffstat (limited to 'forms/source')
-rw-r--r--forms/source/component/FormattedField.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/forms/source/component/FormattedField.cxx b/forms/source/component/FormattedField.cxx
index 06cc167a75c4..b6e68931d63e 100644
--- a/forms/source/component/FormattedField.cxx
+++ b/forms/source/component/FormattedField.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: FormattedField.cxx,v $
*
- * $Revision: 1.14 $
+ * $Revision: 1.15 $
*
- * last change: $Author: fs $ $Date: 2001-05-31 14:03:04 $
+ * last change: $Author: fs $ $Date: 2001-06-25 10:30:09 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -592,9 +592,16 @@ void OFormattedModel::fillProperties(
// der Supplier ist fuer uns nur read-only
ModifyPropertyAttributes(_rAggregateProps, PROPERTY_FORMATSSUPPLIER, com::sun::star::beans::PropertyAttribute::READONLY, 0);
+
// TreatAsNumeric nicht transient : wir wollen es an der UI anbinden (ist noetig, um dem EffectiveDefault
// - der kann Text oder Zahl sein - einen Sinn zu geben)
ModifyPropertyAttributes(_rAggregateProps, PROPERTY_TREATASNUMERIC, 0, com::sun::star::beans::PropertyAttribute::TRANSIENT);
+ // same for FormatKey
+ // (though the paragraph above for the TreatAsNumeric does not hold anymore - we do not have an UI for this.
+ // But we have for the format key ...)
+ // 25.06.2001 - 87862 - frank.schoenheit@sun.com
+ ModifyPropertyAttributes(_rAggregateProps, PROPERTY_FORMATKEY, 0, com::sun::star::beans::PropertyAttribute::TRANSIENT);
+
RemoveProperty(_rAggregateProps, PROPERTY_STRICTFORMAT);
// no strict format property for formatted fields: it does not make sense, 'cause
// there is no general way to decide which characters/sub strings are allowed during the input of an