diff options
author | Ocke Janssen [oj] <Ocke.Janssen@oracle.com> | 2011-12-06 02:04:18 +0100 |
---|---|---|
committer | Thorsten Behrens <tbehrens@suse.com> | 2011-12-06 09:39:11 +0100 |
commit | 416435e1dcbc175787a5a9e03142f7f766b6a648 (patch) | |
tree | 4d20fd5930310e0b553b41d39ea518aed5dda213 /sd/source/ui/func | |
parent | dc7d25dd994b18b12214ce796ecbc6d9e4fcf310 (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/source/ui/func')
-rw-r--r-- | sd/source/ui/func/futext.cxx | 15 |
1 files changed, 15 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; |