summaryrefslogtreecommitdiff
path: root/toolkit/source/controls/formattedcontrol.cxx
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2004-04-02 09:33:12 +0000
committerRüdiger Timm <rt@openoffice.org>2004-04-02 09:33:12 +0000
commit5e5c3a65c6a2cd1c22b77f3b6ca14818df93b839 (patch)
tree95876fef4d1535768ec0522af7895d2c3783ab79 /toolkit/source/controls/formattedcontrol.cxx
parentc1dbf583f2c1c5ec50315c0a11bac184ae0a6664 (diff)
INTEGRATION: CWS frmvalidation (1.4.38); FILE MERGED
2004/03/12 09:25:37 fs 1.4.38.1: #i25106# +BASEPRROPERTY_ENFORCE_FORMAT
Diffstat (limited to 'toolkit/source/controls/formattedcontrol.cxx')
-rw-r--r--toolkit/source/controls/formattedcontrol.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/toolkit/source/controls/formattedcontrol.cxx b/toolkit/source/controls/formattedcontrol.cxx
index 59d25dbd20c4..17cbae077811 100644
--- a/toolkit/source/controls/formattedcontrol.cxx
+++ b/toolkit/source/controls/formattedcontrol.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: formattedcontrol.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: kz $ $Date: 2003-12-11 11:57:56 $
+ * last change: $Author: rt $ $Date: 2004-04-02 10:33:12 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -117,6 +117,7 @@ namespace toolkit
ImplRegisterProperty( BASEPROPERTY_TABSTOP );
ImplRegisterProperty( BASEPROPERTY_TEXT );
ImplRegisterProperty( BASEPROPERTY_TEXTCOLOR );
+ ImplRegisterProperty( BASEPROPERTY_ENFORCE_FORMAT );
Any aTreatAsNumber;
aTreatAsNumber <<= (sal_Bool) sal_True;
@@ -228,6 +229,10 @@ namespace toolkit
{
Reference< XVclWindowPeer > xPeer(getPeer(), UNO_QUERY);
OSL_ENSURE(xPeer.is(), "UnoFormattedFieldControl::textChanged : what kind of peer do I have ?");
+
+ ::rtl::OUString sTextPropertyName = GetPropertyName( BASEPROPERTY_TEXT );
+ ImplSetPropertyValue( sTextPropertyName, xPeer->getProperty( sTextPropertyName ), sal_False );
+
::rtl::OUString sEffectiveValue = GetPropertyName( BASEPROPERTY_EFFECTIVE_VALUE );
ImplSetPropertyValue( sEffectiveValue, xPeer->getProperty( sEffectiveValue ), sal_False );