summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLionel Elie Mamane <lionel@mamane.lu>2015-10-16 15:07:48 +0200
committerLionel Elie Mamane <lionel@mamane.lu>2015-10-16 15:12:01 +0200
commite6c329cc55af00fec99ada5cac15b2d4752b7474 (patch)
tree20a9648cd0768a95cab027ae99f768fc07758b0d
parent3615f5a1c7b6002b50a8e5adafce804f06ebefa2 (diff)
tdf#93618 teach DbCellControl about "Date"/"Time" as known value property
Change-Id: Icbb575b86ff39ce263271110aae6e49e5b4e7ac2
-rw-r--r--svx/source/fmcomp/gridcell.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx
index 52caf084f1dc..2c5847a157f4 100644
--- a/svx/source/fmcomp/gridcell.cxx
+++ b/svx/source/fmcomp/gridcell.cxx
@@ -571,6 +571,8 @@ DbCellControl::DbCellControl( DbGridColumn& _rColumn, bool /*_bText*/ )
implDoPropertyListening( FM_PROP_TEXT, false );
implDoPropertyListening( FM_PROP_EFFECTIVE_VALUE, false );
implDoPropertyListening( FM_PROP_SELECT_SEQ, false );
+ implDoPropertyListening( FM_PROP_DATE, false );
+ implDoPropertyListening( FM_PROP_TIME, false );
// be listener at the bound field as well
try
@@ -676,6 +678,8 @@ void DbCellControl::_propertyChanged(const PropertyChangeEvent& _rEvent) throw(R
|| _rEvent.PropertyName == FM_PROP_TEXT
|| _rEvent.PropertyName == FM_PROP_EFFECTIVE_VALUE
|| _rEvent.PropertyName == FM_PROP_SELECT_SEQ
+ || _rEvent.PropertyName == FM_PROP_DATE
+ || _rEvent.PropertyName == FM_PROP_TIME
)
{ // it was one of the known "value" properties
if ( !isValuePropertyLocked() )