home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / fldrfrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  3.2 KB  |  107 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 _FLDRFRM_H
  20. #define _FLDRFRM_H
  21.  
  22. #ifndef _MAILFRM_H
  23. #include "mailfrm.h"
  24. #endif
  25.  
  26. /////////////////////////////////////////////////////////////////////////////
  27. // CFolderFrame frame
  28.  
  29. class CFolderFrame : public CMsgListFrame
  30. {
  31.     DECLARE_DYNCREATE(CFolderFrame)
  32. protected:
  33.     CNetscapeStatusBar m_barStatus;
  34.  
  35.     CFolderFrame();
  36.  
  37.     void SelectFolder( MSG_FolderInfo *folderInfo );
  38.     void DoOpenFolder( BOOL bReuse);
  39.  
  40.     virtual void GetMessageString( UINT nID, CString& rMessage ) const;
  41.     virtual BOOL OnCreateClient( LPCREATESTRUCT lpcs, CCreateContext* pContext );
  42.     virtual BOOL FileBookmark();
  43.  
  44. #ifndef ON_COMMAND_RANGE
  45.     afx_msg BOOL OnCommand( WPARAM wParam, LPARAM lParam );
  46.     afx_msg BOOL OnCmdMsg(UINT nID, int nCode, void* pExtra, AFX_CMDHANDLERINFO* pHandlerInfo);
  47. #endif
  48.  
  49.     afx_msg void OnSetFocus( CWnd * pOld );
  50.     afx_msg int OnCreate( LPCREATESTRUCT lpCreateStruct );
  51.     afx_msg void OnClose( );
  52.     afx_msg void OnDestroy();
  53.  
  54.     // File Menu Items
  55.     afx_msg void OnOpen();
  56.     afx_msg void OnOpenNew();
  57.     afx_msg void OnOpenReuse();
  58.     afx_msg void OnUpdateOpen( CCmdUI *pCmdUI );
  59.     afx_msg void OnNew();
  60.     afx_msg void OnUpdateNew(CCmdUI *pCmdUI);
  61.  
  62.     // View Menu Items
  63.     afx_msg void OnUpdateView();
  64.     afx_msg void OnUpdateUpdateView( CCmdUI *pCmdUI );
  65.     afx_msg void OnViewProperties();
  66.     afx_msg void OnUpdateViewProperties( CCmdUI *pCmdUI );
  67.  
  68.     // Message Menu Items
  69.     afx_msg void OnMove( UINT nID );
  70.     afx_msg void OnCopy( UINT nID );
  71.     afx_msg void OnUpdateFile( CCmdUI *pCmdUI );
  72.  
  73.     // Window Menu Items
  74.     afx_msg void OnFileBookmark();
  75.     afx_msg void OnUpdateFileBookmark( CCmdUI *pCmdUI );
  76.  
  77.     // Non menu items
  78.     afx_msg void OnSelect();
  79.     DECLARE_MESSAGE_MAP()
  80.  
  81. public:
  82. // Support for IMailFrame
  83.     virtual void PaneChanged( MSG_Pane *pane, XP_Bool asynchronous, 
  84.                               MSG_PANE_CHANGED_NOTIFY_CODE, int32 value);
  85.  
  86.     virtual LPCTSTR GetWindowMenuTitle();
  87.  
  88.     virtual MSG_FolderInfo *GetCurFolder() const;
  89.  
  90.     static MSG_FolderInfo *FindFolder( LPCSTR lpszName, MSG_FolderInfo *root = NULL );
  91.  
  92.     static CFolderFrame *Open();
  93.     static CFolderFrame *Open( MSG_FolderInfo *folderInfo );
  94.     static CFolderFrame *OpenNews( );
  95.  
  96.     static void SetFolderPref( MSG_FolderInfo *, uint32 );
  97.     static void ClearFolderPref( MSG_FolderInfo *, uint32 );
  98.     static BOOL IsFolderPrefSet( MSG_FolderInfo *, uint32 );
  99. };
  100.  
  101. void _ShutDownFrameCallBack(HWND hwnd, MSG_Pane *pane, void * closure);
  102.  
  103.     
  104. extern CFolderFrame *g_pFolderFrame;
  105.  
  106. #endif
  107.