 
#ifndef link_DEFINED
#define link_DEFINED 1
 
#ifndef class_DEFINED
#include <class.h>
#endif /* class_DEFINED */
/* 
 * This file was generated by the Andrew class system preprocessor.
 * Don't make changes to this file as it is created from link.ch and will be
 * overwritten.  Make changes to link.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from link.ch.
 */ 
 
/* ********************************************************************** *\
 *         Copyright IBM Corporation 1988,1991 - All Rights Reserved      *
 *        For full copyright information see:'andrew/config/COPYRITE'     *
\* ********************************************************************** */

/*
	$Disclaimer: 
*Permission to use, copy, modify, and distribute this software and its 
*documentation for any purpose is hereby granted without fee, 
*provided that the above copyright notice appear in all copies and that 
*both that copyright notice, this permission notice, and the following 
*disclaimer appear in supporting documentation, and that the names of 
*IBM, Carnegie Mellon University, and other copyright holders, not be 
*used in advertising or publicity pertaining to distribution of the software 
*without specific, written prior permission.
*
*IBM, CARNEGIE MELLON UNIVERSITY, AND THE OTHER COPYRIGHT HOLDERS 
*DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING 
*ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.  IN NO EVENT 
*SHALL IBM, CARNEGIE MELLON UNIVERSITY, OR ANY OTHER COPYRIGHT HOLDER 
*BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY 
*DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, 
*WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS 
*ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE 
*OF THIS SOFTWARE.
* $
*/







/* 
 * End of information copied from link.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_pushbutton
#include "pshbttn.ih"
#undef dontDefineRoutinesFor_pushbutton

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for link 
 */ 
struct link { 
    union {
	struct basicobject_methods *link_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
	struct pushbutton pushbutton;
    } header;
      char *link;
      long pos;
      long len;
      int label_set;
#ifdef PL8
      int new_ds;
#endif

};

 
/* 
 * End of data structure for link.
 */ 
 

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef link_PROGRAMMERVERSION
#define link_PROGRAMMERVERSION 1
#endif /* link_PROGRAMMERVERSION */

#ifdef link_VERSION
#undef link_VERSION
#endif /* link_VERSION */
#define link_VERSION ((((link_PROGRAMMERVERSION << 16) ^ (35 << 8) ^ sizeof(struct link)) & 0x7ffff) + 0x80000 + (2 << 20))


#endif /* class_StaticInfoOnly */
#define link_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *link__GetClassInfo(); \
 extern struct classheader *link_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, link_classheader_StaticExport->name, link__GetClassInfo, NULL, link_classheader_StaticExport->namekey); } 
 
#define link_StaticLoad()  \
    { \
    pushbutton_StaticLoad(); \
    link_StaticLoadOnlyThisClass();  \
    } 
 
#define link_StaticEntry  {link_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader link_classheader = {
    link_VERSION,
    "link",
    "link",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define link_CLASSPROCEDURES (link_classheader.classprocedures)
int link_classref_;
#endif /* class_StaticInfoOnly */

#endif /* link_DEFINED */

#if !defined(link_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_link) && !defined(class_StaticEntriesOnly)
#define link_ROUTINESDEFINED

#define link_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define link_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define link_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define link_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.link_methods->routines[0]))) (self,observer))
#define link_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.link_methods->routines[1]))) (self,observer))
#define link_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.link_methods->routines[2]))) (self,observer))
#define link_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.link_methods->routines[3]))) (self,value))
#define link_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.link_methods->routines[4]))) (self,changed,value))
#define link_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.link_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define link_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.link_methods->routines[6]))) (self,trigger,rcvr))
#define link_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.link_methods->routines[7]))) (self,trigger))
#define link_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.link_methods->routines[8]))) (self,trigger))
#define link_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.link_methods->routines[9]))) (self,trigger))
#define link_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.link_methods->routines[10]))) (self,trigger))
#define link_Read(self,file,id) \
    ((* ((long (*)())((self)->header.link_methods->routines[11]))) (self,file,id))
#define link_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.link_methods->routines[12]))) (self,file,writeid,level))
#define link_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.link_methods->routines[13]))) (self,file,fmt,encoding,description))
#define link_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.link_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define link_GetModified(self) \
    ((* ((long (*)())((self)->header.link_methods->routines[15]))) (self))
