nyctergatis.com

Contact

Projects
Sysquake Remote Live
NME
PDF
Hike
Sudoku
GifBuilder
jpeglib for Palm OS
MySQL Client
Cross-GCC for Mac OS
NMEPluginTOC.h File Reference

NME optional plugin for table of contents in HTML. More...

#include "NME.h"

Go to the source code of this file.

Data Structures

struct  HookTOCData
 User data for hook (opaque, typically allocated as an automatic (local) variable and passed by address to NMESetTOCOutputFormat) More...
struct  NMEPluginTocData
 User data of NMEPluginTOCEntry. More...

Defines

#define NMEPluginTOCEntry(data)   {"toc", kNMEPluginOptBetweenPar, NMEPluginTOC, (void *)data}
 NMEPlugin entry for table of plugins.

Functions

void NMESetTOCOutputFormat (NMEOutputFormat *f, HookTOCData *d)
 Set output format structure for TOC generation.
NMEErr NMEPluginTOC (NMEConstText name, NMEInt nameLen, NMEConstText data, NMEInt dataLen, NMEContext *context, void *userData)
 Plugin implementation for table of contents.

Detailed Description

NME optional plugin for table of contents in HTML.

Author:
Yves Piguet.

Definition in file NMEPluginTOC.h.


Function Documentation

NMEErr NMEPluginTOC ( NMEConstText  name,
NMEInt  nameLen,
NMEConstText  data,
NMEInt  dataLen,
NMEContext context,
void *  userData 
)

Plugin implementation for table of contents.

Parameters:
[in]nameplugin name, such as "toc"
[in]nameLenlength of name
[in]datadata text
[in]dataLenlength of data
[in,out]contextcurrent context
[in]userDatapointer passed from the parser, as specified in NMEPlugin
Returns:
error code (kNMEErrOk for success)
Test:
    << toc level
    >>

or

    << toc level1 level2
    >>

or

    << toc level1 level2 title
    >>

Definition at line 89 of file NMEPluginTOC.c.

void NMESetTOCOutputFormat ( NMEOutputFormat f,
HookTOCData d 
)

Set output format structure for TOC generation.

Parameters:
[in]faddress of output format structure, whose contents are filled
[out]dparagraph hook user data

Definition at line 80 of file NMEPluginTOC.c.

Generated by Doxygen.
Copyright 2007-2013, Yves Piguet.
All rights reserved.