home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / compstd.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. /* COMPSTD.H - standard Compose window header file contains standard
  19.  * definitions which are used throughout all comp*.* files.
  20.  */
  21.  
  22. #ifndef __COMPSTD_H
  23. #define __COMPSTD_H
  24.  
  25. #include "msgcom.h"
  26.  
  27. #define IDX_COMPOSEADDRESS      0       // tab indexes for attach/address
  28. #define IDX_COMPOSEATTACH       1
  29. #define IDX_COMPOSEOPTIONS      2
  30. #define IDX_COMPOSEATTACHFILE   3
  31. #define IDX_COMPOSEATTACHMAIL   4
  32.  
  33. #define IDX_TOOL_ADDRESS        0
  34. #define IDX_TOOL_ATTACH         1
  35. #define IDX_TOOL_OPTIONS        2
  36. #define IDX_TOOL_COLLAPSE       3
  37.  
  38. #define EDIT_FIELD_OFFSET       4       // pixel border surrounding fields
  39. #define EDIT_MARGIN_OFFSET      4
  40. #define EDIT_TOP_MARGIN         4
  41.  
  42. #define IDC_ADDRESSADD          150
  43. #define IDC_ADDRESSREMOVE       151
  44. #define IDC_ADDRESSSELECT       152
  45. #define IDC_DIRECTORY           153
  46.  
  47. #define IDC_ADDRESSTAB          155
  48. #define IDC_ATTACHTAB           156
  49. #define IDC_OPTIONSTAB          157
  50.  
  51. #define    TABCTRL_HOME                  -2
  52. #define TABCTRL_END                      -1
  53.  
  54. #define IDC_COMPOSEEDITOR       338     // control id for editor
  55.  
  56. #define FLIPPY_WIDTH                16      // width and height of the expansion bitmap
  57. #define FLIPPY_HEIGHT                16
  58.  
  59. extern char * EDT_NEW_DOC_URL;          // this is for the Gold editor.  Loading this
  60.                                         // URL causes the creation of a new (blank)
  61.                                         // editor file.
  62.  
  63. class CNSAttachDropTarget : public COleDropTarget
  64. {
  65. public:
  66. //Construction
  67.     CNSAttachDropTarget() { };
  68.     BOOL        OnDrop(CWnd *, COleDataObject *, DROPEFFECT, CPoint);
  69.     DROPEFFECT  OnDragEnter(CWnd *, COleDataObject *, DWORD, CPoint);
  70.     DROPEFFECT  OnDragOver(CWnd *, COleDataObject *, DWORD, CPoint);
  71.     void        OnDragLeave(CWnd *);
  72. };
  73.  
  74. extern "C" int FE_LoadExchangeInfo(MWContext * context);
  75.  
  76. // temporary functions to allow the regular text editor to be functional
  77. extern "C" int FE_GetMessageBody(
  78.     MSG_Pane *pPane, 
  79.     char **ppBody, 
  80.     uint32 *ulBodySize, 
  81.     MSG_FontCode **ppFontChanges);
  82.     
  83. extern "C" void FE_InsertMessageCompositionText(
  84.     MWContext * context,
  85.     const char* text,
  86.     XP_Bool leaveCursorAtBeginning);
  87.  
  88. ////////////////////////////////////////////////////////////
  89. // backend candidates
  90.  
  91. MSG_HEADER_SET MSG_StringToHeaderMask(char * string);
  92. const char * MSG_HeaderMaskToString(MSG_HEADER_SET header);
  93.  
  94. ////////////////////////////////////////////////////////////
  95. // end backend candidates
  96.  
  97. #endif
  98.