Freeciv-3.2
Loading...
Searching...
No Matches
fc_manual.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__FC_MANUAL_H
14#define FC__FC_MANUAL_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20#include <stdio.h> /* FILE */
21
22/* utility */
23#include "support.h"
24
25#define SPECENUM_NAME manuals
26#define SPECENUM_VALUE0 MANUAL_SETTINGS
27#define SPECENUM_VALUE0NAME N_("Settings")
28#define SPECENUM_VALUE1 MANUAL_COMMANDS
29#define SPECENUM_VALUE1NAME N_("Commands")
30#define SPECENUM_VALUE2 MANUAL_TERRAIN
31#define SPECENUM_VALUE2NAME N_("Terrain")
32#define SPECENUM_VALUE3 MANUAL_EXTRAS
33#define SPECENUM_VALUE3NAME N_("Extras")
34#define SPECENUM_VALUE4 MANUAL_BUILDINGS
35#define SPECENUM_VALUE4NAME N_("Buildings")
36#define SPECENUM_VALUE5 MANUAL_WONDERS
37#define SPECENUM_VALUE5NAME N_("Wonders")
38#define SPECENUM_VALUE6 MANUAL_GOVS
39#define SPECENUM_VALUE6NAME N_("Governments")
40#define SPECENUM_VALUE7 MANUAL_UNITS
41#define SPECENUM_VALUE7NAME N_("Units")
42#define SPECENUM_VALUE8 MANUAL_TECHS
43#define SPECENUM_VALUE8NAME N_("Techs")
44#define SPECENUM_COUNT MANUAL_COUNT
45#include "specenum_gen.h"
46
47struct tag_types {
48 const char *file_ext;
49 const char *header;
50 const char *title_begin;
51 const char *title_end;
52 const char *sect_title_begin;
53 const char *sect_title_end;
54 const char *image_begin;
55 const char *image_end;
56 const char *item_begin;
57 const char *item_end;
58 const char *subitem_begin;
59 const char *subitem_end;
60 const char *tail;
61 const char *hline;
62};
63
64/* Utility functions */
67 enum manuals manual);
68char *html_special_chars(char *str, size_t *len);
69
70/* Individual manual pages */
74bool manual_extras(struct tag_types *tag_info);
77bool manual_units(struct tag_types *tag_info);
78bool manual_techs(struct tag_types *tag_info);
79
80#ifdef __cplusplus
81}
82#endif /* __cplusplus */
83
84#endif /* FC__FC_MANUAL_H */
#define str
Definition astring.c:76
char * incite_cost
Definition comments.c:74
bool manual_terrain(struct tag_types *tag_info)
bool manual_units(struct tag_types *tag_info)
void manual_finalize(struct tag_types *tag_info, FILE *doc, enum manuals manual)
Definition fc_manual.c:316
bool manual_buildings(struct tag_types *tag_info)
bool manual_extras(struct tag_types *tag_info)
bool manual_settings(struct tag_types *tag_info)
bool manual_governments(struct tag_types *tag_info)
char * html_special_chars(char *str, size_t *len)
Definition fc_manual.c:164
FILE * manual_start(struct tag_types *tag_info, int manual_number)
Definition fc_manual.c:287
bool manual_commands(struct tag_types *tag_info)
bool manual_techs(struct tag_types *tag_info)
int len
Definition packhand.c:127
const char * tail
Definition fc_manual.h:60
const char * subitem_begin
Definition fc_manual.h:58
const char * header
Definition fc_manual.h:49
const char * item_begin
Definition fc_manual.h:56
const char * file_ext
Definition fc_manual.h:48
const char * sect_title_end
Definition fc_manual.h:53
const char * title_begin
Definition fc_manual.h:50
const char * image_end
Definition fc_manual.h:55
const char * hline
Definition fc_manual.h:61
const char * item_end
Definition fc_manual.h:57
const char * sect_title_begin
Definition fc_manual.h:52
const char * title_end
Definition fc_manual.h:51
const char * subitem_end
Definition fc_manual.h:59
const char * image_begin
Definition fc_manual.h:54