Back to index

lightning-sunbird  0.9+nobinonly
Dialogs.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
00002 /* ***** BEGIN LICENSE BLOCK *****
00003  * Version: Mozilla-sample-code 1.0
00004  *
00005  * Copyright (c) 2002 Netscape Communications Corporation and
00006  * other contributors
00007  *
00008  * Permission is hereby granted, free of charge, to any person obtaining a
00009  * copy of this Mozilla sample software and associated documentation files
00010  * (the "Software"), to deal in the Software without restriction, including
00011  * without limitation the rights to use, copy, modify, merge, publish,
00012  * distribute, sublicense, and/or sell copies of the Software, and to permit
00013  * persons to whom the Software is furnished to do so, subject to the
00014  * following conditions:
00015  *
00016  * The above copyright notice and this permission notice shall be included
00017  * in all copies or substantial portions of the Software.
00018  *
00019  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
00020  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
00021  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
00022  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
00023  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
00024  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
00025  * DEALINGS IN THE SOFTWARE.
00026  *
00027  * Contributor(s):
00028  *   Chak Nanga <chak@netscape.com>
00029  *
00030  * ***** END LICENSE BLOCK ***** */
00031 
00032 #ifndef _DIALOGS_H_
00033 #define _DIALOGS_H_
00034 
00035 #include "resource.h"
00036 
00037 class CBrowserView;
00038 
00039 class CFindDialog : public CFindReplaceDialog    
00040 {
00041 public:
00042     CFindDialog(CString& csSearchStr, PRBool bMatchCase,
00043                 PRBool bMatchWholeWord, PRBool bWrapAround,
00044                 PRBool bSearchBackwards, CBrowserView* pOwner);
00045     BOOL WrapAround();
00046     BOOL SearchBackwards();
00047 
00048 private:
00049     CString m_csSearchStr;
00050     PRBool m_bMatchCase;
00051     PRBool m_bMatchWholeWord;
00052     PRBool m_bWrapAround;
00053     PRBool m_bSearchBackwards;
00054     CBrowserView* m_pOwner;
00055 
00056 protected:
00057     virtual BOOL OnInitDialog();
00058     virtual void PostNcDestroy();
00059 };
00060 
00062 // CLinkPropertiesDlg dialog
00063 
00064 class CLinkPropertiesDlg : public CDialog
00065 {
00066 public:
00067        CLinkPropertiesDlg(CWnd* pParent = NULL);
00068 
00069        enum { IDD = IDD_DIALOG_LINK_PROPERTIES };
00070        CString       m_LinkText;
00071        CString       m_LinkLocation;
00072 
00073 protected:
00074        virtual void DoDataExchange(CDataExchange* pDX);
00075        virtual void OnOK();
00076 
00077        DECLARE_MESSAGE_MAP()
00078 };
00079 
00080 #endif //_DIALOG_H_