From 242bd33386bfef181dbdac1f8801b279cabb58e2 Mon Sep 17 00:00:00 2001 From: "clu%netscape.com" Date: Fri, 7 Aug 1998 09:01:50 +0000 Subject: [PATCH] separating #ifdef MOZ_MAIL_NEWS from #ifdef EDITOR so that CComposerFind can work with just the EDITOR but not MOZ_MAIL_NEWS turned on. #312288; reviewed by brade. git-svn-id: svn://10.0.0.236/trunk@7551 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/cmd/macfe/interact/findw.cp | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/mozilla/cmd/macfe/interact/findw.cp b/mozilla/cmd/macfe/interact/findw.cp index f98ef9393ea..d430ade9c0c 100644 --- a/mozilla/cmd/macfe/interact/findw.cp +++ b/mozilla/cmd/macfe/interact/findw.cp @@ -84,9 +84,13 @@ void CFindWindow::FinishCreateSelf() void CFindWindow::RegisterViewTypes() { RegisterClass_(CFindWindow); + + #ifdef EDITOR + RegisterClass_(CComposeFindWindow); + #endif + #ifdef MOZ_MAIL_NEWS RegisterClass_(LMailNewsFindWindow); - RegisterClass_(CComposeFindWindow); #endif } @@ -231,6 +235,9 @@ void LMailNewsFindWindow::GetDialogValues() sFindInHeaders = ( fFindInHeaders->GetValue() != 0 ); } + +#endif // MOZ_MAIL_NEWS + # ifdef EDITOR # pragma mark - @@ -279,10 +286,9 @@ void CComposeFindWindow::ListenToMessage(MessageT inMessage, void* ioParam) { this->GetDialogValues(); sViewBeingSearched->DoFind(); -// ListenToMessage( cmd_Close, NULL ); break; } - + case 'Repl': case 'RepA': case 'RepN': @@ -301,13 +307,7 @@ void CComposeFindWindow::ListenToMessage(MessageT inMessage, void* ioParam) } break; } - - case msg_Cancel: - { - LDialogBox::ListenToMessage( cmd_Close, ioParam ); - break; - } - + default: { LDialogBox::ListenToMessage(inMessage, ioParam); @@ -318,4 +318,3 @@ void CComposeFindWindow::ListenToMessage(MessageT inMessage, void* ioParam) # endif // EDITOR -#endif // MOZ_MAIL_NEWS