From eacb79951c4b8e8b4aa0f9c109f0bd8d6178ec8d Mon Sep 17 00:00:00 2001 From: Niklas Nebel Date: Wed, 20 Nov 2002 13:36:29 +0000 Subject: #83422# different error messages for protected cells and part of array formula --- sc/source/ui/view/cellsh3.cxx | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'sc/source/ui/view/cellsh3.cxx') 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 { -- cgit