home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / xfe / src / xfe2_extern.h < prev   
Encoding:
C/C++ Source or Header  |  1998-04-08  |  4.8 KB  |  128 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.    extern.h -- our C api -- things that get called from one directory up, and possibly from Frame.cpp.
  20.    Created: Chris Toshok <toshok@netscape.com>, 12-Feb-97
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_extern_h
  26. #define _xfe_extern_h
  27.  
  28. #include "Frame.h"
  29. #include "Xm/Xm.h"
  30. #include "xp_core.h"
  31. #include "structs.h"
  32. #include "net.h"
  33. #ifdef EDITOR
  34. #include "xeditor.h"
  35. #endif
  36.  
  37. XP_BEGIN_PROTOS
  38.  
  39. /* addressbook. */
  40. extern MWContext* fe_showAddrBook(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec);
  41.  
  42. /* bookmarks */
  43. extern MWContext* fe_showBookmarks(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec);
  44. extern MWContext* fe_getBookmarkContext();
  45. extern void fe_createBookmarks(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec);
  46. extern char *fe_getDefaultBookmarks(void);
  47.  
  48. /* history */
  49. extern MWContext* fe_showHistory(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec);
  50. extern void fe_createHistory(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec);
  51.  
  52.  
  53. /* browser */
  54. extern MWContext *fe_showBrowser(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec, URL_Struct *url);
  55. extern MWContext *fe_reuseBrowser(MWContext *context, URL_Struct *url);
  56.  
  57. /* compose */
  58.  
  59. /* Note: (XP_Bool defaultAddressIsNewsgroup flag is used to force empty
  60.  * compose address table to be "Newsgroup:" instead of "To:. Only known
  61.  * user of this flag is XFE_TaskBarDrop::openComposeWindow())
  62.  */
  63. extern MSG_Pane *fe_showCompose(Widget, Chrome *chromespec, MWContext*, MSG_CompositionFields*, const char *, XP_Bool preferToUseHtml, XP_Bool defaultAddressIsNewsgroup);
  64.  
  65. /* conference */
  66. extern void fe_showConference(Widget w, char *email, short use, char *coolAddr);
  67.  
  68. /* calendar */
  69. extern void fe_showCalendar(Widget w);
  70.  
  71. /* host on demand */
  72. extern void fe_showHostOnDemand();
  73.  
  74. /* dialogs */
  75. extern MWContext *fe_showHTMLDialog(Widget parent, XFE_Frame *parent_frame,
  76.                                     Chrome *chromespec);
  77. extern void fe_attach_field_to_labels (Widget value_field, ...);
  78.  
  79. /* download (save to disk) */
  80. extern MWContext *fe_showDownloadWindow(Widget toplevel, XFE_Frame *parent_frame);
  81.  
  82. /* editor */
  83. extern MWContext* fe_showEditor(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec, URL_Struct *url);
  84.  
  85. /* folders */
  86. extern MWContext* fe_showFolders(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec);
  87. extern MWContext* fe_showNewsgroups(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec);
  88. extern MSG_Master *fe_getMNMaster(void);
  89.  
  90. /* ldap search */
  91. extern MWContext* fe_showLdapSearch(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec);
  92.  
  93. /* mail search */
  94. extern MWContext* fe_showSearch(Widget, XFE_Frame *parent_frame, Chrome *chromespec);
  95.  
  96. /* mail filters */
  97. extern MWContext* fe_showMailFilters(Widget toplevel);
  98.  
  99. /* mail messages */
  100. extern MWContext* fe_showMsg(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec, MSG_FolderInfo *folder_info, MessageKey msg_key, XP_Bool with_reuse);
  101.  
  102. /* mail threads */
  103. extern MWContext* fe_showInbox(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec, XP_Bool with_reuse, XP_Bool getNewMail);
  104. extern MWContext* fe_showMessages(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec, MSG_FolderInfo *info, XP_Bool with_reuse, XP_Bool getNewMail, MessageKey key);
  105.  
  106. #ifdef MOZ_TASKBAR
  107. /* task bar */
  108. extern void fe_showTaskBar(Widget toplevel);
  109. #endif
  110.  
  111. /* generic window creation. */
  112. MWContext *
  113. xfe2_MakeNewWindow(Widget toplevel, MWContext *context_to_copy,
  114.                    URL_Struct *url, char *window_name, MWContextType type,
  115.                    Boolean skip_get_url, Chrome *decor);
  116.  
  117. /* help menu */
  118. extern void fe_about_cb (Widget widget, XtPointer closure, XtPointer call_data);
  119. extern void fe_manual_cb (Widget widget, XtPointer closure, XtPointer call_data);
  120.  
  121. extern void XFE_SetDocTitle(MWContext *context, char *title);
  122.  
  123. extern void fe_openTargetUrl(MWContext * context,LO_AnchorData * anchor_data);
  124.  
  125. XP_END_PROTOS
  126.  
  127. #endif /* _xfe_extern_h */
  128.