00001 00007 /* License: new BSD license (see NME.h) */ 00008 00009 #ifndef __NMEPluginTOC__ 00010 #define __NMEPluginTOC__ 00011 00012 #ifdef __cplusplus 00013 extern "C" { 00014 #endif 00015 00016 #include "NME.h" 00017 00021 typedef struct 00022 { 00023 NMEOutputFormat *outputFormat; 00024 NMEInt level1; 00025 NMEInt level2; 00026 NMEBoolean links; 00027 } HookTOCData; 00028 00033 void NMESetTOCOutputFormat(NMEOutputFormat *f, HookTOCData *d); 00034 00037 typedef struct 00038 { 00039 NMEConstText src; 00040 NMEInt srcLen; 00041 } NMEPluginTocData; 00042 00065 NMEErr NMEPluginTOC(NMEConstText name, NMEInt nameLen, 00066 NMEConstText data, NMEInt dataLen, 00067 NMEContext *context, 00068 void *userData); 00069 00071 #define NMEPluginTOCEntry(data) \ 00072 {"toc", kNMEPluginOptBetweenPar, NMEPluginTOC, (void *)data} 00073 00074 #ifdef __cplusplus 00075 } 00076 #endif 00077 00078 #endif