1/***********************************************************
2
3Copyright 1987, 1988, 1998  The Open Group
4
5Permission to use, copy, modify, distribute, and sell this software and its
6documentation for any purpose is hereby granted without fee, provided that
7the above copyright notice appear in all copies and that both that
8copyright notice and this permission notice appear in supporting
9documentation.
10
11The above copyright notice and this permission notice shall be included in
12all copies or substantial portions of the Software.
13
14THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
17OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
18AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
19CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
20
21Except as contained in this notice, the name of The Open Group shall not be
22used in advertising or otherwise to promote the sale, use or other dealings
23in this Software without prior written authorization from The Open Group.
24
25Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
26
27                        All Rights Reserved
28
29Permission to use, copy, modify, and distribute this software and its
30documentation for any purpose and without fee is hereby granted,
31provided that the above copyright notice appear in all copies and that
32both that copyright notice and this permission notice appear in
33supporting documentation, and that the name of Digital not be
34used in advertising or publicity pertaining to distribution of the
35software without specific, written prior permission.
36
37DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
38ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
39DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
40ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
41WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
42ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
43SOFTWARE.
44
45******************************************************************/
46
47/* Make sure all wm properties can make it out of the resource manager */
48
49#ifdef HAVE_CONFIG_H
50#include <config.h>
51#endif
52#include "IntrinsicI.h"
53#include "StringDefs.h"
54#include "Shell.h"
55#include "ShellP.h"
56#include "Vendor.h"
57#include "VendorP.h"
58#include <stdio.h>
59
60/***************************************************************************
61 *
62 * Vendor shell class record
63 *
64 ***************************************************************************/
65
66#if defined(__CYGWIN__) || defined(__MINGW32__)
67/* to fix the EditRes problem because of wrong linker semantics */
68extern WidgetClass vendorShellWidgetClass;
69
70int __stdcall
71DllMain(unsigned long mod_handle, unsigned long flag, void *routine)
72{
73    switch (flag) {
74    case 1:                    /* DLL_PROCESS_ATTACH - process attach */
75        vendorShellWidgetClass = (WidgetClass) (&vendorShellClassRec);
76        break;
77    case 0:                    /* DLL_PROCESS_DETACH - process detach */
78        break;
79    }
80    return 1;
81}
82#endif
83
84/* *INDENT-OFF* */
85#if defined(__APPLE__)
86__attribute__((weak))
87#endif
88externaldef(vendorshellclassrec)
89VendorShellClassRec vendorShellClassRec = {
90    {
91     /* superclass            */ (WidgetClass) &wmShellClassRec,
92     /* class_name            */ "VendorShell",
93     /* size                  */ sizeof(VendorShellRec),
94     /* Class Initializer     */ NULL,
95     /* class_part_initialize */ NULL,
96     /* Class init'ed ?       */ FALSE,
97     /* initialize            */ NULL,
98     /* initialize_notify     */ NULL,
99     /* realize               */ XtInheritRealize,
100     /* actions               */ NULL,
101     /* num_actions           */ 0,
102     /* resources             */ NULL,
103     /* resource_count        */ 0,
104     /* xrm_class             */ NULLQUARK,
105     /* compress_motion       */ FALSE,
106     /* compress_exposure     */ TRUE,
107     /* compress_enterleave   */ FALSE,
108     /* visible_interest      */ FALSE,
109     /* destroy               */ NULL,
110     /* resize                */ XtInheritResize,
111     /* expose                */ NULL,
112     /* set_values            */ NULL,
113     /* set_values_hook       */ NULL,
114     /* set_values_almost     */ XtInheritSetValuesAlmost,
115     /* get_values_hook       */ NULL,
116     /* accept_focus          */ NULL,
117     /* intrinsics version    */ XtVersion,
118     /* callback offsets      */ NULL,
119     /* tm_table              */ NULL,
120     /* query_geometry        */ NULL,
121     /* display_accelerator   */ NULL,
122     /* extension             */ NULL
123     },
124     {
125       /* geometry_manager    */ XtInheritGeometryManager,
126       /* change_managed      */ XtInheritChangeManaged,
127       /* insert_child        */ XtInheritInsertChild,
128       /* delete_child        */ XtInheritDeleteChild,
129       /* extension           */ NULL
130     },
131     {
132       /* extension           */ NULL
133     },
134     {
135       /* extension           */ NULL
136     },
137     {
138       /* extension           */ NULL
139     }
140};
141/* *INDENT-ON* */
142
143#if defined(__APPLE__)
144__attribute__((weak))
145#endif
146externaldef(vendorshellwidgetclass)
147WidgetClass vendorShellWidgetClass = (WidgetClass) (&vendorShellClassRec);
148