home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / include / xp_ncent.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  2.4 KB  |  65 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. #ifndef __XP_NavCenter_H
  20. #define __XP_NavCenter_H
  21.  
  22. #ifdef MOZILLA_CLIENT
  23.  
  24. #include "xp_core.h"
  25. #include "htrdf.h"
  26.  
  27. XP_BEGIN_PROTOS
  28.  
  29. /*  Callback function, allows consumer of the list to specialize search
  30.  *      via a callback.  This is needed because of different components
  31.  *      that hide under MWContextBrowser, when they really should be
  32.  *      something like MWContextEditor or MWContextNetcaster.
  33.  *  The callback allows you to decide the details to match by.
  34.  *  Return TRUE if the context is suitable, FALSE if it is not.
  35.  *  The varargs will match the paramaters of the find function up to
  36.  *      the callback exactly.
  37.  */
  38. typedef XP_Bool (*ContextMatch)(MWContext *pCX);
  39.  
  40. extern MWContext *XP_GetLastActiveContext(ContextMatch cxFilter);
  41. extern void XP_SetLastActiveContext(MWContext *pCX);
  42. extern void XP_RemoveContextFromLastActiveStack(MWContext *pCX);
  43.  
  44. extern void XP_RegisterNavCenter(HT_Pane htPane, MWContext *pDocked);
  45. extern void XP_UnregisterNavCenter(HT_Pane htPane);
  46.  
  47. extern void XP_DockNavCenter(HT_Pane htPane, MWContext *pContext);
  48. extern void XP_UndockNavCenter(HT_Pane htPane);
  49. extern XP_Bool XP_IsNavCenterDocked(HT_Pane htPane);
  50. extern MWContext *XP_GetNavCenterContext(HT_Pane htPane);
  51.  
  52. extern void XP_SetNavCenterUrl(MWContext *pContext, char *pUrl);
  53. extern void XP_AddNavCenterSitemap(MWContext *pContext, char *pSitemap, char* name);
  54. extern void XP_RemoveNavCenterInfo(MWContext *pContext);
  55.  
  56. extern void XP_RegisterViewHTMLPane(HT_View htView, MWContext *pContext);
  57. extern int XP_GetURLForView(HT_View htView, char *pAddress);
  58.  
  59.  
  60. XP_END_PROTOS
  61.  
  62. #endif /* MOZILLA_CLIENT */
  63.  
  64. #endif /* __XP_NavCenter_H */
  65.