diff options
author | Lionel Elie Mamane <lionel@mamane.lu> | 2015-10-16 15:07:48 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-10-26 16:04:04 +0100 |
commit | dfd0e81376312f8da4dcf4bbb7cbbf5ef866486d (patch) | |
tree | 52563b62683d4d34dc4c0159c78a214fe4c781e0 /svx | |
parent | e53c08b6e7968d50857253e78add3ef124193bda (diff) |
tdf#93618 teach DbCellControl about "Date"/"Time" as known value property
Change-Id: Icbb575b86ff39ce263271110aae6e49e5b4e7ac2
Reviewed-on: https://gerrit.libreoffice.org/19409
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Eike Rathke <erack@redhat.com>
(cherry picked from commit de79c5838412a89313777e61c6cdc2ac01f9980a)
Diffstat (limited to 'svx')
-rw-r--r-- | svx/source/fmcomp/gridcell.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/svx/source/fmcomp/gridcell.cxx b/svx/source/fmcomp/gridcell.cxx index 28a606c1be5e..f82e42f67266 100644 --- a/svx/source/fmcomp/gridcell.cxx +++ b/svx/source/fmcomp/gridcell.cxx @@ -573,6 +573,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 @@ -678,6 +680,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() ) |