-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathlyx.h
37 lines (31 loc) · 1.44 KB
/
lyx.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef LYX_PARSER_H
#define LYX_PARSER_H
#include "parser.h"
#include "writer.h"
/* allow the user to change the heading levels */
extern GString *heading_name[7];
/* Lyx likes to wrap strings in "environments" */
enum lyx_environment{
LYX_NONE,
LYX_STANDARD,
LYX_CODE,
LYX_PLAIN
};
void perform_lyx_output(GString *out, node* list, scratch_pad *scratch);
bool begin_lyx_output(GString *out, node* list, scratch_pad *scratch);
void print_lyx_node_tree(GString *out, node *list, scratch_pad *scratch, bool no_newline);
void end_lyx_output(GString *out, node* list, scratch_pad *scratch);
void print_lyx_node(GString *out, node *n, scratch_pad *scratch, bool no_newline);
void print_lyx_localized_typography(GString *out, unsigned char character, scratch_pad *scratch);
void print_lyx_string(GString *out,char *str, scratch_pad *scratch,short environment);
void print_lyx_url(GString *out, char *str, scratch_pad *scratch);
void print_lyx_endnotes(GString *out, scratch_pad *scratch);
void lyx_get_table_dimensions(node* list, int *rows, int *cols, scratch_pad *scratch);
void add_prefixes(node *list, node *root, scratch_pad *scratch);
void update_links(char *label,char *prefix, scratch_pad *scratch);
char *prefix_label(char *prefix, char *label, bool pound);
void update_link_source(char *source, char *prefix,node *n);
void print_escaped_node_tree(GString *out, node *n);
void print_escaped_node(GString *out, node *n);
char * escape_string(char *str);
#endif