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_UCLASS
43#define SPECENUM_VALUE8NAME N_("Unit Classes")
44#define SPECENUM_VALUE9 MANUAL_TECHS
45#define SPECENUM_VALUE9NAME N_("Techs")
46#define SPECENUM_COUNT MANUAL_COUNT
47#include "specenum_gen.h"
48
49struct tag_types {
50 const char *file_ext;
51 const char *header;
52 const char *title_begin;
53 const char *title_end;
54 const char *sect_title_begin;
55 const char *sect_title_end;
56 const char *image_begin;
57 const char *image_end;
58 const char *item_begin;
59 const char *item_end;
60 const char *subitem_begin;
61 const char *subitem_end;
62 const char *tail;
63 const char *hline;
64};
65
66/* Utility functions */
69 enum manuals manual);
70char *html_special_chars(char *str, size_t *len);
71
72/* Individual manual pages */
76bool manual_extras(struct tag_types *tag_info);
79bool manual_units(struct tag_types *tag_info);
81bool manual_techs(struct tag_types *tag_info);
82
83#ifdef __cplusplus
84}
85#endif /* __cplusplus */
86
87#endif /* FC__FC_MANUAL_H */
#define str
Definition astring.c:76
char * incite_cost
Definition comments.c:75
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:320
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:168
FILE * manual_start(struct tag_types *tag_info, int manual_number)
Definition fc_manual.c:291
bool manual_commands(struct tag_types *tag_info)
bool manual_techs(struct tag_types *tag_info)
bool manual_uclasses(struct tag_types *tag_info)
int len
Definition packhand.c:127
const char * tail
Definition fc_manual.h:62
const char * subitem_begin
Definition fc_manual.h:60
const char * header
Definition fc_manual.h:51
const char * item_begin
Definition fc_manual.h:58
const char * file_ext
Definition fc_manual.h:50
const char * sect_title_end
Definition fc_manual.h:55
const char * title_begin
Definition fc_manual.h:52
const char * image_end
Definition fc_manual.h:57
const char * hline
Definition fc_manual.h:63
const char * item_end
Definition fc_manual.h:59
const char * sect_title_begin
Definition fc_manual.h:54
const char * title_end
Definition fc_manual.h:53
const char * subitem_end
Definition fc_manual.h:61
const char * image_begin
Definition fc_manual.h:56