/* Copyright (c) Xerox Corporation 1993. All rights reserved. */ #ifndef tiogatxt_DEFINED #define tiogatxt_DEFINED 1 #include /* * This file was generated by the Andrew class system preprocessor. * Don't make changes to this file as it is created from tiogatxt.ch and will be * overwritten. Make changes to tiogatxt.ch instead. */ /* * The following information was copied, as-is, from tiogatxt.ch. */ /* tiogatxt.ch -- Text subclass that can read Tioga files. David Nichols December, 1990 */ struct tiogatxt_Run { long looks; /* bitmap of looks */ long start; /* start position */ long len; /* length */ }; struct tiogatxt_Env { struct environment *env; /* current environment */ struct environment *env2; /* wrapped around env, maybe */ long pos; /* where to start it */ int comment; /* is this node a comment? */ }; #define tiogatxt_NUMLOOKS 26 /* * End of information copied from tiogatxt.ch. */ /* * Include the superclass information */ #define dontDefineRoutinesFor_text #include "text.ih" #undef dontDefineRoutinesFor_text /* * Data structure for tiogatxt */ struct tiogatxt { union { struct basicobject_methods *tiogatxt_methods; struct observable observable; struct dataobject dataobject; struct simpletext simpletext; struct text text; } header; char *reader; /* saved tread_Reader */ struct tiogatxt_Run *runs; /* saved runs during reading */ int nRuns; /* number of them */ int nAllocedRuns; /* space for them */ struct tiogatxt_Env *envs; /* stacked envs during reading */ int nEnvs; /* number of them */ int nAllocedEnvs; /* space for them */ struct style *topStyle; /* special top-level style */ struct style *lookTable[tiogatxt_NUMLOOKS]; /* cached looks for reading */ }; /* * End of data structure for tiogatxt. */ #ifndef tiogatxt_PROGRAMMERVERSION #define tiogatxt_PROGRAMMERVERSION 1 #endif /* tiogatxt_PROGRAMMERVERSION */ #ifdef tiogatxt_VERSION #undef tiogatxt_VERSION #endif /* tiogatxt_VERSION */ #define tiogatxt_VERSION ((((tiogatxt_PROGRAMMERVERSION << 16) ^ (69 << 8) ^ sizeof(struct tiogatxt)) & 0x7ffff) + 0x80000 + (0 << 20)) #define tiogatxt_StaticLoadOnlyThisClass() \ { extern struct classinfo *tiogatxt__GetClassInfo(); \ (void) class_EnterInfo(NULL, tiogatxt_classheader.name, tiogatxt__GetClassInfo, NULL, tiogatxt_classheader.namekey); } #define tiogatxt_StaticLoad() \ { \ text_StaticLoad(); \ tiogatxt_StaticLoadOnlyThisClass(); \ } #define tiogatxt_StaticEntry {tiogatxt_StaticLoad()} static struct classheader tiogatxt_classheader = { tiogatxt_VERSION, "tiogatxt", "tiogatxt", (struct basicobject_methods *) &class_RoutineStruct, }; #endif /* tiogatxt_DEFINED */ #if !defined(tiogatxt_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_tiogatxt) && !defined(class_StaticEntriesOnly) #define tiogatxt_ROUTINESDEFINED #define tiogatxt_AddObserver(self,observer) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[0]))) (self,observer)) #define tiogatxt_RemoveObserver(self,observer) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[1]))) (self,observer)) #define tiogatxt_NotifyObservers(self,value) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[2]))) (self,value)) #define tiogatxt_ObservedChanged(self,changed,value) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[3]))) (self,changed,value)) #define tiogatxt_AddRecipient(self,trigger,rcvr,func,rock) \ ((* ((boolean (*)())((self)->header.tiogatxt_methods->routines[4]))) (self,trigger,rcvr,func,rock)) #define tiogatxt_DeleteRecipient(self,trigger,rcvr) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[5]))) (self,trigger,rcvr)) #define tiogatxt_PullTrigger(self,trigger) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[6]))) (self,trigger)) #define tiogatxt_DisableTrigger(self,trigger) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[7]))) (self,trigger)) #define tiogatxt_EnableTrigger(self,trigger) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[8]))) (self,trigger)) #define tiogatxt_DisableCount(self,trigger) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[9]))) (self,trigger)) #define tiogatxt_Read(self,file,id) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[10]))) (self,file,id)) #define tiogatxt_Write(self,file,writeid,level) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[11]))) (self,file,writeid,level)) #define tiogatxt_GetModified(self) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[12]))) (self)) #define tiogatxt_SetModified(self) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[13]))) (self)) #define tiogatxt_ViewName(self) \ ((* ((char * (*)())((self)->header.tiogatxt_methods->routines[14]))) (self)) #define tiogatxt_SetAttributes(self,attributes) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[15]))) (self,attributes)) #define tiogatxt_Put(self,property,type,rock) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[16]))) (self,property,type,rock)) #define tiogatxt_Get(self,property,type,rock) \ ((* ((short (*)())((self)->header.tiogatxt_methods->routines[17]))) (self,property,type,rock)) #define tiogatxt_ListCurrentViews(self,array,size) \ ((* ((int (*)())((self)->header.tiogatxt_methods->routines[18]))) (self,array,size)) #define tiogatxt_RestoreModified(self,oldmodified) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[19]))) (self,oldmodified)) #define tiogatxt_UniqueID(self) \ ((long)((&(self)->header.dataobject))) #define tiogatxt_GetWriteID(self) \ ( ((&(self)->header.dataobject))->writeID ) #define tiogatxt_SetWriteID(self,newValue) \ ( (((&(self)->header.dataobject))->writeID) = (newValue) ) #define tiogatxt_GetID(self) \ ( ((&(self)->header.dataobject))->id ) #define tiogatxt_SetID(self,newValue) \ ( (((&(self)->header.dataobject))->id) = (newValue) ) #define tiogatxt_CreateMark(self,pos,length) \ ((* ((struct mark * (*)())((self)->header.tiogatxt_methods->routines[20]))) (self,pos,length)) #define tiogatxt_RemoveMark(self,mark) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[21]))) (self,mark)) #define tiogatxt_SetReadOnly(self,readOnly) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[22]))) (self,readOnly)) #define tiogatxt_GetReadOnly(self) \ ((* ((boolean (*)())((self)->header.tiogatxt_methods->routines[23]))) (self)) #define tiogatxt_RegionModified(self,pos,len) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[24]))) (self,pos,len)) #define tiogatxt_LengthChanged(self,pos,len) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[25]))) (self,pos,len)) #define tiogatxt_Clear(self) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[26]))) (self)) #define tiogatxt_InsertCharacters(self,pos,str,len) \ ((* ((boolean (*)())((self)->header.tiogatxt_methods->routines[27]))) (self,pos,str,len)) #define tiogatxt_AlwaysInsertCharacters(self,position,string,size) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[28]))) (self,position,string,size)) #define tiogatxt_AddInCharacter(self,pos,c) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[29]))) (self,pos,c)) #define tiogatxt_DeleteCharacters(self,pos,len) \ ((* ((boolean (*)())((self)->header.tiogatxt_methods->routines[30]))) (self,pos,len)) #define tiogatxt_AlwaysDeleteCharacters(self,position,size) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[31]))) (self,position,size)) #define tiogatxt_ReplaceCharacters(self,pos,len,repStr,repLen) \ ((* ((boolean (*)())((self)->header.tiogatxt_methods->routines[32]))) (self,pos,len,repStr,repLen)) #define tiogatxt_AlwaysReplaceCharacters(self,pos,len,repStr,repLen) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[33]))) (self,pos,len,repStr,repLen)) #define tiogatxt_GetLength(self) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[34]))) (self)) #define tiogatxt_GetChar(self,pos) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[35]))) (self,pos)) #define tiogatxt_GetBuf(self,pos,len,lenp) \ ((* ((char * (*)())((self)->header.tiogatxt_methods->routines[36]))) (self,pos,len,lenp)) #define tiogatxt_GetBufEnd(self,endpos,len,lenp) \ ((* ((char * (*)())((self)->header.tiogatxt_methods->routines[37]))) (self,endpos,len,lenp)) #define tiogatxt_GetGap(self,pos,len) \ ((* ((char * (*)())((self)->header.tiogatxt_methods->routines[38]))) (self,pos,len)) #define tiogatxt_GetPosForLine(self,line) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[39]))) (self,line)) #define tiogatxt_GetLineForPos(self,pos) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[40]))) (self,pos)) #define tiogatxt_GetBeginningOfLine(self,pos) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[41]))) (self,pos)) #define tiogatxt_GetEndOfLine(self,pos) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[42]))) (self,pos)) #define tiogatxt_CopyText(self,pos,srctext,srcpos,len) \ ((* ((boolean (*)())((self)->header.tiogatxt_methods->routines[43]))) (self,pos,srctext,srcpos,len)) #define tiogatxt_AlwaysCopyText(self,pos,srctext,srcpos,len) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[44]))) (self,pos,srctext,srcpos,len)) #define tiogatxt_Index(self,pos,c,len) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[45]))) (self,pos,c,len)) #define tiogatxt_Strncmp(self,pos,str,len) \ ((* ((int (*)())((self)->header.tiogatxt_methods->routines[46]))) (self,pos,str,len)) #define tiogatxt_Textncmp(self,pos,text,pos2,len) \ ((* ((int (*)())((self)->header.tiogatxt_methods->routines[47]))) (self,pos,text,pos2,len)) #define tiogatxt_ReadSubString(self,pos,file,quoteCharacters) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[48]))) (self,pos,file,quoteCharacters)) #define tiogatxt_WriteSubString(self,pos,len,file,quoteCharacters) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[49]))) (self,pos,len,file,quoteCharacters)) #define tiogatxt_CopySubString(self,pos,len,buf,quoteCharacters) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[50]))) (self,pos,len,buf,quoteCharacters)) #define tiogatxt_HandleDataObject(self,pos,dop,file) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[51]))) (self,pos,dop,file)) #define tiogatxt_HandleKeyWord(self,pos,keyword,file) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[52]))) (self,pos,keyword,file)) #define tiogatxt_HandleCloseBrace(self,pos,file) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[53]))) (self,pos,file)) #define tiogatxt_HandleBegindata(self,pos,file) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[54]))) (self,pos,file)) #define tiogatxt_GetFence(self) \ mark_GetLength(((&(self)->header.simpletext))->fence) #define tiogatxt_SetFence(self,pos) \ mark_SetLength(((&(self)->header.simpletext))->fence, pos) #define tiogatxt_ClearFence(self) \ mark_SetLength(((&(self)->header.simpletext))->fence, 0L) #define tiogatxt_GetFenceMark(self) \ (((&(self)->header.simpletext))->fence) #define tiogatxt_GetObjectInsertionFlag(self) \ (((&(self)->header.simpletext))->objectInsertionAllowed) #define tiogatxt_SetObjectInsertionFlag(self,flag) \ (((&(self)->header.simpletext))->objectInsertionAllowed = (flag)) #define tiogatxt_InsertObject(self,pos,name,viewname) \ ((* ((struct viewref * (*)())((self)->header.tiogatxt_methods->routines[55]))) (self,pos,name,viewname)) #define tiogatxt_AddStyle(self,pos,len,style) \ ((* ((struct environment * (*)())((self)->header.tiogatxt_methods->routines[56]))) (self,pos,len,style)) #define tiogatxt_AddView(self,pos,viewtype,dataobject) \ ((* ((struct environment * (*)())((self)->header.tiogatxt_methods->routines[57]))) (self,pos,viewtype,dataobject)) #define tiogatxt_AlwaysAddStyle(self,pos,len,style) \ ((* ((struct environment * (*)())((self)->header.tiogatxt_methods->routines[58]))) (self,pos,len,style)) #define tiogatxt_AlwaysAddView(self,pos,viewtype,dataobject) \ ((* ((struct environment * (*)())((self)->header.tiogatxt_methods->routines[59]))) (self,pos,viewtype,dataobject)) #define tiogatxt_SetEnvironmentStyle(self,envptr,styleptr) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[60]))) (self,envptr,styleptr)) #define tiogatxt_SetGlobalStyle(self,styleptr) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[61]))) (self,styleptr)) #define tiogatxt_GetGlobalStyle(self) \ ((* ((struct style * (*)())((self)->header.tiogatxt_methods->routines[62]))) (self)) #define tiogatxt_ReadTemplate(self,templateName,inserttemplatetext) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[63]))) (self,templateName,inserttemplatetext)) #define tiogatxt_FindViewreference(self,pos,len) \ ((* ((struct viewref * (*)())((self)->header.tiogatxt_methods->routines[64]))) (self,pos,len)) #define tiogatxt_AlwaysInsertFile(self,file,filename,position) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[65]))) (self,file,filename,position)) #define tiogatxt_InsertFile(self,file,filename,position) \ ((* ((long (*)())((self)->header.tiogatxt_methods->routines[66]))) (self,file,filename,position)) #define tiogatxt_ClearCompletely(self) \ ((* ((void (*)())((self)->header.tiogatxt_methods->routines[67]))) (self)) #define tiogatxt_EnumerateEnvironments(self,pos,len,callBack,rock) \ ((* ((struct environment * (*)())((self)->header.tiogatxt_methods->routines[68]))) (self,pos,len,callBack,rock)) #define tiogatxt_SetExportEnvironments(self,val) \ ((&(self)->header.text)->exportEnvs = val) #define tiogatxt_GetExportEnvironments(self) \ ((&(self)->header.text)->exportEnvs) #define tiogatxt_GetStyleSheet(self) \ ((&(self)->header.text)->styleSheet) #define tiogatxt_SetWriteAsText(self,TorF) \ (((&(self)->header.text))->WriteAsText = TorF) #define tiogatxt_GetWriteAsText(self) \ (((&(self)->header.text))->WriteAsText) #define tiogatxt_SetCopyAsText(self,TorF) \ (((&(self)->header.text))->CopyAsText = TorF) #define tiogatxt_GetCopyAsText(self) \ (((&(self)->header.text))->CopyAsText) #define tiogatxt_GetWriteStyle(self) \ (((&(self)->header.text))->writeStyle) #define tiogatxt_SetWriteStyle(self,style) \ (((&(self)->header.text))->writeStyle = style) #define tiogatxt_NewFromObject(self) \ ((* ((struct tiogatxt * (*)())((self)->header.tiogatxt_methods->info->procs->routines[0]))) (&tiogatxt_classheader, (self)->header.tiogatxt_methods->info->versionnumber)) #define tiogatxt_New() \ (tiogatxt__New(NULL, tiogatxt_VERSION)) #define tiogatxt_Initialize(self) \ (tiogatxt__Initialize(NULL, self, tiogatxt_VERSION)) #define tiogatxt_Destroy(self) \ ((* ((void (*)()) ((self)->header.tiogatxt_methods->info->procs->routines[1]))) (&tiogatxt_classheader, self)) #define tiogatxt_Finalize(self) \ (tiogatxt__Finalize(NULL, self)) #endif /* !defined(tiogatxt_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_tiogatxt ) && !defined(class_StaticEntriesOnly)*/ #define super_AddObserver(self,observer) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[0]))) (self,observer)) #define super_RemoveObserver(self,observer) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[1]))) (self,observer)) #define super_NotifyObservers(self,value) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[2]))) (self,value)) #define super_ObservedChanged(self,changed,value) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[3]))) (self,changed,value)) #define super_AddRecipient(self,trigger,rcvr,func,rock) \ ((* ((boolean (*)()) (tiogatxt_supermethods->routines[4]))) (self,trigger,rcvr,func,rock)) #define super_DeleteRecipient(self,trigger,rcvr) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[5]))) (self,trigger,rcvr)) #define super_PullTrigger(self,trigger) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[6]))) (self,trigger)) #define super_DisableTrigger(self,trigger) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[7]))) (self,trigger)) #define super_EnableTrigger(self,trigger) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[8]))) (self,trigger)) #define super_DisableCount(self,trigger) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[9]))) (self,trigger)) #define super_Read(self,file,id) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[10]))) (self,file,id)) #define super_Write(self,file,writeid,level) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[11]))) (self,file,writeid,level)) #define super_GetModified(self) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[12]))) (self)) #define super_SetModified(self) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[13]))) (self)) #define super_ViewName(self) \ ((* ((char * (*)()) (tiogatxt_supermethods->routines[14]))) (self)) #define super_SetAttributes(self,attributes) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[15]))) (self,attributes)) #define super_Put(self,property,type,rock) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[16]))) (self,property,type,rock)) #define super_Get(self,property,type,rock) \ ((* ((short (*)()) (tiogatxt_supermethods->routines[17]))) (self,property,type,rock)) #define super_ListCurrentViews(self,array,size) \ ((* ((int (*)()) (tiogatxt_supermethods->routines[18]))) (self,array,size)) #define super_RestoreModified(self,oldmodified) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[19]))) (self,oldmodified)) #define super_UniqueID(self) \ text_UniqueID((struct text *)self) #define super_GetWriteID(self) \ text_GetWriteID((struct text *)self) #define super_SetWriteID(self,newValue) \ text_SetWriteID((struct text *)self,newValue) #define super_GetID(self) \ text_GetID((struct text *)self) #define super_SetID(self,newValue) \ text_SetID((struct text *)self,newValue) #define super_CreateMark(self,pos,length) \ ((* ((struct mark * (*)()) (tiogatxt_supermethods->routines[20]))) (self,pos,length)) #define super_RemoveMark(self,mark) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[21]))) (self,mark)) #define super_SetReadOnly(self,readOnly) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[22]))) (self,readOnly)) #define super_GetReadOnly(self) \ ((* ((boolean (*)()) (tiogatxt_supermethods->routines[23]))) (self)) #define super_RegionModified(self,pos,len) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[24]))) (self,pos,len)) #define super_LengthChanged(self,pos,len) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[25]))) (self,pos,len)) #define super_Clear(self) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[26]))) (self)) #define super_InsertCharacters(self,pos,str,len) \ ((* ((boolean (*)()) (tiogatxt_supermethods->routines[27]))) (self,pos,str,len)) #define super_AlwaysInsertCharacters(self,position,string,size) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[28]))) (self,position,string,size)) #define super_AddInCharacter(self,pos,c) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[29]))) (self,pos,c)) #define super_DeleteCharacters(self,pos,len) \ ((* ((boolean (*)()) (tiogatxt_supermethods->routines[30]))) (self,pos,len)) #define super_AlwaysDeleteCharacters(self,position,size) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[31]))) (self,position,size)) #define super_ReplaceCharacters(self,pos,len,repStr,repLen) \ ((* ((boolean (*)()) (tiogatxt_supermethods->routines[32]))) (self,pos,len,repStr,repLen)) #define super_AlwaysReplaceCharacters(self,pos,len,repStr,repLen) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[33]))) (self,pos,len,repStr,repLen)) #define super_GetLength(self) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[34]))) (self)) #define super_GetChar(self,pos) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[35]))) (self,pos)) #define super_GetBuf(self,pos,len,lenp) \ ((* ((char * (*)()) (tiogatxt_supermethods->routines[36]))) (self,pos,len,lenp)) #define super_GetBufEnd(self,endpos,len,lenp) \ ((* ((char * (*)()) (tiogatxt_supermethods->routines[37]))) (self,endpos,len,lenp)) #define super_GetGap(self,pos,len) \ ((* ((char * (*)()) (tiogatxt_supermethods->routines[38]))) (self,pos,len)) #define super_GetPosForLine(self,line) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[39]))) (self,line)) #define super_GetLineForPos(self,pos) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[40]))) (self,pos)) #define super_GetBeginningOfLine(self,pos) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[41]))) (self,pos)) #define super_GetEndOfLine(self,pos) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[42]))) (self,pos)) #define super_CopyText(self,pos,srctext,srcpos,len) \ ((* ((boolean (*)()) (tiogatxt_supermethods->routines[43]))) (self,pos,srctext,srcpos,len)) #define super_AlwaysCopyText(self,pos,srctext,srcpos,len) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[44]))) (self,pos,srctext,srcpos,len)) #define super_Index(self,pos,c,len) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[45]))) (self,pos,c,len)) #define super_Strncmp(self,pos,str,len) \ ((* ((int (*)()) (tiogatxt_supermethods->routines[46]))) (self,pos,str,len)) #define super_Textncmp(self,pos,text,pos2,len) \ ((* ((int (*)()) (tiogatxt_supermethods->routines[47]))) (self,pos,text,pos2,len)) #define super_ReadSubString(self,pos,file,quoteCharacters) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[48]))) (self,pos,file,quoteCharacters)) #define super_WriteSubString(self,pos,len,file,quoteCharacters) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[49]))) (self,pos,len,file,quoteCharacters)) #define super_CopySubString(self,pos,len,buf,quoteCharacters) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[50]))) (self,pos,len,buf,quoteCharacters)) #define super_HandleDataObject(self,pos,dop,file) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[51]))) (self,pos,dop,file)) #define super_HandleKeyWord(self,pos,keyword,file) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[52]))) (self,pos,keyword,file)) #define super_HandleCloseBrace(self,pos,file) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[53]))) (self,pos,file)) #define super_HandleBegindata(self,pos,file) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[54]))) (self,pos,file)) #define super_GetFence(self) \ text_GetFence((struct text *)self) #define super_SetFence(self,pos) \ text_SetFence((struct text *)self,pos) #define super_ClearFence(self) \ text_ClearFence((struct text *)self) #define super_GetFenceMark(self) \ text_GetFenceMark((struct text *)self) #define super_GetObjectInsertionFlag(self) \ text_GetObjectInsertionFlag((struct text *)self) #define super_SetObjectInsertionFlag(self,flag) \ text_SetObjectInsertionFlag((struct text *)self,flag) #define super_InsertObject(self,pos,name,viewname) \ ((* ((struct viewref * (*)()) (tiogatxt_supermethods->routines[55]))) (self,pos,name,viewname)) #define super_AddStyle(self,pos,len,style) \ ((* ((struct environment * (*)()) (tiogatxt_supermethods->routines[56]))) (self,pos,len,style)) #define super_AddView(self,pos,viewtype,dataobject) \ ((* ((struct environment * (*)()) (tiogatxt_supermethods->routines[57]))) (self,pos,viewtype,dataobject)) #define super_AlwaysAddStyle(self,pos,len,style) \ ((* ((struct environment * (*)()) (tiogatxt_supermethods->routines[58]))) (self,pos,len,style)) #define super_AlwaysAddView(self,pos,viewtype,dataobject) \ ((* ((struct environment * (*)()) (tiogatxt_supermethods->routines[59]))) (self,pos,viewtype,dataobject)) #define super_SetEnvironmentStyle(self,envptr,styleptr) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[60]))) (self,envptr,styleptr)) #define super_SetGlobalStyle(self,styleptr) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[61]))) (self,styleptr)) #define super_GetGlobalStyle(self) \ ((* ((struct style * (*)()) (tiogatxt_supermethods->routines[62]))) (self)) #define super_ReadTemplate(self,templateName,inserttemplatetext) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[63]))) (self,templateName,inserttemplatetext)) #define super_FindViewreference(self,pos,len) \ ((* ((struct viewref * (*)()) (tiogatxt_supermethods->routines[64]))) (self,pos,len)) #define super_AlwaysInsertFile(self,file,filename,position) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[65]))) (self,file,filename,position)) #define super_InsertFile(self,file,filename,position) \ ((* ((long (*)()) (tiogatxt_supermethods->routines[66]))) (self,file,filename,position)) #define super_ClearCompletely(self) \ ((* ((void (*)()) (tiogatxt_supermethods->routines[67]))) (self)) #define super_EnumerateEnvironments(self,pos,len,callBack,rock) \ ((* ((struct environment * (*)()) (tiogatxt_supermethods->routines[68]))) (self,pos,len,callBack,rock)) #define super_SetExportEnvironments(self,val) \ text_SetExportEnvironments((struct text *)self,val) #define super_GetExportEnvironments(self) \ text_GetExportEnvironments((struct text *)self) #define super_GetStyleSheet(self) \ text_GetStyleSheet((struct text *)self) #define super_SetWriteAsText(self,TorF) \ text_SetWriteAsText((struct text *)self,TorF) #define super_GetWriteAsText(self) \ text_GetWriteAsText((struct text *)self) #define super_SetCopyAsText(self,TorF) \ text_SetCopyAsText((struct text *)self,TorF) #define super_GetCopyAsText(self) \ text_GetCopyAsText((struct text *)self) #define super_GetWriteStyle(self) \ text_GetWriteStyle((struct text *)self) #define super_SetWriteStyle(self,style) \ text_SetWriteStyle((struct text *)self,style) extern struct basicobject_methods *tiogatxt_supermethods; #ifndef AUXMODULE struct basicobject_methods *tiogatxt_supermethods; struct tiogatxt_methods { struct classinfo *info; long (*routines[69])(); }; struct tiogatxt_classprocedures { struct classinfo *info; long (*routines[4])(); }; long tiogatxt__Read(); long tiogatxt__Write(); char * tiogatxt__ViewName(); void tiogatxt__SetAttributes(); static struct tiogatxt_methods tiogatxt_methodtable = { NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, (long (*)()) tiogatxt__Read, (long (*)()) tiogatxt__Write, NULL, NULL, (long (*)()) tiogatxt__ViewName, (long (*)()) tiogatxt__SetAttributes, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }; struct tiogatxt *tiogatxt__New(); void tiogatxt__Destroy(); boolean tiogatxt__Initialize(); void tiogatxt__Finalize(); boolean tiogatxt__InitializeObject(); static struct tiogatxt_classprocedures tiogatxt_classproceduretable = { NULL, (long (*)()) tiogatxt__New, (long (*)()) tiogatxt__Destroy, (long (*)()) tiogatxt__Initialize, (long (*)()) tiogatxt__Finalize }; static struct classinfo tiogatxt_classinfo = { (struct basicobject_methods *) &tiogatxt_methodtable, (struct basicobject_methods *) &tiogatxt_classproceduretable, "tiogatxt", "tiogatxt", tiogatxt_VERSION, "text", "text", NULL, NULL, &tiogatxt_classheader, NULL, 0 }; static int classinitialized = FALSE; boolean tiogatxt__Initialize(classID, self, versionnumber) struct classheader *classID; struct tiogatxt *self; unsigned long versionnumber; { /* text_Initialize(self); */ if(!(*((boolean (*)()) (text_classheader.classprocedures->routines[2])))(&text_classheader,self, text_VERSION)) return FALSE; if (! classinitialized) { classinitialized = TRUE; tiogatxt_supermethods =self->header.tiogatxt_methods; { long (**p)() = &(tiogatxt_methodtable.routines[0]); long (**q)() = &(self->header.tiogatxt_methods->routines[0]); long i; for (i = 0; i < 69; i++) { if (*p == NULL) *p = *q; p++; q++; } } tiogatxt_classinfo.superclass = tiogatxt_supermethods->info; tiogatxt_methodtable.info = &tiogatxt_classinfo; } self->header.tiogatxt_methods = (struct basicobject_methods *) &tiogatxt_methodtable; if(!tiogatxt__InitializeObject(classID, self)){ /* text_Finalize(self); */ (*((void (*)()) (text_classheader.classprocedures->routines[3])))(&text_classheader,self); return FALSE; } return TRUE; } struct tiogatxt *tiogatxt__New(classID, versionnumber) struct classheader *classID; unsigned long versionnumber; { struct tiogatxt *self; if (versionnumber != class_VERSIONNOTKNOWN && versionnumber != tiogatxt_VERSION) { (void) fprintf(stderr, "Incompatible version of tiogatxt requested from %s!\n", classID->name); } self = (struct tiogatxt *) malloc (sizeof(struct tiogatxt)); if (! self) { (void) fprintf(stderr, "Could not allocate tiogatxt object!\n"); return NULL; } if(!tiogatxt__Initialize(classID, self, versionnumber)){ free((char *)self); return NULL; } return self; } void tiogatxt__Finalize(classID, self) struct classheader *classID; struct tiogatxt *self; { /* text_Finalize(self); */ (*((void (*)()) (text_classheader.classprocedures->routines[3])))(&text_classheader,self); } void tiogatxt__Destroy(classID, self) struct classheader *classID; struct tiogatxt *self; { tiogatxt__Finalize(classID, self); free(self); } struct classinfo *tiogatxt__GetClassInfo(classID, versionnumber) struct classheader *classID; unsigned long versionnumber; { if (versionnumber != class_VERSIONNOTKNOWN && versionnumber != tiogatxt_VERSION) { (void) fprintf(stderr, "Incompatible version of tiogatxt requested from %s!\n", classID->name); } tiogatxt_classproceduretable.info = &tiogatxt_classinfo; return &tiogatxt_classinfo; } /* * THIS IS NEEDED BECAUSE OF THE WAY makedo WORKS. * HOPEFULLY, IT CAN BE REMOVED SOON. */ /* this patch is not needed as the class name is the same as the file name */ /* * END OF THIS PATCH. */ #endif /* AUXMODULE */