home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / srchobj.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.6 KB  |  73 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. // srchobj.h : header file
  20. //
  21. #ifndef srchobj_H
  22. #define srchobj_H
  23. #include "msg_srch.h"
  24. #ifndef _WIN32
  25. #include "ctl3d.h"
  26. #endif
  27.  
  28. #define COL_ATTRIB              0
  29. #define COL_OP                  1
  30. #define COL_VALUE               2
  31. #define COL_COUNT               4
  32.  
  33. /////////////////////////////////////////////////////////////////////////////
  34. // CSearchObject
  35.  
  36. class CSearchObject
  37. {
  38.     int m_iOrigFrameHeight;//Height of dialog's parent CFrameWnd
  39. public:
  40.     CSearchObject ( );
  41.     ~CSearchObject ( );
  42.  
  43.     // Attributes
  44.     MSG_SearchAttribute AttribWas[5];
  45.     MSG_SearchValueWidget WidgetWas[5];
  46.     CWnd* m_wnd;
  47. public:
  48.     void UpdateAttribList(MSG_ScopeAttribute scope, DIR_Server* pServer = NULL);
  49.     void UpdateOpList(MSG_ScopeAttribute scope, DIR_Server* pServer = NULL);
  50.     void UpdateOpList(int iRow, MSG_ScopeAttribute scope, DIR_Server* pServer = NULL);
  51.     int More(int* iMoreCount, BOOL bLogicType);
  52.     int Fewer(int* iMoreCount, BOOL bLogicType);
  53.     void OnAndOr (int iMoreCount, BOOL* logicType);
  54.     int ChangeLogicText(int moreCount, BOOL bLogicType);
  55.     void SetOrigFrameHeight(int iHeight) {m_iOrigFrameHeight = iHeight;};
  56.     int GetOrigFrameHeight() const {return m_iOrigFrameHeight;};
  57.     int ClearSearch(int* iMoreCount, BOOL bIsLDAPSearch);
  58.     void BuildQuery (MSG_Pane* searchPane, int iMoreCount, Bool bLogicType);
  59.     int New (CWnd* window);
  60.     void ReInitializeWidgets ();
  61.     void OnSize( UINT nType, int cx, int cy, int dx);
  62.     void InitializeAttributes (MSG_SearchValueWidget widgetValue, MSG_SearchAttribute attribValue);
  63.     void UpdateColumn1Attributes();
  64.     CComboBox * GetColumnOneAttributeWidget(int iRow);
  65.     int InitializeLDAPSearchWindow (MSG_Pane* searchPane, DIR_Server* curServer, int* iMoreCount, BOOL bLogicType);
  66.  
  67.     MSG_ScopeAttribute DetermineScope( DWORD dwItemData );
  68.  
  69. protected:
  70.  
  71. };
  72. #endif
  73.