Fix dttypes for BSD systems
[oweals/cde.git] / cde / programs / dtwm / WmWrkspace.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these librararies and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /* $XConsortium: WmWrkspace.h /main/4 1995/11/01 11:56:28 rswiston $ */
24 #ifdef WSM
25 /* 
26  * (c) Copyright 1987,1988,1989,1990,1992,1993,1994 HEWLETT-PACKARD COMPANY 
27  * (c) Copyright 1993, 1994 International Business Machines Corp.
28  * (c) Copyright 1993, 1994 Sun Microsystems, Inc.
29  * (c) Copyright 1993, 1994 Novell, Inc.
30  * ALL RIGHTS RESERVED 
31  */ 
32 #ifdef REV_INFO
33 #ifndef lint
34 static char rcsid[] = ""
35 #endif
36 #endif
37
38 /********    Public Function Declarations    ********/
39
40 extern void ChangeToWorkspace( 
41                         WmWorkspaceData *pNewWS) ;
42 extern void ChangeWorkspaceTitle( WmWorkspaceData *pWS, char * pchTitle);
43 extern Boolean DuplicateWorkspaceName (
44                         WmScreenData *pSD, 
45                         unsigned char *name, 
46                         int num);
47 extern void UpdateWorkspacePresenceProperty( 
48                         ClientData *pCD) ;
49 #ifdef HP_VUE
50 extern void UpdateWorkspaceInfoProperty( 
51                         WmScreenData *pSD) ;
52 #endif /* HP_VUE */
53 extern WmWorkspaceData * CreateWorkspace( 
54                         WmScreenData *pSD,
55                         unsigned char *name) ;
56 extern void DeleteWorkspace( 
57                         WmWorkspaceData *pWS) ;
58 extern Boolean GetClientWorkspaceInfo( 
59                         ClientData *pCD,
60                         long manageFlags) ;
61 extern Boolean WorkspaceIsInCommand( 
62                         Display *dpy,
63                         ClientData *pCD,
64                         WorkspaceID **ppIDs,
65                         unsigned int *pNumIDs) ;
66 extern Boolean ConvertNamesToIDs( 
67                         WmScreenData *pSD,
68                         unsigned char *pchIn,
69                         WorkspaceID **ppAtoms,
70                         unsigned int *pNumAtoms) ;
71 extern void CheckForPutInAllRequest( 
72                         ClientData *pCD,
73                         Atom *pIDs,
74                         unsigned int numIDs) ;
75 extern Boolean FindWsNameInCommand( 
76                         int argc,
77                         char *argv[],
78                         unsigned char **ppch) ;
79 extern void PutClientIntoWorkspace( 
80                         WmWorkspaceData *pWS,
81                         ClientData *pCD) ;
82 extern void TakeClientOutOfWorkspace( 
83                         WmWorkspaceData *pWS,
84                         ClientData *pCD) ;
85 extern WmWorkspaceData * GetWorkspaceData( 
86                         WmScreenData *pSD,
87                         WorkspaceID wsID) ;
88 extern unsigned char * GenerateWorkspaceName( 
89                         WmScreenData *pSD,
90                         int wsnum) ;
91 extern Boolean InWindowList( 
92                         Window w,
93                         Window wl[],
94                         int num) ;
95 extern Boolean ClientInWorkspace( 
96                         WmWorkspaceData *pWS,
97                         ClientData *pCD) ;
98 extern WsClientData * GetWsClientData( 
99                         WmWorkspaceData *pWS,
100                         ClientData *pCD) ;
101 extern void SetClientWsIndex( 
102                         ClientData *pCD) ;
103 extern Boolean ProcessWorkspaceHints( 
104                         ClientData *pCD) ;
105 extern void ProcessWorkspaceHintList( 
106                         ClientData *pCD,
107                         WorkspaceID *pIDs,
108                         unsigned int numIDs) ;
109 extern void RemoveSingleClientFromWorkspaces( 
110                         ClientData *pCD,
111                         WorkspaceID *pIDs,
112                         unsigned int numIDs) ;
113 extern void RemoveSubtreeFromWorkspaces( 
114                         ClientData *pCD,
115                         WorkspaceID *pIDs,
116                         unsigned int numIDs) ;
117 #ifdef PANELIST
118 extern WorkspaceID * GetListOfOccupiedWorkspaces( 
119                         ClientData *pCD,
120                         int *numIDs) ;
121 #endif /* PANELIST */
122 extern void HonorAbsentMapBehavior(
123                         ClientData *pCD) ;
124 extern void RemoveClientFromWorkspaces( 
125                         ClientData *pCD,
126                         WorkspaceID *pIDs,
127                         unsigned int numIDs) ;
128 extern void AddSingleClientToWorkspaces( 
129                         ClientData *pCD,
130                         WorkspaceID *pIDs,
131                         unsigned int numIDs) ;
132 extern void AddSubtreeToWorkspaces( 
133                         ClientData *pCD,
134                         WorkspaceID *pIDs,
135                         unsigned int numIDs) ;
136 extern void AddClientToWorkspaces( 
137                         ClientData *pCD,
138                         WorkspaceID *pIDs,
139                         unsigned int numIDs) ;
140 extern void AddClientToWsList( 
141                         WmWorkspaceData *pWS,
142                         ClientData *pCD) ;
143 extern void RemoveClientFromWsList( 
144                         WmWorkspaceData *pWS,
145                         ClientData *pCD) ;
146 extern Boolean F_CreateWorkspace( 
147                         String args,
148                         ClientData *pCD,
149                         XEvent *event) ;
150 extern Boolean F_DeleteWorkspace( 
151                         String args,
152                         ClientData *pCD,
153                         XEvent *event) ;
154 extern Boolean F_GotoWorkspace( 
155                         String args,
156                         ClientData *pCD,
157                         XEvent *event) ;
158 extern Boolean F_AddToAllWorkspaces( 
159                         String args,
160                         ClientData *pCD,
161                         XEvent *event) ;
162 extern Boolean F_Remove( 
163                         String args,
164                         ClientData *pCD,
165                         XEvent *event) ;
166 extern int GetCurrentWorkspaceIndex( 
167                         WmScreenData *pSD) ;
168 extern void InsureIconForWorkspace( 
169                         WmWorkspaceData *pWS,
170                         ClientData *pCD) ;
171 extern Boolean GetLeaderPresence( 
172                         ClientData *pCD,
173                         WorkspaceID **ppIDs,
174                         unsigned int *pnumIDs) ;
175 extern Boolean GetMyOwnPresence( 
176                         ClientData *pCD,
177                         WorkspaceID **ppIDs,
178                         unsigned int *pnumIDs) ;
179 extern void ReserveIdListSpace( 
180                         int numIDs) ;
181 extern void SaveWorkspaceResources( 
182                         WmWorkspaceData *pWS,
183                         unsigned long flags) ;
184 extern void SaveResources( 
185                         WmScreenData *pSD) ;
186 extern void AddStringToResourceData( 
187                         char *string,
188                         char **pdata,
189                         int *plen) ;
190 #ifdef PANELIST
191 extern void SetCurrentWorkspaceButton(
192                         WmScreenData *pSD);
193 extern void SetFrontPanelTitle( 
194                         WmScreenData *pSD);
195 #endif /* PANELIST */
196
197 /********    End Public Function Declarations    ********/
198 #endif /* WSM */
199
200