From 510ed32cfbffa6148018869f5ade416505a450b3 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Mon, 15 Apr 2024 22:21:21 +0200 Subject: Adding upstream version 2.9.0rel.0. Signed-off-by: Daniel Baumann --- src/TRSTable.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 src/TRSTable.h (limited to 'src/TRSTable.h') diff --git a/src/TRSTable.h b/src/TRSTable.h new file mode 100644 index 0000000..ffebf4a --- /dev/null +++ b/src/TRSTable.h @@ -0,0 +1,50 @@ +/* $LynxId: TRSTable.h,v 1.16 2010/09/25 11:40:05 tom Exp $ */ +#ifndef TRSTABLE_H +#define TRSTABLE_H + +#include + +#ifdef __cplusplus +extern "C" { +#endif +/* TRST_MAXCOLSPAN and TRST_MAXCOLSPAN are defined in userdefs.h */ typedef struct _STable_info STable_info; + extern STable_info *Stbl_startTABLE(int); + extern int Stbl_finishTABLE(STable_info *); + extern void Stbl_free(STable_info *); + extern int Stbl_addRowToTable(STable_info *, int, int); + extern int Stbl_addCellToTable(STable_info *, int, int, int, int, int, + int, int); + extern int Stbl_finishCellInTable(STable_info *, int, int, int, int); + extern int Stbl_addColInfo(STable_info *, int, int, int); + extern int Stbl_finishColGroup(STable_info *); + extern int Stbl_addRowGroup(STable_info *, int); + +#define TRST_ENDCELL_ENDTD 1 +#define TRST_ENDCELL_LINEBREAK 0 +#define TRST_ENDCELL_MASK 1 +#define TRST_FAKING_CELLS 2 +#define Stbl_lineBreak(stbl,l,off,pos) Stbl_finishCellInTable(stbl, TRST_ENDCELL_LINEBREAK, l, off, pos) + + extern int Stbl_getStartLine(STable_info *); + extern int Stbl_getFixupPositions(STable_info *me, int lineno, + int *oldpos, + int *newpos); + extern short Stbl_getAlignment(STable_info *); + +#ifdef EXP_NESTED_TABLES + extern void Stbl_update_enclosing(STable_info *me, int max_width, + int last_lineno); + struct _TextAnchor; + extern void Stbl_set_enclosing(STable_info *me, STable_info *encl, struct _TextAnchor *last_anchor); + extern STable_info *Stbl_get_enclosing(STable_info *me); + extern struct _TextAnchor *Stbl_get_last_anchor_before(STable_info *me); + extern int Stbl_getStartLineDeep(STable_info *); + +#else +#define Stbl_getStartLineDeep(t) Stbl_getStartLine(t) +#endif + +#ifdef __cplusplus +} +#endif +#endif /* TRSTABLE_H */ -- cgit v1.2.3