summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-05-08 14:53:29 +0200
committerNoel Grandin <noel@peralex.com>2014-05-08 14:55:12 +0200
commitbf30c8b16d9ac9304a49020ec2d4f744d90abe26 (patch)
tree0296cec9ca0729874ed1a1963af9f1311366c326 /svtools
parentd15540c431587368d749b53074af25cf865e7a5f (diff)
use new VCL IsValueChangedFromSaved method
follow to commit ff1a7a59434f5f793d4044aad615bcf78148e963 "RFC: add IsValueChangedFromSaved to VCL button and listbox" Change-Id: If2e6d9e7c18590dc4abbc90362d7897ca2557dd6
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/brwbox/ebbcontrols.cxx6
-rw-r--r--svtools/source/dialogs/addresstemplate.cxx2
2 files changed, 4 insertions, 4 deletions
diff --git a/svtools/source/brwbox/ebbcontrols.cxx b/svtools/source/brwbox/ebbcontrols.cxx
index 4b952c35f0d9..c1b865c6a27a 100644
--- a/svtools/source/brwbox/ebbcontrols.cxx
+++ b/svtools/source/brwbox/ebbcontrols.cxx
@@ -129,7 +129,7 @@ namespace svt
bool ComboBoxCellController::IsModified() const
{
- return GetComboBox().GetSavedValue() != GetComboBox().GetText();
+ return GetComboBox().IsValueChangedFromSaved();
}
@@ -225,7 +225,7 @@ namespace svt
bool ListBoxCellController::IsModified() const
{
- return GetListBox().GetSelectEntryPos() != GetListBox().GetSavedValue();
+ return GetListBox().IsValueChangedFromSaved();
}
@@ -353,7 +353,7 @@ namespace svt
bool CheckBoxCellController::IsModified() const
{
- return GetCheckBox().GetSavedValue() != GetCheckBox().GetState();
+ return GetCheckBox().IsValueChangedFromSaved();
}
diff --git a/svtools/source/dialogs/addresstemplate.cxx b/svtools/source/dialogs/addresstemplate.cxx
index 1524eda16c3b..b3e0883a6828 100644
--- a/svtools/source/dialogs/addresstemplate.cxx
+++ b/svtools/source/dialogs/addresstemplate.cxx
@@ -1130,7 +1130,7 @@ void AssignmentPersistentData::Commit()
IMPL_LINK(AddressBookSourceDialog, OnComboLoseFocus, ComboBox*, _pBox)
{
- if (_pBox->GetSavedValue() != _pBox->GetText())
+ if ( _pBox->IsValueChangedFromSaved() )
{
if (_pBox == m_pDatasource)
resetTables();