cancooninternal.h

Go to the documentation of this file.
00001 
00002 /*  $Id: cancooninternal.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /******************************************************************************
00005 
00006     UserLand Frontier(tm) -- High performance Web content management,
00007     object database, system-level and Internet scripting environment,
00008     including source code editing and debugging.
00009 
00010     Copyright (C) 1992-2004 UserLand Software, Inc.
00011 
00012     This program is free software; you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation; either version 2 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program; if not, write to the Free Software
00024     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00025 
00026 ******************************************************************************/
00027 
00028 #define cancooninternalinclude /*so other guys can tell if we've been included*/
00029 
00030 
00031 
00032 #ifndef dbinclude
00033 
00034     #include "db.h"
00035 
00036 #endif
00037 
00038 #define cancoonversionnumber 0x03
00039 
00040 typedef struct tyversion1cancoonrecord {
00041     
00042     short versionnumber;
00043     
00044     dbaddress adrroottable;
00045     
00046     Rect msgwindowrect;
00047     
00048     diskfontstring msgfontname;
00049     
00050     short msgfontsize;
00051     
00052     Rect langerrorwindowrect;
00053     
00054     diskfontstring langerrorfontname;
00055     
00056     short langerrorfontsize;
00057     
00058     char waste [8]; /*room to grow*/
00059     } tyversion1cancoonrecord;
00060     
00061     
00062 typedef struct tyversion2cancoonrecord {
00063     
00064     short versionnumber;
00065     
00066     dbaddress adrroottable;
00067     
00068     tycancoonwindowinfo windowinfo [ctwindowinfo];
00069     
00070     dbaddress adrscriptstring; /*the string that appears in the quickscript window*/
00071     
00072     unsigned short flags;
00073     
00074     short ixprimaryagent;
00075     
00076     short waste [28]; /*room to grow*/
00077     } tyversion2cancoonrecord;
00078 
00079 #ifdef MACVERSION
00080     #define flflagdisabled_mask 0x8000 /*hide the flag?*/
00081     #define flpopupdisabled_mask 0x4000 /*hide the agents popup menu?*/
00082     #define flbigwindow_mask 0x2000 /*is the flag toggled to the big window state?*/
00083 #endif
00084 
00085 #ifdef WIN95VERSION
00086     #define flflagdisabled_mask 0x0080 /*hide the flag?*/
00087     #define flpopupdisabled_mask 0x0040 /*hide the agents popup menu?*/
00088     #define flbigwindow_mask 0x0020 /*is the flag toggled to the big window state?*/
00089 #endif
00090 
00091 typedef struct tyOLD42version2cancoonrecord {
00092     
00093     short versionnumber;
00094     
00095     dbaddress adrroottable;
00096     
00097     tycancoonwindowinfo windowinfo [ctwindowinfo];
00098     
00099     dbaddress adrscriptstring; /*the string that appears in the quickscript window*/
00100     
00101     unsigned short flflagdisabled: 1; /*hide the flag?*/
00102     
00103     unsigned short flpopupdisabled: 1; /*hide the agents popup menu?*/
00104     
00105     unsigned short flbigwindow: 1; /*is the flag toggled to the big window state?*/
00106     
00107     unsigned short unusedbits: 13; /*make sure the used bits never move*/
00108     
00109     short ixprimaryagent;
00110     
00111     short waste [28]; /*room to grow*/
00112     } tyOLD42version2cancoonrecord;
00113 
00114 
00115 /*internal globals*/
00116 
00117 extern hdlcancoonrecord cancoondata;
00118 
00119 extern hdlwindowinfo cancoonwindowinfo;
00120 
00121 extern WindowPtr cancoonwindow;
00122 
00123 
00124 /*prototypes*/
00125 
00126 extern boolean ccgetwindowinfo (short, tycancoonwindowinfo *); /*cancoon.c*/
00127 
00128 extern boolean ccsetwindowinfo (short, tycancoonwindowinfo);
00129 
00130 extern boolean ccloadfile (hdlfilenum, short);
00131 
00132 extern boolean ccloadspecialfile (ptrfilespec, OSType);
00133 
00134 extern boolean ccsavefile (ptrfilespec, hdlfilenum, short, boolean, boolean);
00135 
00136 extern boolean ccnewrecord (void);
00137 
00138 extern boolean ccdisposerecord (void);
00139 
00140 extern boolean ccsetdatabase (void);
00141 
00142 extern boolean ccgetdatabase (hdldatabaserecord *);
00143 
00144 extern boolean ccsetsuperglobals (void);
00145 
00146 extern boolean ccbackground (void);
00147 
00148 extern boolean ccfnumchanged (hdlfilenum);
00149 
00150 extern boolean ccfindusedblocks (void);
00151 
00152 extern boolean ccpreclose (WindowPtr);  /*4.1b5 dmb*/
00153 
00154 extern boolean ccclose (void);
00155 
00156 extern boolean ccchildclose (WindowPtr);
00157 
00158 extern boolean cceditmenubar (boolean);
00159 
00160 extern boolean ccagentpopuphit (Rect, Point); /*cancoonpopup.c*/
00161 
00162 extern void ccupdateagentpopup (Rect);
00163 
00164 extern boolean ccgetprimaryagent (short *);
00165 
00166 extern boolean ccsetprimaryagent (short);
00167 
00168 extern boolean cccodereplaced (hdltreenode, hdltreenode);
00169 
00170 
00171 extern boolean ccinitverbs (void); /*cancoonverbs.c*/
00172 
00173 
00174 extern void ccwindowsetup (boolean, boolean); /*cancoonwindow.c*/
00175 
00176 extern boolean cchelpcommand (void);
00177 
00178 extern boolean cctoggleflag (void);
00179 
00180 extern boolean cctoggleagentspopup (void);
00181 
00182 extern boolean ccflipflag (void);
00183 
00184 extern boolean ccmsg (bigstring, boolean);
00185 
00186 extern boolean ccwindowstart (void);
00187 
00188 
00189 

Generated on Wed May 31 18:19:44 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6