Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Member Functions | Private Attributes
CFindDialog Class Reference

#include <Dialogs.h>

Collaboration diagram for CFindDialog:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 CFindDialog (CString &csSearchStr, PRBool bMatchCase, PRBool bMatchWholeWord, PRBool bWrapAround, PRBool bSearchBackwards, CBrowserView *pOwner)
BOOL WrapAround ()
BOOL SearchBackwards ()
 CFindDialog (CString &csSearchStr, PRBool bMatchCase, PRBool bMatchWholeWord, PRBool bWrapAround, PRBool bSearchBackwards, CBrowserView *pOwner)
BOOL WrapAround ()
BOOL SearchBackwards ()

Protected Member Functions

virtual BOOL OnInitDialog ()
virtual void PostNcDestroy ()
virtual BOOL OnInitDialog ()
virtual void PostNcDestroy ()

Private Attributes

CString m_csSearchStr
PRBool m_bMatchCase
PRBool m_bMatchWholeWord
PRBool m_bWrapAround
PRBool m_bSearchBackwards
CBrowserViewm_pOwner

Detailed Description

Definition at line 46 of file Dialogs.h.


Constructor & Destructor Documentation

CFindDialog::CFindDialog ( CString &  csSearchStr,
PRBool  bMatchCase,
PRBool  bMatchWholeWord,
PRBool  bWrapAround,
PRBool  bSearchBackwards,
CBrowserView pOwner 
)

Definition at line 52 of file Dialogs.cpp.

                            : CFindReplaceDialog()
{
       // Save these initial settings off in member vars
       // We'll use these to initialize the controls
       // in InitDialog()
       m_csSearchStr = csSearchStr;
       m_bMatchCase = bMatchCase;
       m_bMatchWholeWord = bMatchWholeWord;
       m_bWrapAround = bWrapAround;
       m_bSearchBackwards = bSearchBackwards;
       m_pOwner = pOwner;

       // Set up to load our customized Find dialog template
       // rather than the default one MFC provides
       m_fr.Flags |= FR_ENABLETEMPLATE;
       m_fr.hInstance = AfxGetInstanceHandle();
       m_fr.lpTemplateName = MAKEINTRESOURCE(IDD_FINDDLG);
}
CFindDialog::CFindDialog ( CString &  csSearchStr,
PRBool  bMatchCase,
PRBool  bMatchWholeWord,
PRBool  bWrapAround,
PRBool  bSearchBackwards,
CBrowserView pOwner 
)

Member Function Documentation

virtual BOOL CFindDialog::OnInitDialog ( ) [protected, virtual]
BOOL CFindDialog::OnInitDialog ( ) [protected, virtual]

Definition at line 74 of file Dialogs.cpp.

{
       CFindReplaceDialog::OnInitDialog();

       CEdit* pEdit = (CEdit *)GetDlgItem(IDC_FIND_EDIT);
       if(pEdit)
              pEdit->SetWindowText(m_csSearchStr);

       CButton* pChk = (CButton *)GetDlgItem(IDC_MATCH_CASE);
       if(pChk)
              pChk->SetCheck(m_bMatchCase);

       pChk = (CButton *)GetDlgItem(IDC_MATCH_WHOLE_WORD);
       if(pChk)
              pChk->SetCheck(m_bMatchWholeWord);

       pChk = (CButton *)GetDlgItem(IDC_WRAP_AROUND);   
       if(pChk)
              pChk->SetCheck(m_bWrapAround);

       pChk = (CButton *)GetDlgItem(IDC_SEARCH_BACKWARDS);
       if(pChk)
              pChk->SetCheck(m_bSearchBackwards);

       return TRUE; 
}
virtual void CFindDialog::PostNcDestroy ( ) [protected, virtual]
void CFindDialog::PostNcDestroy ( ) [protected, virtual]

Definition at line 101 of file Dialogs.cpp.

{
       // Let the owner know we're gone
       if(m_pOwner != NULL) 
              m_pOwner->ClearFindDialog();

       CFindReplaceDialog::PostNcDestroy();
}

Here is the call graph for this function:

Definition at line 117 of file Dialogs.cpp.

{
       CButton* pChk = (CButton *)GetDlgItem(IDC_SEARCH_BACKWARDS);

       return pChk ? pChk->GetCheck() : FALSE;
}

Here is the caller graph for this function:

Definition at line 110 of file Dialogs.cpp.

{
       CButton* pChk = (CButton *)GetDlgItem(IDC_WRAP_AROUND);

       return pChk ? pChk->GetCheck() : FALSE;
}

Here is the caller graph for this function:


Member Data Documentation

Definition at line 57 of file Dialogs.h.

Definition at line 58 of file Dialogs.h.

Definition at line 60 of file Dialogs.h.

Definition at line 59 of file Dialogs.h.

CString CFindDialog::m_csSearchStr [private]

Definition at line 56 of file Dialogs.h.

Definition at line 61 of file Dialogs.h.


The documentation for this class was generated from the following files: