gecko-dev/cmd/winfe/srchdlg.h

118 lines
2.8 KiB
C
Raw Normal View History

1998-03-28 02:44:41 +00:00
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
*
* The contents of this file are subject to the Netscape Public License
* Version 1.0 (the "NPL"); you may not use this file except in
* compliance with the NPL. You may obtain a copy of the NPL at
* http://www.mozilla.org/NPL/
*
* Software distributed under the NPL is distributed on an "AS IS" basis,
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
* for the specific language governing rights and limitations under the
* NPL.
*
* The Initial Developer of this code under the NPL is Netscape
* Communications Corporation. Portions created by Netscape are
* Copyright (C) 1998 Netscape Communications Corporation. All Rights
* Reserved.
*/
#ifndef _srchdlg_h_
#define _srchdlg_h_
// SRCHDLG.H
//
// DESCRIPTION:
// This file contains the declarations for basic/advanced
// ldap search dialog
//
#include "srchobj.h"
#include "mnrccln.h"
/****************************************************************************
*
* Class: CSearchDialog
*
* DESCRIPTION:
1998-06-22 21:19:46 +00:00
* This class is the dialog for editing all the attributes
1998-03-28 02:44:41 +00:00
* of the people types in the address book
*
****************************************************************************/
1998-06-22 21:19:46 +00:00
class CSearchDialog : public CDialog
1998-03-28 02:44:41 +00:00
{
protected:
public:
protected:
MSG_Pane* m_pSearchPane;
DIR_Server* m_pServer;
public:
HFONT m_pFont;
1998-06-22 21:19:46 +00:00
char * m_pTitle;
enum { IDD = IDD_ADVANCED_LDAP_SEARCH };
1998-03-28 02:44:41 +00:00
public:
CSearchDialog (UINT nIDCaption,
MSG_Pane* pSearchPane,
DIR_Server* pServer,
1998-06-22 21:19:46 +00:00
CWnd* pParentWnd = NULL);
1998-03-28 02:44:41 +00:00
CSearchDialog (
LPCTSTR lpszCaption,
MSG_Pane* pSearchPane,
DIR_Server* pServer,
1998-06-22 21:19:46 +00:00
CWnd * parent = NULL);
1998-03-28 02:44:41 +00:00
virtual ~CSearchDialog ( );
protected:
1998-06-22 21:19:46 +00:00
CSearchObject m_searchObj;
int m_iMoreCount;
BOOL m_bLogicType;
BOOL m_bChanged;
1998-03-28 02:44:41 +00:00
// Overrides
// ClassWizard generate virtual function overrides
//{{AFX_VIRTUAL(CSearchDialog)
public:
virtual BOOL OnInitDialog();
1998-06-22 21:19:46 +00:00
virtual void PostNcDestroy();
1998-03-28 02:44:41 +00:00
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
//}}AFX_VIRTUAL
1998-06-22 21:19:46 +00:00
// Implementation
1998-03-28 02:44:41 +00:00
protected:
1998-06-22 21:19:46 +00:00
#ifndef ON_UPDATE_COMMAND_UI_RANGE
1998-03-28 02:44:41 +00:00
virtual BOOL OnCmdMsg( UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo );
#endif
1998-06-22 21:19:46 +00:00
1998-03-28 02:44:41 +00:00
// Generated message map functions
1998-06-22 21:19:46 +00:00
//{{AFX_MSG(CSearchDialog)
1998-03-28 02:44:41 +00:00
// NOTE: the ClassWizard will add member functions here
1998-06-22 21:19:46 +00:00
afx_msg int OnCreate( LPCREATESTRUCT );
1998-03-28 02:44:41 +00:00
afx_msg void OnMore();
afx_msg void OnFewer();
afx_msg void OnSearch();
afx_msg void OnClearSearch();
afx_msg void OnAttrib1();
afx_msg void OnAttrib2();
afx_msg void OnAttrib3();
afx_msg void OnAttrib4();
afx_msg void OnAttrib5();
afx_msg void OnAndOr();
afx_msg void OnUpdateQuery( CCmdUI *pCmdUI );
afx_msg void OnEditValueChanged ();
afx_msg void OnOperatorValueChanged ();
1998-06-22 21:19:46 +00:00
1998-03-28 02:44:41 +00:00
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
void AdjustHeight (int dy);
};
1998-06-22 21:19:46 +00:00
#endif