4 * $TOG: DtMailEditor.hh /main/5 1997/06/06 12:45:31 mgreess $
6 * RESTRICTED CONFIDENTIAL INFORMATION:
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
16 * Copyright 1993 Sun Microsystems, Inc. All rights reserved.
21 #ifndef DTMAILEDITOR_H
22 #define DTMAILEDITOR_H
26 #include "AttachArea.h"
29 class DtMailEditor : public UIComponent {
35 AbstractEditorParent *
37 virtual ~DtMailEditor();
40 AbstractEditorParent *owner();
43 AttachArea *attachArea();
47 void showAttachArea();
48 void hideAttachArea();
49 void manageAttachArea();
50 void unmanageAttachArea();
51 void setMsgHnd( DtMail::Message *);
52 static void attachTransferCallback(Widget, XtPointer, XtPointer );
53 void attachDropRegister();
54 void attachDropEnable();
55 void attachDropDisable();
56 static void attachConvertCallback(Widget, XtPointer, XtPointer);
57 static void attachDragFinishCallback(Widget, XtPointer, XtPointer);
58 void attachDragStart(Widget, XEvent *);
59 void attachDragMotionHandler(Widget, XEvent *);
60 //void attachDragSetup();
61 void setEditable(Boolean);
62 Boolean editable() { return _editable; }
63 Boolean doingDrag() { return _doingDrag; }
64 void setDoingDrag(Boolean doingDrag) { _doingDrag = doingDrag; }
65 void setDragX(int n) { _dragX = n; }
66 void setDragY(int n) { _dragY = n; }
67 int dragX() { return _dragX; }
68 int dragY() { return _dragY; }
70 // Routines to null terminate buffer.
71 void needBuf(char **, unsigned long *, unsigned long len);
72 void stripCRLF(char **, const char * buf, const unsigned long len);
76 DtMail::Message *_msgHandle;
77 Editor *_myTextEditor;
78 AttachArea *_myAttachArea;
83 Boolean _showAttachArea;
88 // Can be RMW or VMD or SMD
89 AbstractEditorParent *_myOwner;
93 #endif // DTMAILEDITOR_HH