diff options
author | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-11 04:00:05 +0200 |
---|---|---|
committer | Markus Mohrhard <markus.mohrhard@googlemail.com> | 2012-10-11 04:39:27 +0200 |
commit | 2134399f0e462fb6721f20c58fcd8470110ff875 (patch) | |
tree | aa3a79d71491b46ecdfcec3d217f9433a18c148e /sc | |
parent | 68a60bc98a6ad2467a17a917881745cf9310e90f (diff) |
lock table only for the range edit field, not for the formula ones
Change-Id: I08880d97d880227cb47d929701e666a49aad5c57
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/condformat/condformatdlg.cxx | 8 | ||||
-rw-r--r-- | sc/source/ui/inc/condformatdlg.hxx | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/sc/source/ui/condformat/condformatdlg.cxx b/sc/source/ui/condformat/condformatdlg.cxx index f23bf21890a0..6bced64e01af 100644 --- a/sc/source/ui/condformat/condformatdlg.cxx +++ b/sc/source/ui/condformat/condformatdlg.cxx @@ -378,6 +378,14 @@ void ScCondFormatDlg::RefInputDone( sal_Bool bForced ) ScAnyRefDlg::RefInputDone(bForced); } +sal_Bool ScCondFormatDlg::IsTableLocked() const +{ + if(mpLastEdit && mpLastEdit != &maEdRange) + return sal_False; + + return sal_True; +} + sal_Bool ScCondFormatDlg::IsRefInputMode() const { return maEdRange.IsEnabled(); diff --git a/sc/source/ui/inc/condformatdlg.hxx b/sc/source/ui/inc/condformatdlg.hxx index 3b3cfb30aa56..194d60caca6b 100644 --- a/sc/source/ui/inc/condformatdlg.hxx +++ b/sc/source/ui/inc/condformatdlg.hxx @@ -138,7 +138,7 @@ public: virtual void SetReference(const ScRange&, ScDocument*); virtual sal_Bool IsRefInputMode() const; virtual void SetActive(); - virtual sal_Bool IsTableLocked() const { return sal_True; } + virtual sal_Bool IsTableLocked() const; void InvalidateRefData(); |