home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / LdapSearchView.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.2 KB  |  98 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.    LdapSearchView.h -- class definitions for ldap search view.
  20.    Created: Dora Hsu <dora@netscape.com>, 15-Dec-96.
  21.  */
  22.  
  23. #ifndef _xfe_ldapsearchview_h
  24. #define _xfe_ldapsearchview_h
  25.  
  26. #include "MNSearchView.h"
  27. #include "Outliner.h"
  28. #include "Command.h"
  29. #include "dirprefs.h"
  30. #include "BrowserFrame.h"
  31. #include "Dashboard.h"
  32. #include "AddressFolderView.h"
  33.  
  34.  
  35. class XFE_LdapSearchView: public XFE_MNSearchView
  36. {
  37. public:
  38.     XFE_LdapSearchView(XFE_Component *toplevel_component,
  39.                        Widget parent,
  40.                        XFE_Frame * parent_frame,
  41.                        XFE_MNView *mn_parentView,
  42.                        MWContext *context, MSG_Pane *p); 
  43.  
  44.   virtual ~XFE_LdapSearchView();
  45.  
  46.   static const char* CloseLdap;
  47.   static const int SEARCH_OUTLINER_COLUMN_NAME;
  48.   static const int SEARCH_OUTLINER_COLUMN_EMAIL;
  49.   static const int SEARCH_OUTLINER_COLUMN_COMPANY;
  50.   static const int SEARCH_OUTLINER_COLUMN_PHONE;
  51.   static const int SEARCH_OUTLINER_COLUMN_LOCALITY;
  52.  
  53.   virtual char *getColumnHeaderText(int column);
  54.   virtual char *getColumnText(int column);
  55.   virtual fe_icon *getColumnIcon(int column);
  56.   static void toAddrBookCallback(Widget, XtPointer, XtPointer);
  57.   static void toComposeCallback(Widget, XtPointer, XtPointer);
  58.  
  59.   virtual void paneChanged(XP_Bool /*asynchronous*/,
  60.                                 MSG_PANE_CHANGED_NOTIFY_CODE /* notify_code */,
  61.                                 int32 /*value*/);
  62.   void addSelectedToAddressPane(XFE_AddressFolderView*,SEND_STATUS);    
  63.   virtual void toggleActionButtonState(Boolean on);
  64.   void createWidgets(Widget formParent); // override to adopt US_WEST behavior
  65.  
  66. protected:
  67.   // dialog callbacks
  68.   virtual void toAddrBookCB(Widget w, XtPointer callData);
  69.   virtual void toComposeCB(Widget w, XtPointer callData);
  70.  
  71.   virtual void addDefaultFolders();
  72.   virtual void buildHeaderOption();
  73.   virtual void prepSearchScope();
  74.   virtual void doubleClick(const OutlineButtonFuncData *data);
  75.   virtual void miscCmd(); // For Help btn
  76.   virtual void handleClose();
  77.   virtual void doLayout();
  78.   void buildResultTable();
  79.   void buildResult();
  80.   void clickHeader(const OutlineButtonFuncData *data);
  81.  
  82. private:
  83.   void initialize();
  84.   void changeScope();
  85.   static void folderOptionCallback(Widget w, XtPointer clientData, XtPointer);
  86.  
  87.  
  88.   DIR_Server* getDirServer();
  89.  
  90.   /* Search Tool Commands */
  91.   Widget m_toAddrBook;
  92.   Widget m_toCompose;
  93.   
  94.   XP_List    *m_directories;
  95.   XFE_BrowserFrame *m_browserFrame;
  96. };
  97. #endif
  98.