| 1 |
/* |
| 2 |
generate_routines.h - Part of psiconv, a PSION 5 file formats converter |
| 3 |
Copyright (c) 2000 Frodo Looijaard <frodol@dds.nl> |
| 4 |
|
| 5 |
This program is free software; you can redistribute it and/or modify |
| 6 |
it under the terms of the GNU General Public License as published by |
| 7 |
the Free Software Foundation; either version 2 of the License, or |
| 8 |
(at your option) any later version. |
| 9 |
|
| 10 |
This program is distributed in the hope that it will be useful, |
| 11 |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 |
GNU General Public License for more details. |
| 14 |
|
| 15 |
You should have received a copy of the GNU General Public License |
| 16 |
along with this program; if not, write to the Free Software |
| 17 |
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. |
| 18 |
*/ |
| 19 |
|
| 20 |
#ifndef PSICONV_GENERATE_ROUTINES_H |
| 21 |
#define PSICONV_GENERATE_ROUTINES_H |
| 22 |
|
| 23 |
#include <psiconv/general.h> |
| 24 |
#include <psiconv/common.h> |
| 25 |
#include <psiconv/data.h> |
| 26 |
#include <psiconv/generate.h> |
| 27 |
|
| 28 |
#ifdef __cplusplus |
| 29 |
extern "C" { |
| 30 |
#endif /* __cplusplus */ |
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
/* ********************* |
| 35 |
* generate_simple.c * |
| 36 |
********************* */ |
| 37 |
|
| 38 |
extern int psiconv_write_u8(psiconv_buffer buf,const psiconv_u8 value); |
| 39 |
extern int psiconv_write_u16(psiconv_buffer buf,const psiconv_u16 value); |
| 40 |
extern int psiconv_write_u32(psiconv_buffer buf,const psiconv_u32 value); |
| 41 |
extern int psiconv_write_S(psiconv_buffer buf, const psiconv_u32 value); |
| 42 |
extern int psiconv_write_X(psiconv_buffer buf, const psiconv_u32 value); |
| 43 |
extern int psiconv_write_length(psiconv_buffer buf, |
| 44 |
const psiconv_length_t value); |
| 45 |
extern int psiconv_write_size(psiconv_buffer buf, const psiconv_size_t value); |
| 46 |
extern int psiconv_write_bool(psiconv_buffer buf, const psiconv_bool_t value); |
| 47 |
extern int psiconv_write_string(psiconv_buffer buf, |
| 48 |
const psiconv_string_t value); |
| 49 |
|
| 50 |
/* ********************* |
| 51 |
* generate_layout.c * |
| 52 |
********************* */ |
| 53 |
|
| 54 |
extern int psiconv_write_color(psiconv_buffer buf, const psiconv_color value); |
| 55 |
extern int psiconv_write_font(psiconv_buffer buf, const psiconv_font value); |
| 56 |
extern int psiconv_write_border(psiconv_buffer buf, const psiconv_border value); |
| 57 |
extern int psiconv_write_bullet(psiconv_buffer buf, const psiconv_bullet value); |
| 58 |
extern int psiconv_write_tab(psiconv_buffer buf,psiconv_tab value); |
| 59 |
extern int psiconv_write_paragraph_layout_list(psiconv_buffer buf, |
| 60 |
psiconv_paragraph_layout value, |
| 61 |
psiconv_paragraph_layout base); |
| 62 |
extern int psiconv_write_character_layout_list(psiconv_buffer buf, |
| 63 |
psiconv_character_layout value, |
| 64 |
psiconv_character_layout base); |
| 65 |
|
| 66 |
/* ******************* |
| 67 |
* generate_page.c * |
| 68 |
******************* */ |
| 69 |
|
| 70 |
extern int psiconv_write_page_header(psiconv_buffer buf, |
| 71 |
const psiconv_page_header value); |
| 72 |
extern int psiconv_write_page_layout_section(psiconv_buffer buf, |
| 73 |
const psiconv_page_layout_section value); |
| 74 |
|
| 75 |
/* ********************* |
| 76 |
* generate_common.c * |
| 77 |
********************* */ |
| 78 |
|
| 79 |
extern int psiconv_write_header_section(psiconv_buffer buf,psiconv_u32 uid1, |
| 80 |
psiconv_u32 uid2, psiconv_u32 uid3); |
| 81 |
extern int psiconv_write_section_table_section(psiconv_buffer buf, |
| 82 |
const psiconv_section_table_section value); |
| 83 |
extern int psiconv_write_application_id_section(psiconv_buffer buf, |
| 84 |
psiconv_u32 id, const psiconv_string_t text); |
| 85 |
extern int psiconv_write_text_section(psiconv_buffer buf, |
| 86 |
const psiconv_text_and_layout value); |
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
/* ********************* |
| 92 |
* generate_texted.c * |
| 93 |
********************* */ |
| 94 |
|
| 95 |
extern int psiconv_write_texted_section(psiconv_buffer buf, |
| 96 |
psiconv_texted_section value, |
| 97 |
psiconv_character_layout base_char, |
| 98 |
psiconv_paragraph_layout base_para); |
| 99 |
|
| 100 |
/* ******************* |
| 101 |
* generate_word.c * |
| 102 |
******************* */ |
| 103 |
|
| 104 |
extern int psiconv_generate_word_status_section(psiconv_buffer buf, |
| 105 |
psiconv_word_status_section value); |
| 106 |
extern int psiconv_write_word_styles_section(psiconv_buffer buf, |
| 107 |
psiconv_word_styles_section value); |
| 108 |
|
| 109 |
|
| 110 |
/* ********************* |
| 111 |
* generate_driver.c * |
| 112 |
********************* */ |
| 113 |
|
| 114 |
extern int psiconv_write_texted_file(psiconv_buffer buf, |
| 115 |
psiconv_texted_f value); |
| 116 |
|
| 117 |
|
| 118 |
|
| 119 |
#ifdef __cplusplus |
| 120 |
} |
| 121 |
#endif /* __cplusplus */ |
| 122 |
|
| 123 |
#endif /* PSICONV_GENERATE_ROUTINES_H */ |