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

  1. /* -*- Mode: C++; tab-width: 8; 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.    ComposeFrame.h -- class definitions for mail compose frames.
  20.    Created: Dora Hsu <dora@netscape.com>, 23-Sept-96.
  21.  */
  22.  
  23.  
  24.  
  25. #ifndef _xfe_composeframe_h
  26. #define _xfe_composeframe_h
  27.  
  28. #include "Frame.h"
  29. #include <Xm/Xm.h>
  30. #include "msgcom.h"
  31. #include "PopupMenu.h"
  32.  
  33.  
  34. class XFE_ComposeFrame : public XFE_Frame
  35. {
  36. public:
  37.   XFE_ComposeFrame(Widget toplevel, Chrome *chromespec, 
  38.                 MWContext *old_context = NULL,
  39.         MSG_CompositionFields *fields = NULL,
  40.         const char *pInitialText = NULL,
  41.         XP_Bool useHtml = False);
  42.   virtual ~XFE_ComposeFrame();
  43.  
  44.   MSG_Pane   *getPane();
  45.  
  46.   virtual XP_Bool isCommandEnabled(CommandType cmd, void *calldata = NULL,
  47.                          XFE_CommandInfo* = NULL);
  48.   virtual void    doCommand(CommandType cmd, void *calldata = NULL,
  49.                          XFE_CommandInfo* = NULL);
  50.   virtual XP_Bool handlesCommand(CommandType cmd, void *calldata = NULL,
  51.                          XFE_CommandInfo* = NULL);
  52.   XFE_Command* getCommand(CommandType cmd);
  53.  
  54.   virtual int initEditor();
  55.  
  56.   virtual void allConnectionsComplete();
  57.  
  58.   void destroyWhenAllConnectionsComplete();
  59.  
  60.   // For security icon state...
  61.   virtual int getSecurityStatus();
  62.   virtual XP_Bool isOkToClose();
  63.  
  64. protected:
  65.   
  66. private:
  67.   static MenuSpec menu_bar_spec[];
  68.   static MenuSpec file_menu_spec[];
  69.   static MenuSpec edit_menu_spec[];
  70.   static MenuSpec view_menu_spec[];
  71.   static MenuSpec message_attach_menu_spec[];
  72.   static ToolbarSpec toolbar_spec[];
  73.   static MenuSpec html_edit_menu_spec[];
  74.   static MenuSpec html_view_menu_spec[];
  75.   static MenuSpec html_menu_bar_spec[];
  76.   XP_Bool m_destroyWhenConnectionsComplete;
  77.  
  78.   // Toolbox methods
  79.   virtual void        toolboxItemClose        (XFE_ToolboxItem * item);
  80.   virtual void        toolboxItemOpen        (XFE_ToolboxItem * item);
  81.   virtual void        toolboxItemChangeShowing(XFE_ToolboxItem * item);
  82.  
  83.   virtual void        configureToolbox    ();
  84. };
  85.  
  86. #endif /* _xfe_composeframe_h */
  87.