summaryrefslogtreecommitdiff
path: root/sc/source
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-11 04:00:05 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2012-10-11 04:39:27 +0200
commit2134399f0e462fb6721f20c58fcd8470110ff875 (patch)
treeaa3a79d71491b46ecdfcec3d217f9433a18c148e /sc/source
parent68a60bc98a6ad2467a17a917881745cf9310e90f (diff)
lock table only for the range edit field, not for the formula ones
Change-Id: I08880d97d880227cb47d929701e666a49aad5c57
Diffstat (limited to 'sc/source')
-rw-r--r--sc/source/ui/condformat/condformatdlg.cxx8
-rw-r--r--sc/source/ui/inc/condformatdlg.hxx2
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();