diff options
author | Malte Timmermann <mt@openoffice.org> | 2002-11-22 12:54:23 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2002-11-22 12:54:23 +0000 |
commit | 94997295e08a980b1e5910ca14b67e21840c7dbc (patch) | |
tree | d27b7b54d706ee0dde956c2f81e196d3b75a225d /svx/source/editeng/impedit2.cxx | |
parent | #105496# #105497# #105498# check if a columns was already selected (diff) | |
download | core-94997295e08a980b1e5910ca14b67e21840c7dbc.tar.gz core-94997295e08a980b1e5910ca14b67e21840c7dbc.zip |
#103483# Special notifications for block/input start/end
Diffstat (limited to 'svx/source/editeng/impedit2.cxx')
-rw-r--r-- | svx/source/editeng/impedit2.cxx | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/svx/source/editeng/impedit2.cxx b/svx/source/editeng/impedit2.cxx index b34d485eefab..ba7dcc7a1760 100644 --- a/svx/source/editeng/impedit2.cxx +++ b/svx/source/editeng/impedit2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: impedit2.cxx,v $ * - * $Revision: 1.82 $ + * $Revision: 1.83 $ * - * last change: $Author: mt $ $Date: 2002-11-05 15:42:43 $ + * last change: $Author: mt $ $Date: 2002-11-22 13:54:23 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -3820,9 +3820,17 @@ void ImpEditEngine::LeaveBlockNotifications() DBG_ASSERT( nBlockNotifications, "LeaveBlockNotifications - Why?" ); nBlockNotifications--; - if ( !nBlockNotifications ) + if ( !nBlockNotifications && aNotifyCache.Count() ) { // Call blocked notify events... + BOOL bMultipleNotifications = aNotifyCache.Count() > 1; + if ( bMultipleNotifications ) + { + EENotify aNotify( EE_NOTIFY_BLOCKNOTIFICATION_START ); + aNotify.pEditEngine = GetEditEnginePtr(); + GetNotifyHdl().Call( &aNotify ); + } + while ( aNotifyCache.Count() ) { EENotify* pNotify = aNotifyCache[0]; @@ -3831,6 +3839,13 @@ void ImpEditEngine::LeaveBlockNotifications() GetNotifyHdl().Call( pNotify ); delete pNotify; } + + if ( bMultipleNotifications ) + { + EENotify aNotify( EE_NOTIFY_BLOCKNOTIFICATION_END ); + aNotify.pEditEngine = GetEditEnginePtr(); + GetNotifyHdl().Call( &aNotify ); + } } } |