-fpermissive to allow GCC to compile old C++
[oweals/cde.git] / cde / programs / dtmail / dtmail / ComposeCmds.hh
1 /*
2  *+SNOTICE
3  *
4  *      $XConsortium: ComposeCmds.hh /main/3 1995/11/06 16:05:11 rswiston $
5  *
6  *      RESTRICTED CONFIDENTIAL INFORMATION:
7  *      
8  *      The information in this document is subject to special
9  *      restrictions in a confidential disclosure agreement between
10  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
11  *      document outside HP, IBM, Sun, USL, SCO, or Univel without
12  *      Sun's specific written approval.  This document and all copies
13  *      and derivative works thereof must be returned or destroyed at
14  *      Sun's request.
15  *
16  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
17  *
18  *+ENOTICE
19  */
20
21 #ifndef COMPOSECMDS_HH
22 #define COMPOSECMDS_HH
23
24 class ComposeFamily : public RoamCmd {
25   private:
26     RoamMenuWindow *    _parent;
27     
28   public:
29     ComposeFamily(char * name, char *label, int active, RoamMenuWindow *);
30 #ifndef CAN_INLINE_VIRTUALS
31     ~ComposeFamily( void );
32 #endif /* ! CAN_INLINE_VIRTUALS */
33     void Display_entire_msg(DtMailMessageHandle, SendMsgDialog *, char *);
34     void appendSignature(SendMsgDialog *);
35     char * valueToAddrString(DtMailValueSeq & value);
36 };
37
38 class ComposeCmd : public ComposeFamily {
39   private:
40     RoamMenuWindow *    _parent;
41
42   public:
43     virtual void doit();   
44     ComposeCmd( char *, char *, int, RoamMenuWindow * );
45     virtual const char *const className () { return "ComposeCmd"; }
46 };
47
48 class ForwardCmd : public ComposeFamily {
49   private:
50         RoamMenuWindow *_parent;
51         int _forward;
52   public:
53     virtual void doit();   
54     ForwardCmd( char *, char *, int, RoamMenuWindow *, int );
55     virtual const char *const className () { return "ForwardCmd"; }
56 };
57
58 class ReplyAllCmd : public ComposeFamily {
59   private:
60         RoamMenuWindow *_parent;
61         int _include;
62   public:
63     virtual void doit();   
64     ReplyAllCmd( char *, char *, int, RoamMenuWindow *, int );
65     virtual const char *const className () { return "ReplyAllCmd"; }
66 };
67
68 class ReplyCmd : public ComposeFamily {
69   private:
70         RoamMenuWindow *_parent;
71         int _include;
72   public:
73     virtual void doit();
74     ReplyCmd( char *, char *, int, RoamMenuWindow *, int );
75     virtual const char *const className () { return "ReplyCmd"; }
76 };
77
78 class TemplateCmd : public NoUndoCmd {
79   private:
80     SendMsgDialog       *_compose;
81     char                *_file;
82
83   public:
84     virtual void doit();
85     TemplateCmd(char * name, 
86                 char *label, 
87                 int active, 
88                 SendMsgDialog *, 
89                 const char * file);
90     virtual ~TemplateCmd();
91     virtual const char *const className() { return "TemplateCmd"; }
92 };
93
94 class HideShowCmd : public NoUndoCmd {
95   private:
96     SendMsgDialog       *_compose;
97     char                *_header;
98
99   public:
100     virtual void doit(void);
101     HideShowCmd(char * name,
102                 char *widgetlabel,
103                 int active,
104                 SendMsgDialog *,
105                 const char * label);
106     virtual ~HideShowCmd(void);
107     virtual const char *const className() { return "HideShowCmd"; }
108 };
109
110 #endif