#define link_SetModified(self) \
    ((* ((void (*)())((self)->header.link_methods->routines[16]))) (self))
#define link_ViewName(self) \
    ((* ((char * (*)())((self)->header.link_methods->routines[17]))) (self))
#define link_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.link_methods->routines[18]))) (self,attributes))
#define link_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.link_methods->routines[19]))) (self,property,type,rock))
#define link_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.link_methods->routines[20]))) (self,property,type,rock))
#define link_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.link_methods->routines[21]))) (self,array,size))
#define link_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.link_methods->routines[22]))) (self,oldmodified))
#define link_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define link_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define link_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define link_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define link_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define link_SetText(self,txt) \
    ((* ((void (*)())((self)->header.link_methods->routines[23]))) (self,txt))
#define link_SetStyle(self,stylecode) \
    ((* ((void (*)())((self)->header.link_methods->routines[24]))) (self,stylecode))
#define link_SetButtonFont(self,f) \
    ((* ((void (*)())((self)->header.link_methods->routines[25]))) (self,f))
#define link_SetFGColor(self,name,red,green,blue) \
    ((* ((void (*)())((self)->header.link_methods->routines[26]))) (self,name,red,green,blue))
#define link_SetBGColor(self,name,red,green,blue) \
    ((* ((void (*)())((self)->header.link_methods->routines[27]))) (self,name,red,green,blue))
#define link_GetFGColor(self,rgb_vect) \
    ((* ((char * (*)())((self)->header.link_methods->routines[28]))) (self,rgb_vect))
#define link_GetBGColor(self,rgb_vect) \
    ((* ((char * (*)())((self)->header.link_methods->routines[29]))) (self,rgb_vect))
#define link_ParseRGB(self,rgb_string,rgb_vect) \
    ((* ((void (*)())((self)->header.link_methods->routines[30]))) (self,rgb_string,rgb_vect))
#define link_GetText(self) \
 ((&(self)->header.pushbutton)->text)
#define link_GetStyle(self) \
 ((&(self)->header.pushbutton)->style)
#define link_GetButtonFont(self) \
 ((&(self)->header.pushbutton)->myfontdesc)
#define link_SetLink(self,link) \
    ((* ((void (*)())((self)->header.link_methods->routines[31]))) (self,link))
#define link_SetPos(self,pos) \
    ((* ((void (*)())((self)->header.link_methods->routines[32]))) (self,pos))
#define link_SetLen(self,len) \
    ((* ((void (*)())((self)->header.link_methods->routines[33]))) (self,len))
#define link_GetResolvedLink(self) \
    ((* ((char * (*)())((self)->header.link_methods->routines[34]))) (self))
#define link_GetRawLink(self) \
 ((self)->link)
#define link_GetLink(self) \
 (link_GetResolvedLink((self))) /* compatibility with old code */
#define link_GetPos(self) \
 ((self)->pos)
#define link_GetLen(self) \
 ((self)->len)
#define link_LabelSetP(self) \
 ((self)->label_set)

#define link_NewFromObject(self) \
    ((* ((struct link * (*)())((self)->header.link_methods->info->procs->routines[0]))) (&link_classheader, (self)->header.link_methods->info->versionnumber))
#define link_New() \
    (*((struct link * (*)()) (link_CLASSPROCEDURES->routines[0])))(&link_classheader,link_VERSION)
#define link_Initialize(self) \
    (*((void (*)()) (link_CLASSPROCEDURES->routines[2])))(&link_classheader,self, link_VERSION)

#define link_Destroy(self) \
    ((* ((void (*)()) ((self)->header.link_methods->info->procs->routines[1]))) (&link_classheader, self))
#define link_Finalize(self) \
    (*((void (*)()) (link_CLASSPROCEDURES->routines[3])))(&link_classheader,self)

#define link_InitializeObject(self) \
    (*((boolean (*)()) (link_CLASSPROCEDURES->routines[5])))(&link_classheader,self)
#define link_FinalizeObject(self) \
    (*((void (*)()) (link_CLASSPROCEDURES->routines[6])))(&link_classheader,self)
#define link_InitializeClass() \
    (*((boolean (*)()) (link_CLASSPROCEDURES->routines[7])))(&link_classheader)


#endif /* !defined(link_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_link ) && !defined(class_StaticEntriesOnly)*/

