Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtappbuilder / src / ab / attch_ed.h
1
2 /*
3  *      $XConsortium: attch_ed.h /main/3 1995/11/06 17:19:33 rswiston $
4  *
5  *      @(#)attch_ed.h  1.4 08 Oct 1994 
6  *
7  *      RESTRICTED CONFIDENTIAL INFORMATION:
8  *      
9  *      The information in this document is subject to special
10  *      restrictions in a confidential disclosure agreement between
11  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
12  *      document outside HP, IBM, Sun, USL, SCO, or Univel without
13  *      Sun's specific written approval.  This document and all copies
14  *      and derivative works thereof must be returned or destroyed at
15  *      Sun's request.
16  *
17  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
18  *
19  */
20
21 /*
22  * attch_ed.h
23  *
24  * Functions for manipulating the Attachments Editor
25  */
26
27 #ifndef _attch_ed_h
28 #define _attch_ed_h
29
30 typedef enum
31 {
32     ATTCH_ED_PARENT = 0,
33     ATTCH_ED_OPPOSITE_PARENT,
34     ATTCH_ED_SIBLING,
35     ATTCH_ED_OPPOSITE_SIBLING,
36     ATTCH_ED_GRIDLINE,
37     ATTCH_ED_CENTER_GRIDLINE,
38     ATTCH_ED_NONE
39 } ATTCH_ED_ATTACH_TYPE;
40
41 typedef enum
42 {
43     ATTCH_ED_WRN_LOAD = 0,
44     ATTCH_ED_WRN_CHANGE_OBJTYPE,
45     ATTCH_ED_WRN_CLOSE
46 } ATTCH_ED_WRN_TYPE;
47
48 #define attch_ed_need_obj_menu(attach_type)     \
49         ((attach_type == ATTCH_ED_SIBLING) || (attach_type == ATTCH_ED_OPPOSITE_SIBLING))
50
51 /*
52  * Attachment Editor Settings
53  */
54 typedef struct  ATTACHMENT_EDITOR_SETTINGS
55 {
56     Widget                      prop_sheet;
57     PropOptionsSettingRec       top_attach_type;
58     PropFieldSettingRec         top_attach_offset;
59     PropFieldSettingRec         top_attach_position;
60     PropOptionsSettingRec       top_attach_obj;
61     PropOptionsSettingRec       bottom_attach_type;
62     PropFieldSettingRec         bottom_attach_offset;
63     PropFieldSettingRec         bottom_attach_position;
64     PropOptionsSettingRec       bottom_attach_obj;
65     PropOptionsSettingRec       left_attach_type;
66     PropFieldSettingRec         left_attach_offset;
67     PropFieldSettingRec         left_attach_position;
68     PropOptionsSettingRec       left_attach_obj;
69     PropOptionsSettingRec       right_attach_type;
70     PropFieldSettingRec         right_attach_offset;
71     PropFieldSettingRec         right_attach_position;
72     PropOptionsSettingRec       right_attach_obj;
73     ABObj                       cur_object;
74 } AttchEditorSettingsRec, *AttchEditorSettings;
75
76 void            attch_ed_init(
77                 );
78
79 void            attch_ed_show_dialog(
80                     ABObj       cur_obj
81                 );
82
83 BOOL            attch_ed_can_edit_attachments(
84                     ABObj       obj
85                 );
86
87 #endif /* _attch_ed_h */