summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorOcke Janssen [oj] <Ocke.Janssen@oracle.com>2011-12-06 02:04:18 +0100
committerThorsten Behrens <tbehrens@suse.com>2011-12-06 09:39:11 +0100
commit416435e1dcbc175787a5a9e03142f7f766b6a648 (patch)
tree4d20fd5930310e0b553b41d39ea518aed5dda213 /sd
parentdc7d25dd994b18b12214ce796ecbc6d9e4fcf310 (diff)
impress210: check readonly
# HG changeset patch # User Ocke Janssen [oj] <Ocke.Janssen@oracle.com> # Date 1299656309 -3600 # Node ID de61efa884c2a12ae9e88e9919c297b1b9676443 # Parent c65bb4f46738b43bd506f1a75b634c6bd6fb6bfe impress210: chekc readonly
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/func/futext.cxx15
-rw-r--r--sd/source/ui/table/tablefunction.cxx5
2 files changed, 20 insertions, 0 deletions
diff --git a/sd/source/ui/func/futext.cxx b/sd/source/ui/func/futext.cxx
index 321e1ee2b419..4286ff690b6d 100644
--- a/sd/source/ui/func/futext.cxx
+++ b/sd/source/ui/func/futext.cxx
@@ -638,9 +638,24 @@ sal_Bool FuText::MouseButtonUp(const MouseEvent& rMEvt)
mpViewShell->GetViewFrame()->GetBindings().Invalidate( SidArray );
Point aPnt( mpWindow->PixelToLogic( rMEvt.GetPosPixel() ) );
+ sal_Bool bOldReadOnly = sal_False;
+ if ( mpView && mpDocSh->IsReadOnly() )
+ {
+ if ( mpView && mpView->GetTextEditOutlinerView() )
+ {
+ bOldReadOnly = mpView->GetTextEditOutlinerView()->IsReadOnly();
+ mpView->GetTextEditOutlinerView()->SetReadOnly(sal_True);
+ }
+ }
if( (mpView && mpView->MouseButtonUp(rMEvt, mpWindow)) || rMEvt.GetClicks() == 2 )
+ {
+ if ( mpView && mpView->GetTextEditOutlinerView() )
+ mpView->GetTextEditOutlinerView()->SetReadOnly(bOldReadOnly);
return (sal_True); // Event von der SdrView ausgewertet
+ }
+ if ( mpView && mpView->GetTextEditOutlinerView() )
+ mpView->GetTextEditOutlinerView()->SetReadOnly(bOldReadOnly);
sal_Bool bEmptyTextObj = sal_False;
diff --git a/sd/source/ui/table/tablefunction.cxx b/sd/source/ui/table/tablefunction.cxx
index 33c971d9ce2d..9a8758929b02 100644
--- a/sd/source/ui/table/tablefunction.cxx
+++ b/sd/source/ui/table/tablefunction.cxx
@@ -184,6 +184,7 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
}
}
+ GetParentWindow()->GrabFocus();
if( pPickObj )
mpView->ReplaceObjectAtView(pPickObj, *pPV, pObj, sal_True );
else
@@ -191,6 +192,10 @@ void DrawViewShell::FuTable(SfxRequest& rReq)
Invalidate(SID_DRAWTBX_INSERT);
rReq.Ignore();
+ SfxViewShell* pViewShell = GetViewShell();
+ OSL_ASSERT (pViewShell!=NULL);
+ SfxBindings& rBindings = pViewShell->GetViewFrame()->GetBindings();
+ rBindings.Invalidate( SID_INSERT_TABLE, sal_True, sal_False );
break;
}
case SID_TABLEDESIGN: