 
#ifndef fontsel_DEFINED
#define fontsel_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 fontsel.ch and will be
 * overwritten.  Make changes to fontsel.ch instead.
 */ 
 
#ifndef class_StaticInfoOnly
/* 
 * The following information was copied, as-is, from fontsel.ch.
 */ 
 
/* fontsel.ch - font selection inset dataobject */
/*
	Copyright Carnegie Mellon University 1992 - All rights reserved
	$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.
* $
  $Header: /afs/cs.cmu.edu/project/atk-dist/6.2/atk/figure/RCS/fontsel.ch,v 1.2 1992/12/14 20:45:16 rr2b R6tape $
*/

#define	fontsel_DATACHANGED	(1)

#define	fontsel_Style	(0)
#define	fontsel_Size	(1)
#define	fontsel_Family	(2)

#define	fontsel_default_Style	(0)
#define	fontsel_default_Size	(12)
#define	fontsel_default_Family	("andy")






/* 
 * End of information copied from fontsel.ch.
 */ 
 
#endif /* class_StaticInfoOnly *//* 
 * Include the superclass information
 */ 
#define dontDefineRoutinesFor_dataobject
#include "dataobj.ih"
#undef dontDefineRoutinesFor_dataobject

 
 
#ifndef class_StaticInfoOnly
/* 
 * Data structure for fontsel 
 */ 
struct fontsel { 
    union {
	struct basicobject_methods *fontsel_methods;
	struct traced traced;
	struct observable observable;
	struct dataobject dataobject;
    } header;
      long style;
      short size;
      char *family;

      long active;

};

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

#endif /* class_StaticInfoOnly */

#ifndef class_StaticInfoOnly

#ifndef fontsel_PROGRAMMERVERSION
#define fontsel_PROGRAMMERVERSION 1
#endif /* fontsel_PROGRAMMERVERSION */

#ifdef fontsel_VERSION
#undef fontsel_VERSION
#endif /* fontsel_VERSION */
#define fontsel_VERSION ((((fontsel_PROGRAMMERVERSION << 16) ^ (26 << 8) ^ sizeof(struct fontsel)) & 0x7ffff) + 0x80000 + (2 << 20))


#endif /* class_StaticInfoOnly */
#define fontsel_StaticLoadOnlyThisClass()  \
{ extern struct classinfo *fontsel__GetClassInfo(); \
 extern struct classheader *fontsel_classheader_StaticExport; \
  (void) class_EnterInfo(NULL, fontsel_classheader_StaticExport->name, fontsel__GetClassInfo, NULL, fontsel_classheader_StaticExport->namekey); } 
 
#define fontsel_StaticLoad()  \
    { \
    dataobject_StaticLoad(); \
    fontsel_StaticLoadOnlyThisClass();  \
    } 
 
#define fontsel_StaticEntry  {fontsel_StaticLoad()} 
 
#ifndef class_StaticInfoOnly
static struct classheader fontsel_classheader = {
    fontsel_VERSION,
    "fontsel",
    "fontsel",
    (struct basicobject_methods *) &class_RoutineStruct,
};

#define fontsel_CLASSPROCEDURES (fontsel_classheader.classprocedures)
int fontsel_classref_;
#endif /* class_StaticInfoOnly */

#endif /* fontsel_DEFINED */

#if !defined(fontsel_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_fontsel) && !defined(class_StaticEntriesOnly)
#define fontsel_ROUTINESDEFINED

#define fontsel_Reference(self) \
 (((&(self)->header.traced))->refcount++)
#define fontsel_UnReference(self) \
 ((((&(self)->header.traced))->refcount>0)?((&(self)->header.traced))->refcount--:0)
#define fontsel_ReferenceCount(self) \
 (((&(self)->header.traced))->refcount)
#define fontsel_AddObserver(self,observer) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[0]))) (self,observer))
#define fontsel_IsObserver(self,observer) \
    ((* ((boolean (*)())((self)->header.fontsel_methods->routines[1]))) (self,observer))
#define fontsel_RemoveObserver(self,observer) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[2]))) (self,observer))
#define fontsel_NotifyObservers(self,value) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[3]))) (self,value))
#define fontsel_ObservedChanged(self,changed,value) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[4]))) (self,changed,value))
#define fontsel_AddRecipient(self,trigger,rcvr,func,rock) \
    ((* ((boolean (*)())((self)->header.fontsel_methods->routines[5]))) (self,trigger,rcvr,func,rock))
#define fontsel_DeleteRecipient(self,trigger,rcvr) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[6]))) (self,trigger,rcvr))
#define fontsel_PullTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[7]))) (self,trigger))
#define fontsel_DisableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[8]))) (self,trigger))
#define fontsel_EnableTrigger(self,trigger) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[9]))) (self,trigger))
#define fontsel_DisableCount(self,trigger) \
    ((* ((long (*)())((self)->header.fontsel_methods->routines[10]))) (self,trigger))
