diff options
author | Malte Timmermann <mt@openoffice.org> | 2002-05-27 13:13:49 +0000 |
---|---|---|
committer | Malte Timmermann <mt@openoffice.org> | 2002-05-27 13:13:49 +0000 |
commit | aa40400895dce5e760bb7da632bf08a9e9614a8a (patch) | |
tree | d5a0cfd8c8e8c40b08f2450b4eabbad9b1d8edd7 /svx/source/outliner | |
parent | 4bb4ea3ac50fde72eb5fa1e58b1f2f025ae03df8 (diff) |
#99561# ForceAutoColor
Diffstat (limited to 'svx/source/outliner')
-rw-r--r-- | svx/source/outliner/outlin2.cxx | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/svx/source/outliner/outlin2.cxx b/svx/source/outliner/outlin2.cxx index bed2c36a8b38..1336d76266e2 100644 --- a/svx/source/outliner/outlin2.cxx +++ b/svx/source/outliner/outlin2.cxx @@ -2,9 +2,9 @@ * * $RCSfile: outlin2.cxx,v $ * - * $Revision: 1.18 $ + * $Revision: 1.19 $ * - * last change: $Author: mt $ $Date: 2002-04-26 10:21:05 $ + * last change: $Author: mt $ $Date: 2002-05-27 14:13:15 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -171,13 +171,19 @@ ULONG Outliner::GetTextHeight() const void Outliner::SetNotifyHdl( const Link& rLink ) { DBG_CHKTHIS(Outliner,0); - pEditEngine->SetNotifyHdl( rLink ); + pEditEngine->aOutlinerNotifyHdl = rLink; + + if ( rLink.IsSet() ) + pEditEngine->SetNotifyHdl( LINK( this, Outliner, EditEngineNotifyHdl ) ); + else + pEditEngine->SetNotifyHdl( Link() ); + } Link Outliner::GetNotifyHdl() const { DBG_CHKTHIS(Outliner,0); - return pEditEngine->GetNotifyHdl(); + return pEditEngine->aOutlinerNotifyHdl; } void Outliner::SetStatusEventHdl( const Link& rLink ) @@ -736,3 +742,15 @@ BOOL Outliner::IsAutoColorEnabled() const DBG_CHKTHIS(Outliner,0); return pEditEngine->IsAutoColorEnabled(); } + +void Outliner::ForceAutoColor( BOOL b ) +{ + DBG_CHKTHIS(Outliner,0); + pEditEngine->EnableAutoColor( b ); +} + +BOOL Outliner::IsForceAutoColor() const +{ + DBG_CHKTHIS(Outliner,0); + return pEditEngine->IsAutoColorEnabled(); +} |