summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/tabvwshe.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-08-21 17:38:03 +0000
committerNiklas Nebel <nn@openoffice.org>2001-08-21 17:38:03 +0000
commit0069d926a31dacf40fcf07c248c686e0fb597d9e (patch)
tree82e9dccf38465a0d2314d01bcc2256504bfc186a /sc/source/ui/view/tabvwshe.cxx
parentd6998ae929dfe1f28039b2afb54a0cce014175a1 (diff)
#74654# InsertURLField: check if editable
Diffstat (limited to 'sc/source/ui/view/tabvwshe.cxx')
-rw-r--r--sc/source/ui/view/tabvwshe.cxx12
1 files changed, 10 insertions, 2 deletions
diff --git a/sc/source/ui/view/tabvwshe.cxx b/sc/source/ui/view/tabvwshe.cxx
index fe0c9d50e17a..44afb10b4a4a 100644
--- a/sc/source/ui/view/tabvwshe.cxx
+++ b/sc/source/ui/view/tabvwshe.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: tabvwshe.cxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: nn $ $Date: 2001-08-20 17:04:25 $
+ * last change: $Author: nn $ $Date: 2001-08-21 18:38:03 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -82,6 +82,7 @@
#include <sfx2/request.hxx>
#include <sfx2/objface.hxx>
#include <svtools/stritem.hxx>
+#include <vcl/sound.hxx>
#include "tabvwsh.hxx"
#include "sc.hrc"
@@ -218,6 +219,13 @@ void ScTabViewShell::InsertURLField( const String& rName, const String& rURL, co
BOOL bSelectFirst = FALSE;
if ( !pScMod->IsEditMode() )
{
+ if ( !SelectionEditable() )
+ {
+ // no error message (may be called from drag&drop)
+ Sound::Beep();
+ return;
+ }
+
// single url in cell is shown in the dialog and replaced
bSelectFirst = HasBookmarkAtCursor( NULL );
pScMod->SetInputMode( SC_INPUT_TABLE );