/[public]/psiconv/tags/rel-0-9-9/lib/psiconv/generate_layout.c
ViewVC logotype

Diff of /psiconv/tags/rel-0-9-9/lib/psiconv/generate_layout.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 233 Revision 351
1/* 1/*
2 generate_layout.c - Part of psiconv, a PSION 5 file formats converter 2 generate_layout.c - Part of psiconv, a PSION 5 file formats converter
3 Copyright (c) 2000-2004 Frodo Looijaard <frodol@dds.nl> 3 Copyright (c) 2000-2014 Frodo Looijaard <frodo@frodo.looijaard.name>
4 4
5 This program is free software; you can redistribute it and/or modify 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 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 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
268 if ((res = psiconv_write_u8(config,extra_buf,lev+1,0x06))) 268 if ((res = psiconv_write_u8(config,extra_buf,lev+1,0x06)))
269 goto ERROR2; 269 goto ERROR2;
270 if ((value->justify_ver < psiconv_justify_top) || 270 if ((value->justify_ver < psiconv_justify_top) ||
271 (value->justify_ver > psiconv_justify_bottom)) 271 (value->justify_ver > psiconv_justify_bottom))
272 psiconv_warn(config,0,psiconv_buffer_length(buf), 272 psiconv_warn(config,0,psiconv_buffer_length(buf),
273 "Unknown vertical justify (%d); assuming middle", 273 "Unknown vertical justify (%d); assuming top",
274 value->justify_ver); 274 value->justify_ver);
275 if ((res = psiconv_write_u8(config,extra_buf,lev+1, 275 if ((res = psiconv_write_u8(config,extra_buf,lev+1,
276 value->justify_ver == psiconv_justify_centre?1: 276 value->justify_ver == psiconv_justify_middle?1:
277 value->justify_ver == psiconv_justify_right?2:0))) 277 value->justify_ver == psiconv_justify_bottom?2:0)))
278 goto ERROR2; 278 goto ERROR2;
279 } 279 }
280 280
281 if (!base || (value->linespacing != base->linespacing)) { 281 if (!base || (value->linespacing != base->linespacing)) {
282 if ((res = psiconv_write_u8(config,extra_buf,lev+1,0x07))) 282 if ((res = psiconv_write_u8(config,extra_buf,lev+1,0x07)))

Legend:
Removed from v.233  
changed lines
  Added in v.351

frodo@frodo.looijaard.name
ViewVC Help
Powered by ViewVC 1.1.26