summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/cellsh3.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2002-11-20 13:36:29 +0000
committerNiklas Nebel <nn@openoffice.org>2002-11-20 13:36:29 +0000
commiteacb79951c4b8e8b4aa0f9c109f0bd8d6178ec8d (patch)
tree34cd263de9c55875c05f36cae1e99ca495fe16cf /sc/source/ui/view/cellsh3.cxx
parent5f9c078bc015882c7de9aecff83af57d9d6f0df4 (diff)
#83422# different error messages for protected cells and part of array formula
Diffstat (limited to 'sc/source/ui/view/cellsh3.cxx')
-rw-r--r--sc/source/ui/view/cellsh3.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sc/source/ui/view/cellsh3.cxx b/sc/source/ui/view/cellsh3.cxx
index 3425186e0123..7ceb6362a8b2 100644
--- a/sc/source/ui/view/cellsh3.cxx
+++ b/sc/source/ui/view/cellsh3.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: cellsh3.cxx,v $
*
- * $Revision: 1.9 $
+ * $Revision: 1.10 $
*
- * last change: $Author: nn $ $Date: 2002-09-20 10:07:33 $
+ * last change: $Author: nn $ $Date: 2002-11-20 14:34:34 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -90,6 +90,7 @@
#include "cellsh.hxx"
#include "attrdlg.hrc" // TP_ALIGNMENT
#include "inputhdl.hxx"
+#include "editable.hxx"
#define IS_EDITMODE() GetViewData()->HasEditView( GetViewData()->GetActivePart() )
@@ -820,9 +821,10 @@ void ScCellShell::Execute( SfxRequest& rReq )
if ( pDlg->Execute() == RET_OK )
{
- if ( !pTabViewShell->SelectionEditable() )
+ ScEditableTester aTester( pTabViewShell );
+ if ( !aTester.IsEditable() )
{
- pTabViewShell->ErrorMessage(STR_PROTECTIONERR);
+ pTabViewShell->ErrorMessage(aTester.GetMessageId());
}
else
{