summaryrefslogtreecommitdiff
path: root/sc/source/ui/view/colrowba.cxx
diff options
context:
space:
mode:
authorNiklas Nebel <nn@openoffice.org>2001-03-20 17:02:21 +0000
committerNiklas Nebel <nn@openoffice.org>2001-03-20 17:02:21 +0000
commitb5f07f8e628511aa90d24fb11bca71f617b7700f (patch)
tree82d18a06cee02f7ca9a94c240465881fc70f68cf /sc/source/ui/view/colrowba.cxx
parentaa7622f8535e945334ca2120966ead84b56dd10e (diff)
ResizeAllowed: disable for read-only document
Diffstat (limited to 'sc/source/ui/view/colrowba.cxx')
-rw-r--r--sc/source/ui/view/colrowba.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/sc/source/ui/view/colrowba.cxx b/sc/source/ui/view/colrowba.cxx
index 98ed1195fc58..6e1656b64072 100644
--- a/sc/source/ui/view/colrowba.cxx
+++ b/sc/source/ui/view/colrowba.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: colrowba.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: er $ $Date: 2001-01-31 19:37:51 $
+ * last change: $Author: nn $ $Date: 2001-03-20 18:02:21 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -358,6 +358,7 @@
#include "document.hxx"
#include "scmod.hxx"
#include "tabvwsh.hxx"
+#include "docsh.hxx"
#include "appoptio.hxx"
#include "globstr.hrc"
@@ -527,7 +528,8 @@ BOOL ScColBar::IsDisabled()
BOOL ScColBar::ResizeAllowed()
{
- return !pViewData->HasEditView( pViewData->GetActivePart() );
+ return !pViewData->HasEditView( pViewData->GetActivePart() ) &&
+ !pViewData->GetDocShell()->IsReadOnly();
}
void ScColBar::DrawInvert( long nDragPos )
@@ -687,7 +689,8 @@ BOOL ScRowBar::IsDisabled()
BOOL ScRowBar::ResizeAllowed()
{
- return !pViewData->HasEditView( pViewData->GetActivePart() );
+ return !pViewData->HasEditView( pViewData->GetActivePart() ) &&
+ !pViewData->GetDocShell()->IsReadOnly();
}
void ScRowBar::DrawInvert( long nDragPos )