#define fontsel_Read(self,file,id) \
    ((* ((long (*)())((self)->header.fontsel_methods->routines[11]))) (self,file,id))
#define fontsel_Write(self,file,writeid,level) \
    ((* ((long (*)())((self)->header.fontsel_methods->routines[12]))) (self,file,writeid,level))
#define fontsel_ReadOtherFormat(self,file,fmt,encoding,description) \
    ((* ((boolean (*)())((self)->header.fontsel_methods->routines[13]))) (self,file,fmt,encoding,description))
#define fontsel_WriteOtherFormat(self,file,writeid,level,usagetype,boundary) \
    ((* ((long (*)())((self)->header.fontsel_methods->routines[14]))) (self,file,writeid,level,usagetype,boundary))
#define fontsel_GetModified(self) \
    ((* ((long (*)())((self)->header.fontsel_methods->routines[15]))) (self))
#define fontsel_SetModified(self) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[16]))) (self))
#define fontsel_ViewName(self) \
    ((* ((char * (*)())((self)->header.fontsel_methods->routines[17]))) (self))
#define fontsel_SetAttributes(self,attributes) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[18]))) (self,attributes))
#define fontsel_Put(self,property,type,rock) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[19]))) (self,property,type,rock))
#define fontsel_Get(self,property,type,rock) \
    ((* ((short (*)())((self)->header.fontsel_methods->routines[20]))) (self,property,type,rock))
#define fontsel_ListCurrentViews(self,array,size) \
    ((* ((int (*)())((self)->header.fontsel_methods->routines[21]))) (self,array,size))
#define fontsel_RestoreModified(self,oldmodified) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[22]))) (self,oldmodified))
#define fontsel_UniqueID(self) \
 ((long)((&(self)->header.dataobject)))
#define fontsel_GetWriteID(self) \
 ( ((&(self)->header.dataobject))->writeID )
#define fontsel_SetWriteID(self,newValue) \
 ( (((&(self)->header.dataobject))->writeID) = (newValue) )
#define fontsel_GetID(self) \
      ( ((&(self)->header.dataobject))->id )
#define fontsel_SetID(self,newValue) \
      ( (((&(self)->header.dataobject))->id) = (newValue) )
#define fontsel_SetStyle(self,mask) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[23]))) (self,mask))
#define fontsel_SetSize(self,val) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[24]))) (self,val))
#define fontsel_SetFamily(self,val) \
    ((* ((void (*)())((self)->header.fontsel_methods->routines[25]))) (self,val))
#define fontsel_GetStyle(self) \
  (((self))->style)
#define fontsel_GetSize(self) \
  (((self))->size)
#define fontsel_GetFamily(self) \
  (((self))->family)
#define fontsel_IsActive(self,val) \
  (((self))->active & ((unsigned long)1<<(val)))
#define fontsel_UnsetStyle(self) \
  (fontsel_SetStyle(((self)), fontsel_default_Style), ((self))->active &= ~((unsigned long)1<<fontsel_Style))
#define fontsel_UnsetSize(self) \
  (fontsel_SetSize(((self)), fontsel_default_Size), ((self))->active &= ~((unsigned long)1<<fontsel_Size))
#define fontsel_UnsetFamily(self) \
  (fontsel_SetFamily(((self)), fontsel_default_Family), ((self))->active &= ~((unsigned long)1<<fontsel_Family))

#define fontsel_NewFromObject(self) \
    ((* ((struct fontsel * (*)())((self)->header.fontsel_methods->info->procs->routines[0]))) (&fontsel_classheader, (self)->header.fontsel_methods->info->versionnumber))
#define fontsel_New() \
    (*((struct fontsel * (*)()) (fontsel_CLASSPROCEDURES->routines[0])))(&fontsel_classheader,fontsel_VERSION)
#define fontsel_Initialize(self) \
    (*((void (*)()) (fontsel_CLASSPROCEDURES->routines[2])))(&fontsel_classheader,self, fontsel_VERSION)

#define fontsel_Destroy(self) \
    ((* ((void (*)()) ((self)->header.fontsel_methods->info->procs->routines[1]))) (&fontsel_classheader, self))
#define fontsel_Finalize(self) \
    (*((void (*)()) (fontsel_CLASSPROCEDURES->routines[3])))(&fontsel_classheader,self)

#define fontsel_InitializeObject(self) \
    (*((boolean (*)()) (fontsel_CLASSPROCEDURES->routines[5])))(&fontsel_classheader,self)
#define fontsel_FinalizeObject(self) \
    (*((void (*)()) (fontsel_CLASSPROCEDURES->routines[6])))(&fontsel_classheader,self)
#define fontsel_InitializeClass() \
    (*((boolean (*)()) (fontsel_CLASSPROCEDURES->routines[7])))(&fontsel_classheader)


#endif /* !defined(fontsel_ROUTINESDEFINED) && !defined(dontDefineRoutinesFor_fontsel ) && !defined(class_StaticEntriesOnly)*/

