Userdefs.h

Go to the documentation of this file.
00001 
00002 /*  $Id: Userdefs.h 355 2005-01-11 22:48:55Z andreradke $    */
00003 
00004 /* This header file contains user definitions which you CAN MODIFY without being
00005 affected by DataPak's possible upgrades.
00006 
00007 These definitions are how you append to a Paige data structure without upsetting
00008 the rest of Paige.
00009 
00010 Changes, however, must be made at the source code level.
00011 
00012 For example, suppose you want to hang some extra fields to the style_info struct.
00013 The default record -- style_append_t -- looks like this:
00014 
00015 struct style_append_t {
00016     long        refcon;
00017 };
00018 typedef struct style_append_t style_append_t;
00019 
00020 All you would do is add your own fields, and re-compile. Note that DataPak will
00021 not update this header file, so you can simply re-compile for updates.  */
00022 
00023 #ifndef USERDEFS_H
00024 #define USERDEFS_H
00025 
00026 
00027 struct port_append_t {
00028     long        refcon;
00029 };                  /* Graphics port append */
00030 
00031 typedef struct port_append_t port_append_t;
00032 
00033 
00034 struct tb_append_t {
00035     long        refcon;
00036 };                  /* Text block record append */
00037 
00038 typedef struct tb_append_t tb_append_t;
00039 
00040 
00041 struct style_append_t {
00042     long        refcon;
00043 };                  /* Style record append */
00044 
00045 typedef struct style_append_t style_append_t;
00046 
00047 
00048 struct font_append_t {
00049     long        refcon;
00050 };                  /* Font record append */
00051 
00052 typedef struct font_append_t font_append_t;
00053 
00054 #ifdef PG_BASEVIEW
00055 
00056 #define kStyleSheetNameMaxSize  64
00057 
00058 struct par_append_t {
00059     long            refcon;
00060     unsigned char   styleSheetName[kStyleSheetNameMaxSize];
00061     short           styleSheetResID;
00062     short           unused;
00063 };                  /* Paragraph format record append */
00064 
00065 typedef struct par_append_t par_append_t;
00066 
00067 #else
00068 
00069 struct par_append_t {
00070     long        refcon;
00071 };                  /* Paragraph format record append */
00072 
00073 typedef struct par_append_t par_append_t;
00074 
00075 #endif
00076 
00077 #endif
00078 

Generated on Wed May 31 18:20:03 2006 for frontierkernel 10.1.10a by  doxygen 1.4.6