CWB
Macros | Functions | Variables
html-print.h File Reference
#include <stdio.h>
#include "../cl/bitfields.h"
#include "corpmanag.h"
#include "context_descriptor.h"
#include "print-modes.h"
#include "groups.h"

Macros

#define SUBST_NONE   0
 
#define SUBST_LT   1
 
#define SUBST_GT   2
 
#define SUBST_AMP   4
 
#define SUBST_QUOT   8
 
#define SUBST_ALL   (SUBST_LT | SUBST_GT | SUBST_AMP | SUBST_QUOT)
 

Functions

char * html_convert_string (char *s)
 
void html_puts (FILE *fd, char *s, int flags)
 
void html_print_aligned_line (FILE *stream, char *attribute_name, char *line)
 Prints a line of text (which will have been previously extracted from a corpus linked to the present corpus by an a-attribute) within HTML markup. More...
 
void html_print_corpus_header (CorpusList *cl, FILE *outfd)
 
void html_print_output (CorpusList *cl, FILE *outfd, int interactive, ContextDescriptor *cd, int first, int last)
 
void html_print_group (Group *group, int expand, FILE *fd)
 

Variables

PrintDescriptionRecord HTMLPrintDescriptionRecord
 

Macro Definition Documentation

#define SUBST_ALL   (SUBST_LT | SUBST_GT | SUBST_AMP | SUBST_QUOT)
#define SUBST_AMP   4

Referenced by html_puts().

#define SUBST_GT   2

Referenced by html_puts().

#define SUBST_LT   1

Referenced by html_puts().

#define SUBST_NONE   0

Referenced by html_print_aligned_line().

#define SUBST_QUOT   8

Referenced by html_puts().

Function Documentation

char* html_convert_string ( char *  s)

References CL_MAX_LINE_LENGTH.

void html_print_aligned_line ( FILE *  stream,
char *  attribute_name,
char *  line 
)

Prints a line of text (which will have been previously extracted from a corpus linked to the present corpus by an a-attribute) within HTML markup.

Parameters
streamDestination for the output.
attribute_nameThe name of the aligned corpus: printed in the leading indicator within the HTML.
lineCharacter data of the line of aligned-corpus data to print. This is treated as opaque.

References GlobalPrintOptions, html_puts(), _print_option_rec_::print_tabular, _print_option_rec_::print_wrap, SUBST_ALL, and SUBST_NONE.

Referenced by printAlignedStrings().

void html_print_corpus_header ( CorpusList cl,
FILE *  outfd 
)
void html_print_group ( Group group,
int  expand,
FILE *  fd 
)
void html_print_output ( CorpusList cl,
FILE *  outfd,
int  interactive,
ContextDescriptor cd,
int  first,
int  last 
)
void html_puts ( FILE *  fd,
char *  s,
int  flags 
)

Variable Documentation

PrintDescriptionRecord HTMLPrintDescriptionRecord